Robotics StackExchange | Archived questions

Move_base Tutorial confuses me

From the tutorial about using movebase here. I'm confused on where exactly to create the package. I just created the package in a workspace, but then I cant use roscd,because the system cant then find the package(according to the command terminal). I decided to just carry on with the rest of the tutorial but now I dont know how to actually run launch the './bin/simplenavigationgoals'. There is no such directory. when I try to 'rosrun packagename simplenavigationgoals.cpp` The terminals says movebase cannot be found basically.

Asked by distro on 2022-08-08 17:18:41 UTC

Comments

"the system cant find the package" Most of the time, it is because of not sourcing the workspace. You should do the following:

 $ source /opt/ros/noetic/setup.bash
 $ source devel/setup.bash

The 2nd command must be executed from the workspace root.

Asked by ravijoshi on 2022-08-08 21:50:31 UTC

@Ravi Joshi That doesnt solve it

Asked by distro on 2022-08-08 21:55:45 UTC

Please try executing printenv | grep ROS_PACKAGE_PATH in your terminal, and you should see the location of your workspace. For example, on my PC, I see the following:

$ printenv | grep ROS_PACKAGE_PATH
ROS_PACKAGE_PATH=/home/ravi/ros1_ws/src:/opt/ros/noetic/share

Asked by ravijoshi on 2022-08-08 22:25:41 UTC

Answers