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.5.tar.gz
(318.1 kB
view details)
Built Distribution
ir_sim-2.2.5-py3-none-any.whl
(337.1 kB
view details)
File details
Details for the file ir_sim-2.2.5.tar.gz
.
File metadata
- Download URL: ir_sim-2.2.5.tar.gz
- Upload date:
- Size: 318.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 | 9d30e87b2048f72088d5bbfcda50155331ad975d205201361025c26332c3e4af |
|
MD5 | bda9a43a0c18cc06f9be0918777a0ddf |
|
BLAKE2b-256 | b0710f249fdc093edece9ba7042f1dfd7ccdc6daf3fd3aeec49185145877d27d |
File details
Details for the file ir_sim-2.2.5-py3-none-any.whl
.
File metadata
- Download URL: ir_sim-2.2.5-py3-none-any.whl
- Upload date:
- Size: 337.1 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 | f4f0044af6b17cceddca772c0f094434526ee6827c50d1fe3128eb69e5013d4c |
|
MD5 | d276bdc14c9f7981d8cde95a866f43c3 |
|
BLAKE2b-256 | 10c6d56cf0294674551979551c448651b08ff31f595da98eef17cd73b2a77d6c |