Home › Robot simulator
Robot simulator
Open a robot in RViz and Gazebo in your browser. Each robot gets its own ROS 2 Jazzy workspace.
TurtleBot3
The robot used in the course. Drive it, read its lidar and camera, and try SLAM and Nav2 in Gazebo.
New here? Start with TurtleBot3 Burger, the robot from the course. Under test means the robot opens in the simulator but has no lessons yet.
Each robot keeps its own settings. The robot models come from their makers' public ROS repositories (licences are in each package); the pictures are drawn from the same URDF and meshes you will launch.
Robotic Models Simulator
This page has one robot and its own workspace. A description package is built with colcon, and a launch file (Python or XML) starts robot_state_publisher, joint_state_publisher_gui and rviz2 with a saved .rviz config, as on Ubuntu. Move a slider and the robot moves: /joint_states → robot_state_publisher → /tf → RViz.
Gazebo, MoveIt 2 and the real robot on this page
Robots with sensors also have sim.launch.py: Gazebo Harmonic runs the robot's lidar, camera, depth camera and IMU (declared in <gazebo> tags of the URDF), ros_gz_bridge brings their topics to ROS 2, and RViz shows the scan, point cloud, images and IMU. Drive the mobile robots with ros2 run teleop_twist_keyboard teleop_twist_keyboard in a new terminal.
Every arm also has a MoveIt 2 package (<robot>_moveit_config, laid out like the MoveIt Setup Assistant makes it): drag the orange interactive marker at the tool, choose the OMPL, Pilz, CHOMP or STOMP planning pipeline, and Plan & Execute around the table, box and post of the work cell, with mock hardware or in Gazebo. Each robot's <robot>_bringup package (and the arm's real.launch.py) shows how the real robot connects through its maker's driver (USB, Ethernet, CAN or Wi-Fi). Files stay inside ROS2Lab: they cannot be downloaded, and running a real robot needs a hardware license from your course administrator.
- xacromy_robot.urdf.xacro → URDF text
- robot_state_publisherrobot_description parameter → publishes /robot_description, /tf, /tf_static
- joint_state_publisher_guisliders → publishes /joint_states
- rviz2 -d display.rvizRobotModel reads /robot_description, TF reads /tf
Robot
Your own robot
A package folder (with package.xml, urdf/, meshes/, launch/), or just your .urdf/.urdf.xacro and mesh files: they are put into a package for you. Nothing is uploaded; the files stay on your computer.
Official ROS 2 Jazzy workspace
Simulation
Real hardware
The same workspace on your Ubuntu 24.04 computer
The launch files, URDF/xacro, SDF worlds, YAML and RViz configs are the makers' own files, run by the real ROS 2 launch library in your browser. Gazebo, Nav2, MoveIt 2 and the drivers are ROS2Lab's models of those programs, not the compiled programs themselves.
Launch it
Workspace files
Robot details: links, joints, sensors, Gazebo plugins
Connect to ROS 2 on your Ubuntu computer (rosbridge)
On Ubuntu: sudo apt install ros-jazzy-rosbridge-suite, then ros2 launch rosbridge_server rosbridge_websocket_launch.xml, and launch your robot there as usual. Open this page on the same computer. This RViz then shows your real /robot_description, /tf, markers, /scan and /map.
Connecting real hardware needs a hardware license from your course administrator. Checking your license …
How it works, and its limits
The terminal is ROS2Lab's practice terminal: a pretend Ubuntu 24.04 with ROS 2 Jazzy. colcon build installs the package's launch, urdf, meshes and rviz folders only if CMakeLists.txt has the install(DIRECTORY ...) rule; ros2 launch reads your Python or XML launch file, runs xacro, and starts the nodes. Try ros2 node list, ros2 topic list, ros2 topic echo /joint_states, ros2 run tf2_ros tf2_echo base_link <link> or ros2 launch <package> display.launch.py gui:=false in a new terminal tab.
The RViz window is ROS2Lab's practice RViz2, built with three.js. It copies RViz2's displays, properties, tools and messages, so the same steps work with the real rviz2 on Ubuntu. It is not the real rviz2 program. MoveIt here is ROS2Lab's practice move_group: it reads the package's SRDF, kinematics, joint limits and pipeline files, covers each link with collision spheres fitted to its meshes, and plans with OMPL-style sampling planners, Pilz PTP/LIN/CIRC, CHOMP and STOMP; the same package runs with the real MoveIt 2 (tested with ros-jazzy-moveit). RViz, ROS and ROS 2 are projects of Open Robotics; MoveIt is a project of PickNik Robotics and the MoveIt community; ROS2Lab is an independent course and is not affiliated with or endorsed by Open Robotics.
Gazebo here is a small stand-in for Gazebo Harmonic: it reads the world SDF and the robot's <gazebo> sensor tags, renders cameras, casts lidar rays, drives DiffDrive robots and simulates rigid bodies with the Rapier physics engine (gravity, collisions, pushing loose objects; it is not Gazebo's DART engine, so contact details differ). The rules are the real ones: sensors publish only if the world loads gz-sim-sensors-system (and gz-sim-imu-system for IMUs), ROS 2 sees them only through ros_gz_bridge, the header frame is <gz_frame_id>, and Gazebo Classic plugins (libgazebo_ros_*.so) do nothing in Harmonic. The robot models come from their makers' public ROS repositories (licences are in each package); meshes were simplified to load faster.
When connected through rosbridge, it subscribes to /robot_description, /tf, /tf_static and to the topic of every display you add (LaserScan, PointCloud2, Image, Camera, Imu, Odometry, Path, Map, Marker...), and the RViz tools publish /goal_pose, /initialpose and /clicked_point. Browsers only allow a secure page to talk to rosbridge on the same computer (localhost); Chrome may ask you to allow access to apps on this device. For a robot on the network, run this page on the robot's computer or forward the port with ssh -L 9090:localhost:9090 user@robot.