x
101# 安装 ROS Melodic 并设置 ROS 环境2sudo apt update 3sudo apt install ros-melodic-desktop-full 4echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc 5source ~/.bashrc6
7# 安装 TurtleBot3 包8sudo apt install ros-melodic-turtlebot3 9sudo apt install ros-melodic-turtlebot3-simulations10
11# 配置 TurtleBot3 的环境变量以选择使用的模型12echo "export TURTLEBOT3_MODEL=burger" >> ~/.bashrc 13source ~/.bashrc
xxxxxxxxxx11# 修改bashrc文件后执行2source ~/.bashrcx
1ssh wheeltec@192.168.4.2042roslaunch turn_on_wheeltec_robot turn_on_wheeltec_robot.launchxxxxxxxxxx11ssh wheeltec@192.168.4.2042roslaunch wheeltec_robot_rc keyboard_teleop.launchx
1ssh wheeltec@192.168.4.2042roslaunch turn_on_wheeltec_robot mapping.launch 3(err_re) roslaunch turn_on_wheeltec_robot mapping.launchxxxxxxxxxx11rvizxxxxxxxxxx11rosrun map_server map_saver -f $HOME/ysd_map
xxxxxxxxxx11修改文件:/home/wheeltec/ysd_map.pgmx
1scp ~/ysd_map.yaml wheeltec@192.168.4.204:~/ysd_map.yaml2scp ~/ysd_map.pgm wheeltec@192.168.4.204:~/ysd_map.pgmxxxxxxxxxx11ssh wheeltec@192.168.4.2042roslaunch turn_on_wheeltec_robot turn_on_wheeltec_robot.launchxxxxxxxxxx11roslaunch turn_on_wheeltec_robot navigation.launch map_file:=$HOME/ysd_map.yamlxxxxxxxxxx11rviz