Hi,
I’m new to ROS and currently on part 4 of the ROS Basics in 5 days. For some reason I get the following error when I run:
roslaunch odometry_pkg odometry_launch_file.launch
ERROR: cannot launch node of type [odometry_pkg/odo_sub.py]: can’t locate node [odo_sub.py] in package [odometry_pkg]
Does anyone know what this means? Here is my launch file:
Hi @pramit.mohapatra,
Welcome to the community !
This is a very common occurrence. You probably forgot to make the odo_sub.py file executable. To do this, go to where it is and execute following command:
chmod +x odo_sub.py
to check if a file is executable or not, you can run ls
in the directory. This lists all files. If the filename is green, it is executable, if not you have to run the command.
You can use this to go to a package quickly:
roscd odometry_pkg
cd src
chmod +x odo_sub.py
roslaunch odometry_pkg odometry_launch_file.launch
2 Likes
Thanks for the quick reply. That worked!
2 Likes