Open yuzhenning opened 5 years ago
$ roscore
$ roslaunch turtlebot_gazebo turtlebot_world.launch
$ roslaunch turtlebot_teleop keyboard_teleop.launch --screen
install or upgrade rviz:
$ sudo apt-get install ros-indigo-rviz
$ roslaunch turtlebot_gazebo turtlebot_world.launch
$ roslaunch turtlebot_teleop keyboard_teleop.launch --screen
$ roslaunch turtlebot_gazebo gmapping_demo.launch
$ roslaunch turtlebot_rviz_launchers view_navigation.launch
it looks like that , we have to running gazebo with turtlebot model firstly, secondly running gmapping slam thirdly, running rviz with navigation display system. Based on this procedure, we can substitude turtlebot model in rviz
open gmapping node:
$ export TURTLEBOT_GAZEBO_WORLD_FILE="/opt/ros/kinetic/share/turtlebot_gazebo/worlds/playground.world"
$ roslaunch turtlebot_gazebo turtlebot_world.launch
$ roslaunch turtlebot_gazebo gmapping_demo.launch
$ roslaunch turtlebot_rviz_launchers view_navigation.launch
$ roslaunch turtlebot_teleop keyboard_teleop.launch
Using ROS system to control and simulating turtlebot in gazebo