Build TurtleBot3, drive it, map a room and navigate with ROS 2
TurtleBot3 is a ROBOTIS two-wheel differential-drive mobile robot with DYNAMIXEL wheel motors, an OpenCR controller and a 2D LiDAR. Burger and Waffle Pi have different chassis and component layouts. This practical manual covers assembly, first wheel motion, LaserScan inspection, SLAM and a saved occupancy map.

1. Materials and computer requirements
| Component | Purpose |
|---|---|
| Burger or Waffle Pi chassis | Correct frame and mounting plates for the chosen robot |
| 2 DYNAMIXEL geared motors and wheels | Independent left/right wheel speed for differential drive |
| Passive stabilizing supports | Balance of the two-wheel chassis |
| OpenCR control board | Low-level motor control and sensor interface |
| Raspberry Pi with matching image | Onboard ROS 2 node and communication |
| 2D LiDAR | Range observations for mapping and obstacle detection |
| Approved battery, USB and motor cables | Power and computer-to-controller connection |
| Ubuntu 24.04 PC with ROS 2 Jazzy | Teleoperation, RViz, SLAM, Nav2 |
2. Differential-drive top view
3. Mechanical assembly
- Choose Burger or Waffle Pi and sort the plates, spacers, wheels and matching fasteners.
- Mount the left and right DYNAMIXEL drives and wheels; confirm correct wheel orientation and free rotation with power off.
- Install passive supports under the frame and ensure the robot stands level.
- Fix the OpenCR board, route its cables away from wheel rotation, then mount the Raspberry Pi and upper deck.
- Mount the LiDAR level with clear line of sight and connect its model-specific data and power cabling.
- Secure the approved battery, inspect power polarity and verify the correct wheel motor addresses before startup.
4. Sensor and motor communication
5. Install ROS 2 Jazzy packages
source /opt/ros/jazzy/setup.bash
sudo apt update
sudo apt install -y python3-colcon-common-extensions ros-jazzy-turtlebot3 ros-jazzy-turtlebot3-msgs ros-jazzy-dynamixel-sdk ros-jazzy-cartographer ros-jazzy-cartographer-ros ros-jazzy-navigation2 ros-jazzy-nav2-bringup
# Source checkout alternative; use one coherent installation:
mkdir -p ~/turtlebot3_ws/src
cd ~/turtlebot3_ws/src
git clone -b jazzy https://github.com/ROBOTIS-GIT/DynamixelSDK.git
git clone -b jazzy https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
git clone -b jazzy https://github.com/ROBOTIS-GIT/turtlebot3.git
cd ~/turtlebot3_ws
colcon build --symlink-install
source install/setup.bash
Use a compatible Raspberry Pi image and OpenCR firmware. Do not assume your PC install automatically configures the embedded board. Set the model to burger, waffle or waffle_pi according to the actual robot.
6. First motor bringup and keyboard drive
Run this on the configured Raspberry Pi:
source /opt/ros/jazzy/setup.bash
export TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_bringup robot.launch.py
From a separate ROS 2 Jazzy PC on the same configured network:
export TURTLEBOT3_MODEL=burger
ros2 topic list
ros2 topic echo /odom --once
ros2 run turtlebot3_teleop teleop_keyboard
Test in a clear area on level ground, never on an elevated table. The robot can move as soon as a velocity command is received. Check DDS domain and discovery if the PC cannot see the robot's topics.
7. Python program: read distances from LiDAR
import rclpy
from rclpy.node import Node
from sensor_msgs.msg import LaserScan
import math
class LidarReader(Node):
def __init__(self):
super().__init__("lidar_reader")
self.create_subscription(LaserScan, "/scan", self.on_scan, 10)
def on_scan(self, msg):
values = [x for x in msg.ranges
if math.isfinite(x) and msg.range_min <= x <= msg.range_max]
if values:
self.get_logger().info(f"Closest obstacle: {min(values):.2f} m")
rclpy.init()
node = LidarReader()
try:
rclpy.spin(node)
except KeyboardInterrupt:
pass
finally:
node.destroy_node()
rclpy.shutdown()Save as lidar_reader.py and run with python3 lidar_reader.py in a sourced ROS 2 environment. This program reports the nearest valid LiDAR measurement and never moves the robot.
8. Make your first occupancy map with Cartographer
export TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_cartographer cartographer.launch.py
# In another terminal:
ros2 run turtlebot3_teleop teleop_keyboard
# Once the map is ready:
ros2 run nav2_map_server map_saver_cli -f ~/my_first_map
Move slowly so scan matching can associate successive LiDAR observations. Saving requires an active map publisher; output normally includes a map image and its YAML metadata file.
9. Autonomous navigation architecture
Load the saved map with your model-matched Nav2 launch, set the initial robot pose in RViz, verify TF and localization, then send a nearby clear-space goal. Navigation requires a configured map server and safety parameters; a saved image alone does not make the robot autonomous.
10. Diagnostics and checks
| Problem | Diagnostic |
|---|---|
| Motors do not turn | Check OpenCR firmware, power and bringup node |
| No /scan | Check LiDAR connection and configured driver |
| Wrong wheel direction | Check differential-drive motor identities and mounting |
| ROS PC sees no robot | Check network, ROS_DOMAIN_ID and DDS discovery |
| Incomplete map | Drive slowly, inspect scan/odom timestamps and LiDAR visibility |
| Nav2 rejects target | Check pose estimate, costmaps and TF transforms |
Pre-drive checklist: correct model identifier, charged battery, secure wheel fasteners, clear LiDAR, valid /scan and /odom data, and a tested stop control. This is a robot-specific navigation guide, not a manipulator or humanoid assembly procedure.
Complete practical guide: TurtleBot3
TurtleBot3 is a differential-drive research robot. Burger and Waffle Pi use different configurations; wheel feedback and LiDAR alignment determine whether navigation and mapping are reliable.
1. Files, parts and fabrication
- Select Burger or Waffle Pi and obtain its matching BOM and plate arrangement. Identify OpenCR, computer, wheel motor and LiDAR variants.
- Build the chassis with aligned drive wheels and caster, then mount OpenCR, the single-board computer and battery. Keep wheel wiring clear.
- Install the LiDAR in its documented orientation with an unobstructed scan plane.
2. Software installation and configuration
- Install the matching ROS 2 environment on the remote PC and robot computer. Configure the supported OpenCR firmware and network settings.
- Set TURTLEBOT3_MODEL to the actual robot and use the documented robot bringup. Match ROS domain settings between computers.
- Use keyboard teleoperation first; install the matching mapping and navigation packages only after wheel and scan data have been verified.
Commissioning diagram
- 1Teleop or navigation request
- 2OpenCR and wheel drives
- 3Differential movement
- 4Odometry and LiDAR
- 5Map and localization
Mermaid diagram source
flowchart TD
N0["Teleop or navigation request"]
N1["OpenCR and wheel drives"]
N2["Differential movement"]
N3["Odometry and LiDAR"]
N4["Map and localization"]
N0 --> N1
N1 --> N2
N2 --> N3
N3 --> N43. Power-on preparation and first movement
- With wheels raised check the documented forward, turning and stop requests. Inspect the encoder direction and wheel mounting.
- Start bringup with the correct model and inspect scan and odometry topics. Confirm the scan aligns with the robot in RViz.
- Lower onto a flat clear floor and drive a short straight path, then stop and turn under supervision.
4. Programming exercise
After starting the matching robot bringup, inspect the sensor topics in a separate ROS terminal. These commands read one message each.
export TURTLEBOT3_MODEL=burger
# Use waffle_pi instead if that is the physical model.
ros2 topic list
ros2 topic echo /odom --once
ros2 topic echo /scan --onceOdometry should reflect measured motion and the scan should contain valid range readings. Resolve topic or sensor mismatches before navigation.
5. Progress to practical operation
- Use ros2 run turtlebot3_teleop teleop_keyboard in the documented environment to complete manual drive tests.
- Start the matching mapping workflow, move slowly around a known room and inspect walls in RViz. Save the map with the release's documented command.
- Use the compatible navigation stack to test one reachable goal on the saved map. Keep the stop method accessible.
6. Software and hardware diagnostics
- No scan topic
- Check LiDAR model, connection and bringup settings.
- Map curves on a straight route
- Inspect wheel encoder direction, wheel geometry and odometry.
- Remote PC sees no topics
- Check ROS domain, network and sourced distribution.
Technical basis: ROBOTIS TurtleBot3 e-Manual, ROS 2 bringup and teleoperation packages. Programming examples are identified as simulation, offline analysis or documented interface instructions. No physical commissioning test is claimed.
Choose Burger or Waffle and assemble the chassis
Documented kit or parts build
Burger and Waffle Pi use distinct BOMs and models; choose one before ordering.
From parts to first test 5 steps
Select Burger or Waffle Pi
Compare the official model parts tables and hardware setup sheets. Order the matching plates, wheel motors, wheels, caster, OpenCR, SBC, LDS and battery.
Reference 3 ↓Assemble the chassis
Follow the selected model's PDF; install wheel motors/caster first, then plates, controller, battery and LiDAR. Keep the wheel and sensor cables clear.
Reference 1 ↓Flash and connect both computers
Use the TurtleBot3 setup for the selected SBC image and OpenCR firmware, connect the LiDAR and controller, and check the defined serial interfaces.
Reference 1 ↓Install ROS 2 and choose the robot model
Install the supported TurtleBot3 ROS 2 packages and open a terminal on the robot SBC. For Burger run export TURTLEBOT3_MODEL=burger, then ros2 launch turtlebot3_bringup robot.launch.py. For a different model substitute its documented identifier. Check that the published model and sensor topics match the physical robot.
Reference 6 ↓Drive before mapping
On a clear floor verify that forward and turn commands match the wheel motion, then use the official SLAM setup to generate a map.
Reference 5 ↓
Parts, files and official manuals 6 references
Differential-drive mobile base
Practical implementation notes for TurtleBot3. Use the exact hardware and software revision specified in the project documentation.
Tools and equipment
- Screwdrivers
- hex drivers
- multimeter
- microSD writer
- PC
- supported SBC
- OpenCR
- LiDAR
Component illustration
- 1Caster
- 2Wheel motors
- 3OpenCR/SBC
- 4LiDAR
Control architecture
- 01Keyboard
- 02ROS 2 cmd_vel
- 03OpenCR wheel control
- 04Wheels + LiDAR
Mechanical preparation and assembly
Choose Burger or Waffle Pi and follow its plate layout. Attach wheel motors and caster; then mount OpenCR, computer, battery and LiDAR. The sensor should have an unobstructed horizontal scan; keep cables away from rolling wheels.
Electrical setup and calibration
Flash the model-specific SBC image and OpenCR firmware. Verify the wheel direction and sensor connections; match the model environment variable on both PCs, and use the same ROS domain ID. Check networking before SLAM.
Software setup and programming
Bring up the selected robot on its SBC, then run teleop on the remote machine. Inspect topic names and LiDAR scan in the ROS graph. Test on a clear floor at low speed, then launch the matching mapping workflow and save the map.
First test and acceptance criteria
First verify forward direction, turning and a zero command. Check the scan and odometry in RViz before attempting navigation. Bad odometry or a reversed wheel will distort a map.
Programming and configuration example
Physical bringup and keyboard teleoperation. Replace burger for Waffle Pi; test with wheels safely raised first.
export TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_bringup robot.launch.py
# On remote PC, with matching model and ROS domain:
ros2 run turtlebot3_teleop teleop_keyboardTroubleshooting
If RViz shows an incomplete scan, check the LDS model and published scan topic. If the map curves on a straight drive, inspect encoder odometry and wheel direction before tuning navigation.
Technical reference: project release documentation. The assembly references above provide the revision-specific drawings and BOM. Examples are editorial walkthroughs or documented commands; they have not been physically tested by TechniaHQRobot.
Choose the physical model first
TurtleBot3 is sold in more than one configuration. The ROS examples expect a matching model parameter, such as burger or waffle_pi. That choice determines which robot description, frame geometry and sensors the software expects. Using the wrong model can produce misleading visualization and navigation parameters.
The basic platform includes a mobile base with motor control and an OpenCR controller. Robotics projects built around different range sensors and onboard computers need their own compatible wiring, drivers and configuration.
Mapping and navigation are different jobs
In the official ROS 2 workflow, the user first brings up the robot and runs a SLAM package while moving around the space. The resulting map records observed walls and obstacles along with estimated motion. It is then saved for use by the navigation system.
Navigation2 loads the map, estimates the initial robot pose and plans a path toward a goal. If the localization estimate does not align with the laser scan, the robot may plan from the wrong part of the room. ROBOTIS instructs users to set the initial pose in RViz and check the sensor overlay before sending a target.
A practical failure to investigate
Suppose the robot moves straight when commanded, but its map slowly rotates during a loop. Check wheel diameter, axle separation, encoder calibration and the relationship between odometry and the IMU or range data before changing global-planner settings. This is a proposed troubleshooting approach, not a test performed by TechniaHQRobot.
Simulator examples are useful for learning ROS topics and transforms, but they omit wheel slip, imperfect sensors and physical obstacles that affect a classroom robot.
Historical context and licensing
TurtleBot originated at Willow Garage before the TurtleBot3 generation was developed by ROBOTIS. The broader TurtleBot history appears on Wikipedia, but the Robotis e-Manual is the source for current TurtleBot3 installation commands and supported ROS versions.
Hardware CAD, sensor setup and ROS navigation
Answers are based on published source material and project documentation. Their order does not represent search volume.
01Where are TurtleBot3 STL, CAD and PCB Gerber files?
ROBOTIS links mechanical hardware models and OpenCR board/PCB files from the official OpenSource page. Select the correct Burger or Waffle design.
Sources Official project source
02Are Burger and Waffle assembly parts interchangeable?
No. The BOM identifies different motors, numbers of plates, casters and sensors. Choose the matching hardware PDF.
Sources Official project source
03How do I assemble a TurtleBot3 from a kit?
The official hardware setup page supplies separate assembly manuals for Burger, Waffle and Waffle Pi, alongside videos.
Sources Official project source
04Why does SLAM produce no map?
Before blaming SLAM, check that lidar scans, TF transforms and odometry are being published by the correct robot model. The official SLAM guide details its launch configuration.
Sources Official project source
05Can I navigate without an existing map?
Robot navigation examples usually require a valid map or an appropriate map-building/localization mode. Follow the Navigation guide and check goal, costmap and laser inputs.
Sources Official project source
06Can I build an OpenCR board independently?
ROBOTIS publishes OpenCR schematics, Gerber designs, firmware and hardware references; fabrication and testing of the controller require separate electronics work.
Sources Official project source
TurtleBot3: parts cost, software updates and maintenance
This practical ownership section complements the original assembly and programming instructions. Public files do not guarantee that all components can still be purchased or that every build is supported.
| Item | Project record |
|---|---|
| Cost record / BOM target | Not confirmed; Burger and Waffle configurations differ |
| Software licence | Apache-2.0 for core ROS packages; some components BSD-3/GPL-3.0 |
| Hardware licence | Open source hardware project; review board and chassis design notices |
| Simulation availability | ROS 2, Gazebo and TurtleBot3 simulation packages |
| Build difficulty | Intermediate |
How to obtain the robot or its parts
Use the TurtleBot3 documentation and hardware release to identify whether an assembled product, kit or self-sourced parts are offered. Price the matching revision, not a photograph or an old bill of materials. Include actuators, controller, supply, wiring, tools, fabrication, shipping, tax and spare parts. A historical BOM target is not a current delivered quote.
- Project documentation
- Source repository and version history
- CAD / fabrication files
- Revision-specific workshop source
How the hardware and software work together
Mechanical path: Caster → Wheel motors → OpenCR/SBC → LiDAR.
- Keyboard
- ROS 2 cmd_vel
- OpenCR wheel control
- Wheels + LiDAR
Feedback, fault detection and the approved stop function constrain the command path.
Bring up the selected robot on its SBC, then run teleop on the remote machine. Inspect topic names and LiDAR scan in the ROS graph. Test on a clear floor at low speed, then launch the matching mapping workflow and save the map.
Install, update and recover the software
Keep the exact hardware revision, repository commit, operating system, dependencies, controller firmware and calibration in a local build manifest. Read the project’s setup instructions before installing. Use an isolated environment and a separate checkout for upgrades; compare release notes, regenerate only the documented configuration, and first repeat a simulation or read-only test. Back up calibration and original firmware files where the project supports it. Restore only a documented compatible release if the new version fails.
Project-specific verification: First verify forward direction, turning and a zero command. Check the scan and odometry in RViz before attempting navigation. Bad odometry or a reversed wheel will distort a map.
Power, battery replacement and cycle life
ROBOTIS lists an 11.1 V, 1,800 mAh, 19.98 Wh LiPo for Burger and Waffle Pi. Follow its battery FAQ and OpenCR instructions for the selected model.
ROBOTIS battery specifications · Battery and setup FAQ
Battery cycle life and robot service life are different. Equivalent full cycles (EFC) can be estimated as cumulative discharged energy (Wh) divided by initial usable pack energy (Wh). State of health (SOH) is measured usable capacity divided by baseline usable capacity × 100%, under comparable conditions. Example only: 1,800 Wh discharged from a 600 Wh reference pack equals 3 EFC; neither number is a specification for this robot. Ask for the manufacturer’s cycle rating, temperature limits, capacity-retention criterion and warranty. Do not use an arbitrary percentage as a replacement threshold.
Common problems, wear and service plan
| When | Inspection and evidence |
|---|---|
| Before operation | Check wheel slip, caster drag, encoder odometry and LiDAR cleanliness; validate map localization after a software change. |
| After a fault or impact | Flash the model-specific SBC image and OpenCR firmware. Verify the wheel direction and sensor connections; match the model environment variable on both PCs, and use the same ROS domain ID. Check networking before SLAM. |
| After software or parts change | Record versions and replaced part serials; compare the same approved test with the earlier baseline. Stop on new errors or unexpected movement. |
| At manufacturer service intervals | Use the documented interval and authorized service procedures. No universal calendar or lubricant is assumed. |
| At end of service | Ask about spare-part availability, data removal, battery take-back and local electronics recycling. |
What is not established by the published files
The project documentation must provide any claimed rated service life, battery cycle endurance, duty limits, warranty and repair intervals for the exact hardware. Without a cited endurance test, report those values as not established, not zero and not an estimate. For a DIY build, keep a parts-replacement log and report conditions when measuring reliability.
Original documentation
- Core ROS 2 navigation and launch packages
- Official project source
- Official project source
- TurtleBot background on Wikipedia
- Official project source
- Official project source
- Official project source
Found a changed specification? Submit a correction with its source ↗