Some configuration steps must be completed before it will be possible to execute ROS terminal commands. In particular, the following two commands must be executed in the terminal window:
export TURTLEBOT_3D_SENSOR=kinect source /opt/ros/kinetic/setup.bash
The first command sets a shell variable indicating that our Turtlebots are using the Kinect depth sensor. (There are several other sensors available.) The second command executes a ROS shell script that configures the terminal session for ROS. Most importantly, it updates the PATH variable so that you will be able to execute ROS commands.
You could execute these two commands every time you open a new terminal. It will be more convenient to modify your .bashrc file so that these commands are executed automatically. This can be accomplished by downloading the following script ros_config_account.sh. The script can be executed as follows:
chmod +x ros_config_account.sh ./ros_config_account.sh
The first line make the script executable and the second line runs it.
roslaunch turtlebot_gazebo turtlebot_world.launchThis should bring up the Turtlebot simulator. Use TAB completion to avoid typing each individual character.
roslaunch turtlebot_teleop keyboard_teleop.launchConfirm that you can drive the simulated Turtlebot using the keyboard controls.
roslaunch turtlebot_rviz_launchers view_robot.launchSelect the check-boxes associated with "LaserScan" and "Images". You should see a yellow exclamation point appear next to the "Image" field, you can fix that by clicking on the triangle and selecting
/camera/rgb/image_raw
as the image topic. Zoom the camera
out (using the mouse scroll wheel) until you can see the visualization
of the laser data. Try driving the robot around once again using
keyboard teleoperation.
roslaunch turtlebot_bringup minimal.launchIf all goes well, the terminal should fill with notification messages and the robot should make a pleasant electronic start-up sound. Ignore any warnings that may appear.
roslaunch turtlebot_teleop keyboard_teleop.launchOnce the instructions appear you should be able to drive your Turtlebot from the keyboard.