Spawn your robot
ROS 2 → Drive it in Gazebo
Spawn the described robot into a world
The simulation video first runs robot state publisher, launches Gazebo and spawns the model. Those are distinct steps: publishing a description does not by itself create a physical object in the simulator.
Video by Josh Newans / Articulated Robotics ↗ · Starts at 0:42
Lesson notes
- Check that the model description is available before spawning.
- Enable simulation time for nodes consuming simulated timestamps.
- The video uses Gazebo Classic; use the migration lesson and current ros_gz documentation for Harmonic.
Related videos for this lesson
- Simulating Robots with Gazebo and ROS ↗
Start here if Gazebo is new to you. This introduction uses older Gazebo; follow the migration video and current docs for the course environment.
Series: Getting Ready to Build Robots with ROS! ↗ - How to upgrade your ROS project to the New Gazebo ↗
Use this alongside the older project video to understand modern Gazebo integration. Follow Jazzy/Harmonic documentation for exact commands and plugin configuration.
Series: Getting Ready to Build Robots with ROS! ↗
Explain it in your own words
Why can RViz show a robot while Gazebo remains empty?
Compare your explanation
RViz can render the published description without a simulator spawn operation ever succeeding.
Further reading and sources
Completion saves automatically after you read through to the end.
Next lesson →