Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
humble

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
jazzy

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
kilted

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
lyrical

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
rolling

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

No version for distro github showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
humble

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

No version for distro galactic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
humble

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
iron

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
melodic

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/MRPT/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange

Package symbol

mvsim package from mvsim repo

mvsim

ROS Distro
noetic

Package Summary

Version 2.2.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ual-arm-ros-pkg/mvsim.git
VCS Type git
VCS Version develop
Last Updated 2026-11-21
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

A lightweight multivehicle simulation framework.

Additional Links

Maintainers

  • Jose-Luis Blanco-Claraco

Authors

No additional authors.
MVSim logo # MultiVehicle Simulator (MVSim) **Lightweight, realistic 2.5D dynamics simulator for mobile robots and multi-agent research** [![CI Linux](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/build-linux.yml) [![CI ROS 2](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/ci-ros2.yml) [![Check clang-format](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml/badge.svg)](https://github.com/MRPT/mvsim/actions/workflows/check-clang-format.yml) [![Documentation](https://readthedocs.org/projects/mvsimulator/badge/?version=latest)](https://mvsimulator.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](LICENSE) [**Documentation**](https://mvsimulator.readthedocs.io) · [**Installation**](https://mvsimulator.readthedocs.io/en/latest/install.html) · [**Demo worlds**](https://mvsimulator.readthedocs.io/en/latest/demo_worlds.html) · [**Cite**](#citation) MVSim overview: GUI, demo worlds, vehicles and sensors Click to watch the full video (1 min).

Overview

MVSim simulates wheeled robots and vehicles with realistic physics, sensors, and multi-agent support. It is designed to be fast enough for large-scale experiments while remaining accurate enough for dynamics and sensor research.

Key properties:

  • Fully configured via XML world files: no code changes needed for most experiments.
  • Works standalone, as a ROS 2 node, or embedded in a C++ / Python application.
  • Interactive GUI (world tree, object inspector, lighting controls, live camera previews), or headless for CI pipelines and Docker containers.
  • Multi-vehicle worlds with mutual sensing (robots see each other in LiDAR scans and camera images).
  • From small indoor robots to cars, trucks and tractors with trailers, in warehouses, homes, greenhouses, cities or off-road terrain.

Features

Vehicle dynamics

| Model | Description | |—|—| | differential | 2, 3 or 4-wheel differential drive and skid steer (e.g. TurtleBot, Jackal) | | ackermann | Car-like Ackermann steering | | ackermann_drivetrain | Ackermann + mechanical differentials (open / Torsen, 2WD / 4WD) | | Articulated | Tractor-trailer and truck-trailer combinations, linked by joints |

  • Controllers: raw torque, twist PID, ideal twist, and trajectory following (exactly reproducible paths).
  • Friction models: default Coulomb, Ward-Iagnemma (off-road), ellipse (slip angle + slip ratio).
  • Optional chassis suspension (heave, roll and pitch on per-wheel springs and dampers).
  • ros2_control hardware interface, to use the same controllers as on the real robot.

Sensors

| Sensor | Notes | |—|—| | 3D LiDARs | Velodyne VLP-16, Ouster OS1, Ouster Rev8 with per-point RGB color, Hesai Helios-32 (26°/31°/70° FOV) | | 2D LiDAR | Generic + RPLidar A2; optional GPU-based 3D ray-tracing | | RGB camera | Pinhole model, optional lens distortion and pixel noise | | RGBD camera | Depth + color (RealSense / Xtion-style), publishes pointcloud, depth image | | IMU | White noise + bias random-walk (Forster 2016 model) | | GNSS / GPS | Requires georeferenced world; configurable noise |

World elements

  • Occupancy grid maps (image or MRPT binary)
  • Elevation meshes (terrain with height)
  • Textured 3D blocks and custom meshes (.dae, .obj, …)
  • Animated human actors walking along waypoints
  • Friction zones (spatially-varying mu, rolling resistance)
  • Multi-storey environments and moving platforms
  • Lighting: sun with shadows, point and spot lights, vehicle headlights
  • Objects spawned, moved or removed at run time
  • Remote resource caching

Interfaces and tools

  • ROS 2: full topic / TF / parameter interface (see mvsim_node docs)
  • ZMQ / Protobuf: language-agnostic pub/sub for custom clients
  • Python: direct API access
  • C++ library: embed the simulator in your application
  • Video recording of the 3D view, in simulation time, from the GUI, the world file or scripts
  • mvsim-dataset-gen (offline LiDAR/IMU datasets from a prescribed trajectory), mvsim-pid-tuner, and mvsim-urdf2xml (URDF import)

Installation

sudo apt install ros-$ROS_DISTRO-mvsim

Then follow the first-steps guide.

Build from source

git clone https://github.com/MRPT/mvsim.git --recursive

See full installation instructions for cmake and colcon build options.


Quick start

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package mvsim

2.2.0 (2026-11-14)

  • mvsim-dataset-gen: per-point semantic and instance labels in LiDAR observations.
  • mvsim-dataset-gen: blocks that move along their own trajectory (--moving-block).
  • mvsim-dataset-gen: IMU observations carry their sensor pose.
  • Contributors: Jose Luis Blanco-Claraco

