The problem
A robot that can switch between wheels and legs only helps if it knows when to switch. Asphalt wants wheels. Mud, rubble and stairs want whegs. So it has to look at a patch of ground and answer two questions: what is it, and what does that mean physically (how slippery, how drivable, is it an obstacle)?
I also want to give it goals the way I'd talk to a person: "go to the puddle", "go to the guy with the red hat". Not x/y coordinates. The idea running through the whole project is pixels → semantics → physics → motion. A green patch is grass, grass has a friction of about 0.5 and drives fine, so plan through it on wheels.
This is a team project at CAR. The robot and the base perception approach (language-guided terrain segmentation) come from the group. My part is the autonomy pipeline, from perception to control.
How it works
I broke it into three stages, each harder than the last:
- Stage 1: map to trajectory. A 3D map is given. Attach meaning to it, take a prompt, and drive there.
- Stage 2: empty map to trajectory. The robot builds the semantic map itself from its own camera while it moves.
- Stage 3: optimal trajectory. The same, on messy terrain, choosing the path and the wheel configuration.
The core is an open-vocabulary 3D semantic map:
- Dense features from a vision-language model. Every image patch gets an embedding from Meta's Perception Encoder (PE-B). It lives in the same space as text, so any phrase can be compared against it with no retraining for new words.
- Fusion into 3D. With depth and camera pose, those features are projected into a voxel map and averaged over many views. It's the same idea as OpenScene, with my own implementation.
- Prompts become 3D masks. A prompt like "standing water" is scored against every voxel. Prompts can be state-aware too: "the closest puddle", "the mud near the bench", "go back".
- Physics from semantics. Each class carries traversability, friction and an "is it a rigid obstacle" flag, all with uncertainty. These roll up into a 2D cost grid.
- Driving. The grid becomes a Nav2 map. Smac plans the route, MPPI drives it, and the robot waits for the next prompt.
What I built
- Evaluation on real off-road data (RELLIS-3D). A pipeline that loads real camera and LiDAR sequences, builds the 3D semantic map, scores it against human labels, turns it into a cost grid and plans a path, with interactive 3D views of each map.
- A prompt-and-drive loop. You type a place, the robot drives there through Nav2 and MPPI in Unity, and it waits for the next prompt. Each prompt writes a 3D heatmap of the plan and the route actually driven.
- A live semantic map over ROS 2. It builds the map from the robot's own camera as it drives, and publishes a point cloud showing how well each point matches the current prompt. You can change the prompt live in RViz. The same node runs on the Unity sim or a real RealSense D435i with RTAB-Map for pose, so moving to hardware is one launch file.
- A Unity simulation with a city scene and a custom test course, a skid-steer driver that takes ROS velocity commands, and a camera publisher that makes Unity look like a RealSense.
- Tooling for honest comparisons. It records every keyframe, rebuilds maps offline with different settings, scores the robot-built map against simulator ground truth, and compares against a labels-only baseline (SAM3 masks, majority vote).

Results so far
- Where can I drive? On real data, zero-shot PE-B is about as good as perfect human image labels projected into 3D. Obstacle F1 is 0.83 vs 0.85, and the planned path is 52.8 m vs 52.4 m on ground truth.
- Wet terrain is the catch. Puddle IoU is 0.16 vs 0.58, and mud is 0.10 vs 0.50. Those are the classes that decide wheel configuration and friction, so this is the next thing to fix. SAM3 masks for terrain classes are the leading option. Part of the mud error is the dataset: RELLIS's LiDAR labels have no dirt class, so dry dirt tracks are labelled mud.
- Live map accuracy. In an offline check, reconstructed surfaces land about 7.6 cm from the true surface, with 98% of labels correct.
- In simulation, the full loop works end to end: the robot drives a scan circle, builds its own map, you type "tree", and MPPI drives it there.




What I learned
- Where you take the features from matters. Raw cosine similarity on the SAM3 backbone didn't work, but PE-B patch tokens passed through the pooling head's value path did.
- Obstacles should be semantic, not just geometric. Tall grass is high but drivable. Letting only rigid classes (trees, rocks, logs) block by height cut false blockages on the driven route from about 29% to about 0.
- Most of the real-time problems were plumbing, not AI. ROS message queues flooding, clock and frame conventions, conda vs ROS library clashes. Building the sim camera to look exactly like the real one paid off.
Next
- Score the robot-built map against simulator ground truth vs the SAM3 labels baseline, the last open piece of stage 1.
- First handheld and on-robot runs with the D435i.
- Fix wet-terrain perception, then map class and friction to a wheel or wheg configuration (stage 3).
