Skip to content

Software

IR-SIM

From github.com/hanruihua/ir-sim (opens in a new tab)

  • Simulators
  • Simulator
  • MIT

A lightweight, YAML-configured Python robot simulator for navigation, control, and learning, with built-in collision detection and a Matplotlib renderer.

Facts

GitHub stars
1,244read on 28 Nov 2026
Last update
21 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Beginner

Checked on GitHub on 28 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit e9f6c50 (opens in a new tab), on 28 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Simulates robots with differential, omnidirectional, and Ackermann kinematics, plus LiDAR, contact, and field-of-view sensors.
  • Scenarios are configured through simple YAML files, so little coding is needed.
  • Objects can carry behaviors such as dash, RVO, ORCA, and social force model, supporting multi-agent research.
  • Collision handling includes stop, unobstructed, and rigid-body contact with pushing of objects.
  • Renders results with a lightweight Matplotlib-based renderer for quick debugging.
  • Installable with pip, from source, or with uv, and requires Python 3.10 or newer.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 21 Nov 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit e9f6c50

Robotheca read the repository at two versions: the summary at 39ed2f0 and the facts and the README at e9f6c50 (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @hanruihua, at commit e9f6c50, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here
Contents
Overview

IR-SIM is an open-source, Python-based, lightweight robot simulator designed for navigation, control, and learning. It provides a simple, user-friendly framework with built-in collision detection for modeling robots, sensors, and environments. Ideal for academic and educational use, IR-SIM enables rapid prototyping of robotics and learning algorithms in custom scenarios with minimal coding and hardware requirements.

Key Features
  • Simulate robot platforms with diverse kinematics, sensors, and behaviors (support).
  • Quickly configure and customize scenarios using straightforward YAML files. No complex coding required.
  • Visualize simulation results with a lightweight Matplotlib-based renderer for rapid debugging.
  • Support collision detection and customizable behavior policies for each object.
  • Suitable for multi-agent and robot-learning research (Projects).
Demonstrations

Multi-Robot RVO Collision Avoidance

Source (opens in a new tab)

Ackermann Robot with 2D LiDAR

Source (opens in a new tab)

HM3D / MatterPort3D Grid Map

Source (opens in a new tab)

Field-of-View Detection

Source (opens in a new tab)

Dynamic Random Obstacles

Source (opens in a new tab)

200-Agent ORCA via pyrvo (opens in a new tab)

Source (opens in a new tab)

Fog-of-Map Exploration

Source (opens in a new tab)

Rigid-Body Contact: Pushing Boxes

Source (opens in a new tab)

Social Force Model Pedestrians

Source (opens in a new tab)

Installation

Requires Python >= 3.10

pip
pip install ir-sim

Optional extras:

pip install "ir-sim[keyboard]"  # keyboard control (pynput)
pip install "ir-sim[fast]"      # compiled kernel for faster lidar scans (numba)
pip install "ir-sim[all]"       # all optional features, listed below

ir-sim[all] installs keyboard control (pynput), video export (imageio[ffmpeg]), the ORCA group behavior (pyrvo), and the compiled lidar kernel (numba, except on Intel macOS).

From source
git clone https://github.com/hanruihua/ir-sim.git
cd ir-sim
pip install -e .
uv
git clone https://github.com/hanruihua/ir-sim.git
cd ir-sim
uv sync
Quick Start

A minimal example: a differential-drive robot navigates toward a goal using the built-in dash behavior.

import irsim

env = irsim.make(
    "robot_world.yaml"
)  # initialize the environment with the configuration file

for i in range(300):  # run the simulation for 300 steps
    env.step()  # update the environment
    env.render()  # render the environment

    if env.done():
        break  # check if the simulation is done

env.end()  # close the environment

YAML Configuration: robot_world.yaml

world:
  height: 10  # the height of the world
  width: 10   # the width of the world
  step_time: 0.1  # 10Hz calculate each step
  sample_time: 0.1  # 10 Hz for render and data extraction
  offset: [0, 0] # the offset of the world on x and y

robot:
  kinematics: {name: 'diff'}  # omni, omni_angular, diff, acker
  shape: {name: 'circle', radius: 0.2}  # radius
  state: [1, 1, 0]  # x, y, theta
  goal: [9, 9, 0]  # x, y, theta
  behavior: {name: 'dash'} # move toward to the goal directly
  color: 'g' # green

For more examples, see the usage directory (opens in a new tab) and the documentation (opens in a new tab).

Support
CategoryFeatures
KinematicsDifferential Drive mobile Robot · Omnidirectional mobile Robot · Omnidirectional with Angular control · Ackermann Steering mobile Robot
Sensors2D LiDAR · 2D FMCW LiDAR · Contact Sensor · FOV Detector
GeometriesCircle · Rectangle · Polygon · LineString · Binary Grid Map · Fog of Map
Behaviorsdash (move directly toward goal) · RVO (Reciprocal Velocity Obstacle) · ORCA (Optimal Reciprocal Collision Avoidance) · SFM (Social Force Model, per-object and group with social groups)
Collisionstop · unobstructed · unobstructed_obstacles · contact
Documentation
Projects Using IR-SIM

If your publication, project, or course uses IR-SIM, we welcome proposals for inclusion via an issue or pull request.

Academic Publications
Community Projects
Courses Using IR-SIM
Citation

If you find IR-SIM useful, please consider starring ⭐ this project and citing our paper:

@article{han2026ir,
  title={IR-SIM: A Lightweight Declarative Simulator for Navigation Learning and Benchmarking},
  author={Han, Ruihua and Wang, Shuai and Li, Chengyang and Gao, Rui and Wang, Xinyi and Liu, Zhe and Li, Guoliang and Lu, Yupu and Hao, Qi and Pan, Jia and Zhao, Hengshuang},
  journal={arXiv preprint arXiv:2606.08729},
  year={2026},
  doi={10.48550/arXiv.2606.08729},
  url={https://arxiv.org/abs/2606.08729},
  eprint={2606.08729},
  archivePrefix={arXiv},
  primaryClass={cs.RO}
}
Contributing

Contributions are welcome! Please see CONTRIBUTING.md (opens in a new tab) for guidelines.

Acknowledgement
License

IR-SIM is released under the MIT License (opens in a new tab).

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.