
28
Operating Instructions
you have installed Melodic, Dashing, and Eloquent, and you want to run ROS applications with Eloquent, you can
start with the following:
5.1.2.2.
Verifying the ROS 1 Installation
To verify the ROS 1 installation, you need to open three terminals and execute the following commands.
Note:
<YOUR_ROS_DISTRO> here stands for the ROS distribution (e.g., /opt/ros/melodic/setup.bash for ROS 1
Melodic; /opt/ros/dashing/setup.bash for ROS 2 Dashing.
•
Terminal 1: Load the ROS 1 environment and execute
roscore
(ROS Master).
•
Terminal 2: Load the ROS 1 environment and execute the turtlesim program.
•
Terminal 3: Load the ROS 1 environment and use the arrow keys to tele-opreate the turtle.
5.1.2.3.
Verifying the ROS 2 Installation
To verify the ROS 2 installation, you need to open two terminals and execute the following commands.
•
Terminal 1: Load the ROS 2 environment and execute the turtlesim program.
If you see the error “
Package 'turtlesim' not found
”
,
then you have not installed turtlesim for ROS 2. You can
manually install turtlesim by executing the following command:
source /opt/ros/<YOUR_ROS_DISTRO>/setup.bash
roscore
source /opt/ros/<YOUR_ROS_DISTRO>/setup.bash
rosrun turtlesim turtlesim_node
source /opt/ros/<YOUR_ROS_DISTRO>/setup.bash
rosrun turtlesim turtle_teleop_key
source /opt/ros/<YOUR_ROS_DISTRO>/setup.bash
ros2 run turtlesim turtlesim_node
sudo apt install ros-<YOUR_ROS_DISTRO>-turtlesim
source /opt/ros/
eloquent
/setup.bash