- Install the Markdown All in One extension
- Press
Ctrl+Shift+Xto open the extensions tab - Search for
Markdown All in Oneand install it
- Press
- Configure VS Code settings
- Press
Ctrl+Commato open the settings - Search for
format on saveand check the box - Search for
indentation sizeand select the optioninherit - Search for
toc.levelsand change the value to2..6
- Press
- edit
~/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_navigation2/param/burger.yaml, replacerobot_radius: 0.1withrobot_radius: 0.3
- Launch the simulation world
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py - Run SLAM node
ros2 launch turtlebot3_cartographer cartographer.launch.py use_sim_time:=True - Control the robot
ros2 run turtlebot3_teleop teleop_keyboard
Run Gazebo, Nav2, and the exploration
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True
ros2 launch slam_toolbox online_async_launch.py
ros2 launch explore_lite explore.launch.py
- [Raspi] Run turtlebot3_bringup
ros2 launch turtlebot3_bringup robot.launch.py - [Remote] Run Nav2 and SLAM
ros2 launch turtlebot3_navigation2 navigation2.launch.py ros2 launch slam_toolbox online_async_launch.py - [Remote] Control the robot
ros2 run turtlebot3_teleop teleop_keyboard
- [Raspi] Run the camera node (in a new terminal)
The last command gives errors because apparently, the Raspberry Pi camera doesn't have all the configuration settings a regular camera would have. The errors are probably safe to ignore.
cd ~/ros2_ws . install/local_setup.bash ros2 run v4l2_camera v4l2_camera_node - [Remote] View the output of the camera
- Run the following command
ros2 run rqt_image_view rqt_image_view - When rqt has opened, press "Refresh topics"
- Select "/image_raw/compressed" from the dropdown menu
- Run the following command
- [Raspi] Run turtlebot3_bringup
ros2 launch turtlebot3_bringup robot.launch.py - [Remote] Run Nav2, SLAM, and the exploration
ros2 launch turtlebot3_navigation2 navigation2.launch.py ros2 launch slam_toolbox online_async_launch.py ros2 launch explore_lite explore.launch.py
Note: The following commands must be run in the workspace folder of the repository
Note: Remember to source venv and install/setup.bash before running any of the commands
./run.sh
./lint.sh
pytest src
coverage run --branch -m pytest src && coverage html
- [Remote] Find out the IP of the Raspberry Pi
- [Remote] Run the launch script
IP=<Turtlebot 3 ip> ./run.sh