A world model for ROS 2 robots that explore buildings. On top of the SLAM map it keeps:
- the rooms and the doorways between them,
- the objects in each room, found by an open-vocabulary detector,
- how much of every room the robot's cameras have actually seen.
It plans where to stand and look next, and answers "where is the dustbin" and "how do I get there", so missions name targets instead of carrying coordinates. The models run on the host GPU, and the ROS messages never name one.
flowchart LR
CAM[/RGB-D cameras/] --> DET[canopy_perception<br/>detector]
DET <-- ZMQ --> SRV[(servers/<br/>semantic_server.py)]
DET -- InstanceMaskArray --> WM[canopy<br/>world model]
CAM --> WM
MAP[/SLAM map, LiDAR, TF/] --> WM
WM -- DescribeRequest --> DES[canopy_perception<br/>object_describer]
DES <-- ZMQ --> SRV
DES -- Description --> WM
WM -- rooms, objects,<br/>viewpoints --> BT[your behavior tree<br/>or agent]
| Part | What it is |
|---|---|
canopy |
The world model: rooms, camera coverage, objects, the viewpoint planner, and the ROS node around them. |
canopy_msgs |
Its interfaces: instance masks, rooms, objects, describer requests, and the search and exploration services. |
canopy_perception |
The front end: a detector and a describer that ask the model servers, and a mock detector for simulators. |
servers |
The models, on the host GPU: YOLOE-26 detection (SAM 3.1 runs in TensorRT in sam3_inference), SigLIP 2 embeddings, and Gemini or a local Qwen VLM for names and room types. Not a ROS package. |
editor |
A web page for checking a saved world by hand after a run: relabel, rename, delete, merge, split, move or add objects, and retype rooms. Not a ROS package. How to use it: editor/doc/guide.md. |
Built for ROS 2 Jazzy (Ubuntu 24.04), C++20.
The flat the pictures come from, in MuJoCo: a living room with an open kitchen and dining table, a bedroom, a study with a day bed, an office, a storage room and the hallway between them, with 44 props and the Unitree G1 where it starts:
The simulated G1 exploring it from no map, watched in RViz (rviz:=true):
- each room is tinted and labelled with how much of it the cameras have seen;
- red is still to see, cyan what no standing spot can see;
- big green discs are doorways, small dots the viewpoints, the blue line the robot's trail;
- objects are boxed in their room's colour, and the head camera's picture sits top left.
What the run leaves in world_dir:
The map editor is for checking that world by hand afterwards:
Asked to go to an object, canopy picks where the robot should stand, 0.72 m off for the G1. That is square to one of the object's sides and near its middle where one is clear, and round a corner where walls or furniture hem every side in. Each blue dot is such a pose for an object of that world, with the robot starting at the star, and its arrow is the way the robot faces. The potted plant in the living room's corner (red cross) has none: the walls and furniture round it leave no spot with the G1's clearance.
In a colcon workspace:
cd ~/ws/src && git clone https://github.com/Adyansh04/canopy.git
cd ~/ws && rosdep install --from-paths src --ignore-src -y
pip install msgpack-numpy==0.4.8 # no rosdep key; the Python nodes need it
colcon build --symlink-installThe model servers run outside ROS, on the host's GPU:
cd ~/ws/src/canopy
./servers/setup.sh # a uv virtualenv under ~/.local/share/canopy
./servers/start-vlm.sh start # optional: the offline describer
~/.local/share/canopy/.venv/bin/python servers/semantic_server.pyros2 launch canopy world_model.launch.py world_dir:=/data/worlds/home rviz:=true \
cameras:=head=/camera odom_topic:=/odom cloud_topic:=/lidar/points \
detector:=true describe:=true params_file:=my_robot_canopy.yamlThe robot needs:
- a latched
/mapfrom SLAM ormap_server, and TF frommapto its base and each camera; - RGB-D cameras that publish as a RealSense driver does, and a LiDAR point cloud;
- its own values in
params_file: footprint radius, walking and turning speeds, how long to wait for the detector; - something to walk it through the exploration loop that
canopydescribes. Nav2'sNavigateToPoseandSpinare enough.
On the simulated G1 above, from no map, with a head and a chest camera (grove-g1, where canopy began). The flat has 46 objects a standing robot can see.
| Detector | Rooms | Walls seen | Objects found | Boxes (median IoU) | Time |
|---|---|---|---|---|---|
| Ground-truth masks | 6 of 6 | 96-99 % | 100 % | 0.76-0.80 | 30-34 min |
| SAM 3.1 + SigLIP 2 + describer | 6 of 6 | 96-99 % | 87-93 % | 0.68-0.72 | 31-33 min |
YOLOE-26 (detector_yoloe.yaml) + SigLIP 2 + describer |
6 of 6 | 95-99 % | 72-85 % | 0.67-0.83 | 34-42 min |
With a real detector:
- SAM 3.1 names only what is there: 3 to 5 objects that are not in the flat, against YOLOE's 22 on the same day. Most of its misses are names: the wardrobe comes back as a cabinet and a crate as a cardboard box, and an object seen only once is dropped unconfirmed.
- YOLOE confuses furniture of one material on the simulator's renders (desk, cabinet, TV stand) and misses mugs and bowls on tables.
- The describer names most of them correctly.
- The world model reimplements ideas from Hydra, ConceptGraphs, OVO, DynaMem, VLFM, FUEL, TARE and
Bormann et al.;
canopylinks each. - The models the servers run are credited in
servers.
BSD 3-Clause; see LICENSE.








