hanruihua/ir-sim

A Python-based lightweight robot simulator designed for navigation, control, and learning

What it solves

Traditional robot simulators often require heavy setups, complex coding, and significant hardware. IR-SIM addresses this by offering a lightweight, Python-based environment where you can quickly prototype navigation, control, and learning algorithms. It removes the burden of writing boilerplate code for robots, sensors, and environments, letting you focus on the algorithm itself. This makes it ideal for academic research, education, and multi-agent or robot-learning experiments.

How it works

You define your entire simulation scenario in a simple YAML file—world size, step time, robot kinematics (differential, omnidirectional, Ackermann), shape, initial state, goal, and behavior policy. Then you create an environment with irsim.make("your_config.yaml"), run it step by step with env.step(), and visualize results using a Matplotlib-based renderer. The simulator handles collision detection and supports a range of built-in behaviors (dash, RVO, ORCA, SFM), sensors (2D LiDAR, FMCW LiDAR, contact, field-of-view), and geometric objects (circles, rectangles, polygons, grid maps). Optional extras like keyboard control, a compiled lidar kernel, and video export are available via pip extras.

Who it’s for

IR-SIM is built for researchers, educators, and students working on robot navigation, control, and learning. It is particularly useful for academic projects—it’s cited in multiple papers and used in courses at universities like HKU and SUSTech. If you need a fast, declarative way to test multi-robot algorithms, deep reinforcement learning policies, or sensor-based planning, IR-SIM provides an accessible starting point.

Highlights

  • YAML-driven scenario configuration—no complex coding required
  • Lightweight and fast, with a Matplotlib-based renderer for quick debugging
  • Supports multiple kinematics, sensors, geometries, and behavior policies
  • Built-in collision detection and customizable collision handling
  • Suitable for multi-agent and robot-learning research
  • Open-source (MIT license) with English and Chinese documentation
  • Used in academic publications and university courses

Related

  • Project
  • Project
  • Project
  • Project
  • Project