This is an error report.
Screenshot of the error

Error details
I am running the ros2 launch leo_description loc_nav.launch.py. I am getting error. It syas leo_nav.launch.py file is not found in the directory package of leo_description.
This is an error report.
Screenshot of the error
Error details
I am running the ros2 launch leo_description loc_nav.launch.py. I am getting error. It syas leo_nav.launch.py file is not found in the directory package of leo_description.
It seems you skipped some units and/or commands before getting here. You must run
source /home/simulations/ros2_sims_ws/install/setup.bash
before the package can work properly.
Please also note that the launch file is loc_nav.launch.py
not leo_nav.launch.py
.
Remember that you have to execute this source in any terminal that executes preinstalled in the system roslaunches like the loc_nav.launch.py: “source /home/simulations/ros2_sims_ws/install/setup.bash”
I think I didn’t miss any units. Please help me to correct it. What should I do to make it run perfectly. The command that you suggested isn’t fixing it.
In another post of yours, it seems you have the leo_description
package in your workspace. Please remove that, recompile your workspace, and try again:
cd ros2_ws/src
rm -rf leo_description/
colcon build
source install/setup.bash
source /home/simulations/ros2_sims_ws/install/setup.bash
ros2 launch leo_description loc_nav.launch.py
If it does not work, please upload a screenshot showing which command failed.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.