Problem with gmapping.launch file
Hello!
I am a newbie to ROS. Please bear with me.
I was following the tutorials by Clearpath Robotics for Navigation basics. Here is the link: ROS Navigation Basics
Here, at the step where I have to launch the gmapping.launch file, I get the following error :
ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/sri/jackal_navigation/src
ROS path [2]=/opt/ros/indigo/share
ROS path [3]=/opt/ros/indigo/stacks
I am not sure what this error means. Can anybody please help?
P.S. There is another question where the similar error was obtained here. However, the answers there did not help me in resolving the issue.
are you sure
gmapping
is installed? Just run asudo apt-get install ros-indigo-slam-gmapping
to install it.It is also a bit odd, that you have
/opt/ros/indigo/share/ros
in your path. In which order did you source the workspaces and did you edit theROS_PACKAGE_PATH
manually?Thank you! I had installed gmapping by pulling it from github, but after installing thru aprt-get it's working fine. I sourced the workspaces as per the tutorial. I did not edit the ROS_PACKAGE_PATH. I am not sure of /opt/ros/indigo/share/ros in my path. Is it gonna pose a problem in the future?
I'll just post as an answer, as it is solved now...