Open-source, lightweight robot 2D simulator based on Python, specifically designed for intelligent robotics navigation and learning.
Project description
IR-SIM is an open-source, lightweight robot 2D simulator based on Python, specifically designed for intelligent robotics navigation and learning. Primarily intended for research and educational purposes, it is user-friendly and easily customizable.
It provides the following features:
- A versatile and easy-to-use framework for simulating a variety of robot platforms with kinematics and sensors.
- Customizable configurations and parameters using yaml files.
- Real-time visualization of simulation outcomes.
- Ideal for developing and testing algorithms related to robot navigation, motion planning, reinforcement learning.
Robot | Car |
---|---|
Prerequisite
- Python: >= 3.7
Installation
- Install this package from PyPi:
pip install ir-sim
- Or for development, you may install from source:
git clone https://github.com/hanruihua/ir-sim.git
cd ir-sim
pip install -e .
Usage
Quick Start
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 height 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, 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
Advanced Usage
The advanced usages are listed in the irsim/usage
Cases
- rl-rvo-nav(RAL & ICRA2023)
- RDA_planner(RAL & IROS2023)
Acknowledgement
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ir_sim-2.2.6.tar.gz
(321.1 kB
view details)
Built Distribution
ir_sim-2.2.6-py3-none-any.whl
(341.3 kB
view details)
File details
Details for the file ir_sim-2.2.6.tar.gz
.
File metadata
- Download URL: ir_sim-2.2.6.tar.gz
- Upload date:
- Size: 321.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f04afdad92c252a3f3529a3b6201d1b56ffb3bcdd3a4de8f5b3b1d20778c690 |
|
MD5 | a2e8ccdb317a26a7e276d936c71a32e2 |
|
BLAKE2b-256 | 3683ee7f6d269a44a285528dc54c92c843c6aabbf38a8f89d010265591993ee4 |
File details
Details for the file ir_sim-2.2.6-py3-none-any.whl
.
File metadata
- Download URL: ir_sim-2.2.6-py3-none-any.whl
- Upload date:
- Size: 341.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabc3a74e22f65aa470beed7afd6d19914b17a61c7c5f83fea1dd4f03dacd4c4 |
|
MD5 | 610ade0b22f79630a81b7d7cc893deb0 |
|
BLAKE2b-256 | 07fe565675e4edb6784e6d17da2491004eec5598b95e8f31bc1074bef0ffb79d |