This is a fork of Flatland modified to work on ROS 2 natively (not using ROS 1 bridge). The development targeted ROS 2 Humble, which was the latest release of ROS 2 at the time of writing.
Hopefully the changes in this repository will be merged to the original Flatland repository.
- Flatland is a performance centric 2D robot simulator
- It is useful for simple simulations that don't require 3D capabilities
- It allows for time acceleration, which is useful for reinforcement learning
- Install ROS 2 Humble following the official installation guide
- Install git
git clone
this repository into your project's workspace'ssrc
folder- Install the required dependencies using
rosdep install -i --from-path src --rosdistro humble -y
colcon build
source install/setup.bash
You can check our fork of the official turtlebot_flatland example. We made this work on ROS 2 natively as well.
git clone https://github.com/JoaoCostaIFG/turtlebot_flatland.git
into your workspace'ssrc
directory- Install the required dependencies using
rosdep install -i --from-path src --rosdistro humble -y
colcon build
source install/setup.bash
ros2 launch turtlebot_flatland turtlebot_in_flatland.launch.py
We developed a wall-following reactive robot for ROS 1. We then converted the code to ROS 2, so it could be used as an example ROS 2 Flatland project.
git clone -b ros2 https://github.com/JoaoCostaIFG/ri.git
into your workspace'ssrc
directory- Install the required dependencies using
rosdep install -i --from-path src --rosdistro humble -y
colcon build
source install/setup.bash
ros2 launch c_turtle c_turtle.launch.py
You can either direct questions to us by creating issues. Although he isn't directly associated with this fork, if needed, you can try to contact the original Flatland creator @josephduchesne.
Currently, there isn't any new documentation for this fork of Flatland. It should be safe to defer to the original Flatland's documentation:
- How to use: http://flatland-simulator.readthedocs.io
- Doxygen: http://flatland-simulator-api.readthedocs.io
All Flatland code is BSD 3-clause licensed (see LICENSE for details)
Flatland uses a number of open source libraries that it includes in its source tree:
- ThreadPool Copyright (c) 2012 Jakob Progsch, Václav Zeman (zlib license)
- Tweeny Copyright (c) 2016 Leonardo Guilherme de Freitas (MIT license)
- Box2d Copyright (c) 2006-2017 Erin Catto http://www.box2d.org (zlib license)