Loading worlds from files#
This tutorial shows how to load a world description from a file into a World object using the URDFParser.
First, we need to compose the path to your world file.
Next we need to initialize a parser that reads this file. There are many parsers available.
To read this specific urdf file, the https://github.com/code-iai/iai_maps/tree/ros-jazzy/ repository needs to be installed
inside your ROS2 workspace.
This constructs a world you can visualize, interact and annotate. Be aware that worlds loaded from files have no semantic annotations and serve as purely kinematic models. Supported file formates are:
urdf
mjcf
stl