This is an error report.
Screenshot of the error
Error details
I am getting the error seen in the image.
This is an error report.
Screenshot of the error
Error details
I am getting the error seen in the image.
Hello this error indicates that something is wrong with your source command. Please check exactly where they told you to source using the command:
source intsall/setup.bash
Try to do in the directory ~/ros2_ws and in ~/ros2_ws/src
The right source command is:
# You need to run it from `ros2_ws`
cd ~/ros2_ws
source install/setup.bash
If it does not work after source, double-check that you have the right setup in setup.py
.
Hi @albin.magnu ,
The error is straight-forward and clearly states that the specified launch file could not be found within the install
directory of the package.
This is because, I believe, you have forgotten to add the launch file path(s) in your setup.py
file.
You need to add the following line in your setup.py
file inside the data_files
parameter inside the setup()
function.
(os.path.join('share', package_name), glob('launch/*.launch.py'))
That should fix your problem. Let me know if you still have issues.
Regards,
Girish
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.