ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Make sure, when following the install tutorial, you executed the command
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
This sets up your shell to always add the correct ROS variables to the Linux environment. You should then be able to use rospack find roscpp
correctly. If not, check the output of printenv | grep ROS
includes the lines:
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/opt/ros/kinetic/share
If the output is correct, but rospack find
isn't working, we have another problem.