2.1.0 (2026-11-11)

  • ros2_control for Ackermann vehicles: per-wheel spin joints and per-wheel or central steering joints (ackermann), or a traction joint (ackermann_drivetrain), with demos for the steering controllers (#169)
  • Vehicles: optional <base_frame_id> to use the URDF frame on the ground (e.g. base_footprint) in all TFs and frame_ids
  • twist_pid compensates the turn slip of skid-steer robots, also in the odometry twist; tests for the controllers of all shipped vehicles, and four of them retuned (#176, #177, #178)
  • Slopes load the motors of rolling wheels, while vehicles stopped on a slope do not creep (#175)
  • Reproducible simulations: new world <random_seed> for XML random functions and all sensor noise; vehicle <log_period>; wheel logs with the friction parameters in effect (#175)
  • 3D LiDAR: optional per-point RGB (<generate_rgb>, packed "rgb" field in ROS), new Ouster Rev8 definition and an outdoor village demo world (#172)
  • HumanActor: <follow_terrain> so actors walk on hills
  • mvsim-dataset-gen: realistic per-column rotating LiDAR by default, optional realistic LiDAR error model (also in the stock 3D LiDAR definitions), and correct IMU kinematics and timestamps at the IMU mounting pose (#166, #170, #171, #174)
  • raytracer: much faster ray casting on large heightfields (#168)
  • mvsim-urdf2xml: Ackermann vehicles, base_frame_id, optional sensors and sensor link masses, and a skid-steer example (#169, #180)
  • World files can include complete world files; collision shapes for flat and long, thin visual models (#180)
  • mvsim_node warns if another node publishes map->odom while fake localization is enabled (#173, #179)
  • Duplicated sensor names are rejected
  • mvsim_version.h is generated in the build tree, so package.xml is the only place holding the version (#181)
  • Contributors: Jose Luis Blanco-Claraco

2.0.0 (2026-11-01)

  • GUI: ported from nanogui to Dear ImGui, with dockable panels, custom application panels and a lights window
  • Vehicle dynamics overhaul: friction circle and Ellipse static grip, wheel loads from force and moment balance, vehicles stop on zero twist, stable wheel control
  • Ackermann: Torsen differentials, steering rate limit; differential: swiveling caster, wheel_separation_multiplier
  • Optional chassis suspension, with vehicle definitions, demo world and docs
  • Ideal and new trajectory controllers follow the commanded twist exactly (exactly reproducible trajectories)
  • ros2_control integration for differential vehicles (Humble and Jazzy)
  • Insert and remove entities at runtime from world XML (C++, ZMQ and ROS 2 simulation_interfaces services); runtime visual objects and ground decals
  • Video recording of the 3D view, in simulation time
  • As fast as possible simulation mode (realtime_factor <= 0); performance diagnostics (per-sensor time and rate, physics time, achieved RTF)
  • Camera: plumb_bob lens distortion and pixel noise, also for RGB-D cameras (MRPT >= 3.6.0)
  • RGB-D in ROS: depth image in the optical frame, millimeters, optional 32FC1; faster RGB-D and 3D LiDAR simulation
  • 2D LiDAR: fix 3D ray tracing for apertures under 150 deg, support tilted scans
  • GNSS fix type and degradation events; IMU covariances in ROS
  • Lights: switchable light groups, shadow-casting point/spot lights, per-light range, emissive models
  • Horizontal plane: north-up texture placed by geodetic corners
  • New tools: mvsim-urdf2xml (vehicle XML from a URDF, #136), mvsim-pid-tuner (closed-loop tuning), mvsim slice (2D occupied cells at a height)
  • mvsim_node: fake localization publishes map->odom from the ground truth
  • XML: <include> and <if> at any depth inside vehicles, blocks and

File truncated at 100 lines see the full file

Launch files

  • launch/launch_world.launch
    • Generic ROS1 launch file
      • world_file
      • headless [default: False]
      • do_fake_localization [default: True]
      • publish_tf_odom2baselink [default: True]
      • force_publish_vehicle_namespace [default: False]
      • disable_sim_time_clock [default: False]
      • publish_sensor_tf [default: True]
      • use_rviz [default: True]
      • rviz_config_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.rviz]
  • mvsim_tutorial/ros1_1robot.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_1robot.world.xml]
      • mvsim_do_fake_localization [default: true]
  • mvsim_tutorial/ros1_2robots.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_2robots.world.xml]
  • mvsim_tutorial/ros1_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_camera.world.xml]
  • mvsim_tutorial/ros1_depth_camera.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_depth_camera.world.xml]
  • mvsim_tutorial/ros1_greenhouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_greenhouse.world.xml]
      • headless [default: false]
  • mvsim_tutorial/ros1_jackal.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_jackal.world.xml]
  • mvsim_tutorial/ros1_turtlebot_world.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_turtlebot_world.world.xml]
  • mvsim_tutorial/ros1_warehouse.launch
    • ROS1 launch file. See *.launch.py files for ROS2 launch files
      • world_file [default: $(find mvsim)/mvsim_tutorial/demo_warehouse.world.xml]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged mvsim at Robotics Stack Exchange