ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You probably don't have ROS sourced in this terminal, try:

source opt/ros/melodic/setup.bash

If that's the issue, it would be a good idea to add that line to the bottom of your .bashrc file which runs a script every time you open a terminal. You can also source catkin workspaces (catkin_ws or any other name) here, just add this line after the previous:

source ~/catkin_ws/devel/setup.bash

You probably don't have ROS sourced in this terminal, try:

source opt/ros/melodic/setup.bash

If that's the issue, it would be a good idea to add that line to the bottom of your .bashrc file which runs a script every time you open a terminal. You can also source catkin workspaces (catkin_ws or any other name) here, just add this line after the previous:

source ~/catkin_ws/devel/setup.bash

You probably don't have ROS sourced in this terminal, try:

source opt/ros/melodic/setup.bash
/opt/ros/melodic/setup.bash

If that's the issue, it would be a good idea to add that line to the bottom of your .bashrc file which runs a script every time you open a terminal. You can also source catkin workspaces (catkin_ws or any other name) here, just add this line after the previous:

source ~/catkin_ws/devel/setup.bash