Please make sure to set up your laptop environment BEFORE the conference, if you plan on attending the hands-on session, as the conference WiFi will not support everyone downloading 2-4 GB on the day of the tutorial. See Quick Start below.
This GitHub repository: bit.ly/icra23_ros_git
Docker Hub repository: bit.ly/icra23_ros_docker
Breakout discussions: community notes
Post-tutorial survey: bit.ly/icra23_ros_survey
Software development, an end in itself in industry, is often a means to an end in academic robotics research, where the goal is to create a prototype, which happens to require software, to illustrate that a novel method works in most cases, downscoped by its assumptions.
Whereas academic users expect software to "just work" out of the box, including sophisticated features such as advanced mathematics, to demonstrate a "good enough" nominal case, industry users require all corner cases of vanilla features to be robust or even guaranteed by certification for mission-critical production software. On the other hand, academic research has lately imposed stronger requirements on robustness in simulation, for large-scale long-duration machine learning training.
While industry users can afford the engineering to exactly suit their needs, academic users are motivated by factors such as a timeline characterized by transient student graduation cycles and limited software development time between short publication cycles, development toward software prototypes as opposed to robust long-term reliable or mission-critical production software, sophisticated algorithmic developments that potentially depend on multiple large existing packages simultaneously (for example, ROS, Gazebo, MoveIt, and OpenAI Gym) to create cutting-edge research innovations, typically smaller software packages and development teams, and smaller fleets of robots compared to large warehouse logistic operations, to name a few.
These factors mean that academic users have less time to understand the foundations of software tools, for example, network communications underlying middleware, physics and rendering underlying robotics simulation, software design paradigms and performance, and proper development process for open source software. As a concrete example, Data Distribution Service (DDS) is a critical building block of ROS 2 when it comes to basic usage and performance. For Gazebo, it means understanding how physics engines differ and choosing the one with the numerical stability or performance best for the specific robotics sub-domain. These choices can affect simulation and real robot results dramatically. Without understanding these differences and choices, it could make a software appear unsuitable or even unusable, when the solution is simply proper configuration.
After 8 distribution releases of ROS 2 and with ROS 1 official support coming to an end in 2025, at ICRA 2022 Philadelphia, we found that many current ROS 1 users in academia still had questions about whether and when they should migrate to ROS 2.
While ROS 2 has seen wide industry adoption, including mission-critical space applications and autonomous vehicles, academic users have been uncertain. In this tutorial, we hope to address the uncertainty by exposing attendees to new features in ROS 2 and the new Gazebo (formerly Ignition) through hands-on exercises using examples developed for real-world applications.
Audience:
- ROS 1 users wondering whether to to migrate to ROS 2 users new to ROS
- ROS 2 users
- Gazebo-classic users wondering whether to migrate to new Gazebo
- Users wondering whether the new Gazebo is right for them
- Users of other simulators looking to learn about the new Gazebo and existing infrastructure we worked on with Nvidia, DeepMind, and Toyota Research Institute in the past few years to handle format conversions between SDF and formats used by OmniVerse, MuJoCo, and Drake.
Clone this repository:
git clone https://github.com/osrf/icra2023_ros2_gz_tutorial.git
We will be using Ubuntu Jammy (22.04), ROS 2 Humble, and Gazebo Garden.
Follow the installation instructions in docker/README.md
to get set up and running.
Here's a list of open source products and projects publically known to be using ROS 2 and/or new Gazebo.
If you would like to submit your project to be added this list, please follow the directions below.
The list is meant to serve as usage examples for the community’s reference and interactions in their own time. It is not meant for for-profit advertisement. We do not promise to feature any of the entries live on the tutorial day.
- Must use ROS 2 or the new Gazebo (formerly Ignition), i.e. if the project uses ROS 1 and Gazebo-classic, it does not satisfy this criterion.
- Open source
- Preferably, there is a visual representation (image, video, etc) in the URL you provide.
This is not a contribution in the formal sense. We are simply asking for a project title, URL, and a one-line description (please keep it short).
These should be substantial projects beyond hello-world tutorials and examples we already provide.
For example projects, see recent monthly Gazebo Community Meetings and ROS News for the Week, e.g.
- Gazebo Community Meeting Aug 2022: Intern projects
- Gazebo Community Meeting Jun 2022: Surface ocean wave rendering and AUV simulation
- Gazebo Community Meeting Apr 2022: MOV.AI Flow ROS IDE
- Gazebo Community Meeting Jan 2022: Pan-African competition
Open a pull request in this repository. Your code change should be a short one-line bullet list item added to the PROJECTS.md file. Fill out the pull request template for Project Contribution. Prefix your pull request title with [Project].
Visibility for your open source project and community interaction.
There is no formal deadline in the conventional sense of workshop contributions. View this as an open source contribution, where pull requests are opened and reviewed on a reasonable timeline.
Thank you for your contribution.
While it is impossible to cover all of the software foundations underlying ROS 2 and Gazebo (or other simulators), we hope to expose attendees to such factors, the new features in ROS 2 and Gazebo, and give them an avenue of resources to follow when they encounter obstacles while using these software in their robotics research.
In the first half of the day, we will first discuss reasons one might choose ROS 2, feature comparisons between ROS 1 and ROS 2 [1], whether ROS 2 is right for different applications, and our migration resources. Then, we will have a short breakout discussion for attendees to share and discuss their use of ROS and ROS 2. The main portion of the tutorial is a hands-on session for the attendees to try out ROS 2 on their laptops, using our Dockerfiles, which is part of our regular infrastructure and is automatically updated nightly on Docker Hub.
In the second half of the day, we will have a similar discussion about migrating from Gazebo-classic to the new Gazebo (formerly Ignition), and hands-on practice.
References
[1] Steven Macenski, Tully Foote, Brian Gerkey, Chris Lalancette, and William Woodall. Robot Operating System 2: Design, architecture, and uses in the wild. Science Robotics, May 2022. Volume 7, issue 66. DOI 10.1126/scirobotics.abm6074
-
Welcome and Intro (9:00 am, 5 mins, Mabel Zhang)
-
ROS 2 - What's New? (9:05 am, 50 mins, Chris Lalancette)
- Cross-platform (Linux, Windows, macOS)
- Rolling release
- Pluggable comms/rmw layer at runtime (default middleware is DDS)
- Client Libraries (rclcpp, rclpy)
- Parameters
- Composable nodes
- Lifecycle nodes
- Launch in Python, XML, YAML
- Security (SROS2)
- DDS
- Present and elaborate on points of whether people should switch to ROS 2
- Community projects built on top of ROS 2
- microROS for running on embedded systems
- navigation2
- MoveIt 2
- ros2_control
- Support cycle
- Package availability
- ROS 2 in different domains
- Open Robotics Middleware Framework (Open-RMF) for indoor robot fleets (GitHub)
- MBZIRC for surface vessels (GitHub)
- VIPER for space (publicly announced, code not public)
- SpaceROS
- Deep reinforcement learning manipulation ROS 2 + MoveIt2 + Gazebo + OpenAI Gym (Andrej Orsula GitHub)
- Community projects built on top of ROS 2
- Resources - links to tutorials, API documentation, design documents, Discourse, list of Working Groups, simple ROS 2 DDS configurations, ROSCon (all past videos free online), Diversity Scholarships, etc.
- Q&A (5 mins)
-
ROS 2 breakout discussions (10:00 am, 30 mins)
-
Refreshment break (10:30 am, 10 mins)
-
ROS 2 hands-on guided session with Dockerfile (10:40 am, 105 mins)
- Getting started
- Quick demo of things that should work
- Beginner CLI Tools
- Beginner Client Libraries
- Intermediate Tutorials
- MoveIt 2 Tutorials
-
Lunch (12:30-1:30 pm)
-
All about the new Gazebo, "Alter Ego of Gazebo" (1:30 pm, 50 mins, Mabel Zhang)
- What is the new Gazebo
- Releases
- Showcase per-release demo worlds: Edifice, Fortress, Garden
- Installing with ROS
- Showcase projects from different application domains: land, space, sea, manipulation
- DARPA SubTerranean Challenge (GitHub, 3D model collection on Fuel): physics-based rendering (PBR), levels (LOD), distributed simulation, cloud simulation
- Rubicon Trail world 3D model on Fuel, snowy model on Fuel: runs with gazebo-web/gzweb (web portion not public yet)
- MBARI Wave Energy Converter (GitHub, DockerHub): high-fidelity wave dynamics, physics just as accurate in 400x faster than real time
- Community-contributed wave visualization by Rhys Mainwaring
- MBARI Long-Range Autonomous Underwater Vehicle (GitHub, DockerHub): 100x faster than real time, point cloud visualization, 3D plotting
- Tools
- 2D plotting
- 3D plotting
- Native point cloud visualization
- Gazebo Fuel: a free online 3D models dataset
- Blender resources for modeling - SDF export, procedural generation (community-contributed, Andrej Orsulo)
- Migration from Gazebo-classic: feature comparison, migration tutorials (scroll to bottom)
- Format conversions with other simulators
- Nvidia Omniverse (OSRF GitHub gz-omni, Nvidia docs, OSRF announcement, Nvidia announcement, and Nvidia Isaac announcement)
- MuJoCo (OSRF gz-mujoco)
- Drake (OSRF GitHub Project Board)
- Resources - Documentation, Tutorials, API, Gazebo Community site, monthly Gazebo Community Meetings, etc.
- Q&A
- What is the new Gazebo
-
Gazebo breakout discussions (2:20 pm, 30 mins)
-
Gazebo hands-on guided session with Dockerfile (2:50 pm, 90 mins)
- Quick demo of things that should work
- Developer resources
- Documentation
- Tutorials & library API. gz-sim is entry point library
- Gazebo Fuel, free online database of 3D models and worlds
- Feature comparison with Gazebo-classic
- gazebosim GitHub org, GitHub Project board
- Development roadmap and processes (CI, contributing guidelines, release process)
- Integration with ROS 2 with
ros_gz
- Pair up. At your own pace, choose one or more from the following tutorials:
- Command line interface, bash completion
- GUI intro
gz sim
using out-of-the-box worls on Gazebo splash screen- Component inspection panel: physics time step, real time factor
- Real time factor detailed panel on lower-right
- Entity tree panel
- Camera views: Move To, Follow
- Reset button
- Other example worlds that ship with Gazebo
- Levels (concept similar to Level of Detail) rendering
- Levels tutorial
gz sim levels.sdf --levels
gz topic -t "/model/vehicle_blue/cmd_vel" -m gz.msgs.Twist -p "linear: {x: 4.0}"
gz topic -t "/model/vehicle_red/cmd_vel" -m gz.msgs.Twist -p "linear: {x: 2.0}"
- Model tiles defined in SDF will load and unload in the proximity of moving vehicle
- Using sensors tutorial
- Developing a Gazebo system plugin
- Entity Component System (ECS)
- API for system plugins, PIMPL
- Simple system plugin walkthrough: thermal camera
- All system plugins live here
- Other tutorials
-
Refreshment break (4:20 pm, 10 minutes)
-
Conclusion (4:30 pm)
- Ways to get involved with us
- For hands-on questions with the community: ROS Answers (migrating to Robotics Stack Exchange), Gazebo Answers
- For high-level discussions: ROS Discourse, Gazebo Community
- ROS News for the Week, Monthly Gazebo Community Meetings
- Pull requests to our GitHub repositories: ros2, gazebosim, Gazebo GitHub Project Board
- Participate in ROS Working Groups - Navigation, Manipulation, Control, Embedded, Real-time, Safety, Maritime, etc. See Project Governance
- Summer internships through Google Summer of Code (GSoC) and Google Season of Docs (GSoD)
- ROSCon annual developers conference, and Diversity Scholarships to attend ROSCon
- Open-floor Q&A and discussions
- Ways to get involved with us
Please take notes here.
Suggested discussion topics for ROS 2 breakout:
- What ROS version are you using, ROS 1 or 2? If you are not using ROS, what middleware are you using?
- What is your application domain?
- What problems have you encountered with ROS 1, if any? To your knowledge, does ROS 2 solve any of them?
- If you are using ROS 1, what stops you from migrating to ROS 2?
- If you have used both ROS 1 and ROS 2, what do you like and dislike about each? Are there problems in one version that are solved in the other?
- What problems have you encountered with ROS 2?
Suggested discussion topics for Gazebo breakout:
- What simulator do you currently use? Why did you choose it? Which other simulators have you evaluated before choosing it, if any?
- If you are using a simulator, what are you using it for? Are you using it for development? For testing? For continuous integration?
- Have you ever used Gazebo-classic? Have you heard of the new Gazebo (formerly Ignition)? What do you know about the new Gazebo?
- What are the most important problems that your current simulator DOES address for your use case?
- What are the most important problems that simulators do not address for your use case? This can be a limit of the state of the art, or of the particular simulators you have tried. For example, contact physics, deformable objects, approximate hydrodynamics, rendering of specific environments, etc.
Mabel Zhang, Open Robotics team at Intrinsic
Chris Lalancette, Open Robotics team at Intrinsic
The organizers thank the following facilitators (alphabetical by first name) from the community for helping to make the tutorial happen:
- Andrej Orsula, University of Luxembourg
- Rakesh Vivekanandan, Oregon State University
- Rhys Mainwaring
- Timothy R. Player, University of Washington Applied Physics Lab