A robot that moves through a building has to turn what its sensors see into a map it can plan on. This page runs that loop in the browser. A quadruped walks through a furnished house, a depth camera on its head produces a depth image ten times a second, and each image is fused into a map of 5 cm voxels. The real scene is on the left and the map the robot has built so far is on the right.

  • What it isA browser demo of depth-camera mapping and frontier exploration, with no server behind it
  • SceneA public Gazebo world of a furnished house, about 19 m by 11 m
  • SensorA simulated depth camera: 160 × 90 pixels, 0.3 to 6 m, ten scans a second
  • MapOccupancy voxels of 5 cm, updated by hits and by the free space each ray crosses
  • MotionManual driving, or exploration planned on the robot's own map
  • Stackthree.js and WebGL for the scene and the sensor, plain JavaScript for the map, Python for the assets

How to use it

The demo starts in auto explore: the robot turns once to look around, then keeps walking to the nearest edge of what it has seen until no such edge is left. Any drive key switches to manual.

ControlWhat it does
W A S D or the arrow keysDrive the robot. Click the view first so it has the keyboard
Drag, scrollOrbit and zoom. Both halves share one camera, so the map and the scene stay aligned
Depth sensorClean depth, noisy depth, or low-resolution noisy depth. The change applies to the next scan
Map colourThe colour the camera saw at each voxel, or the voxel’s height
Simulation speedRuns the same loop two or four times faster
Reset mapForgets the map and puts the robot back at the start

The three small pictures at the bottom left are the robot’s colour image, the depth image that goes into the map, and the floor grid the planner uses. In the depth picture, pixels beyond the trusted range are dimmed: they clear free space and do not add surface.

Where this comes from

At RGA I worked on perception for a quadruped robot, and one line of that work was depth: the Depth page describes a network that restores low-resolution, noisy depth maps. That page stops at the depth map. This one starts there and asks what the depth is for.

The sensor switch in the demo uses the same degradation model as that page, a downsampled depth map with added noise. With clean depth the robot trusts returns out to 6 m and maps the house in one pass. With low-resolution noisy depth it can trust only what is close, so it walks more than twice as far and still finds less of the surface.

Three top-down maps of the same house side by side. Clean depth: trusted range 6.0 metres, finished after 82 seconds and 40 metres walked, surface found 67.2 percent, 99.9 percent within 5 centimetres of the scene. Noisy depth: trusted range 3.2 metres, 101 seconds, 51 metres, 52.7 percent found, 93.9 percent within 5 centimetres. Low-resolution noisy depth: trusted range 1.6 metres, 213 seconds, 97 metres, 38.9 percent found, 95.7 percent within 5 centimetres. The robot's path is drawn on each map and gets longer and more winding from left to right.
Figure 1. The map at the end of an exploration run with each of the three sensor settings. The numbers are from headless runs of the same mapping code and are on the Results page.

What is real and what is simulated

  • The house is the Small House World that AWS RoboMaker published for Gazebo, released under an MIT-style permission notice. I converted its meshes to one glTF file and removed the ceiling so the rooms can be seen from above.
  • The robot is the Unitree Go2 model from MuJoCo Menagerie, under the BSD-3-Clause licence. It is a public model used to show a quadruped. It is not the robot from the RGA pages.
  • The depth camera is simulated: the house is rendered from the camera’s position and the depth of every pixel is read back. No recorded sensor data is involved, and none of the data comes from RGA.
  • The robot’s position is exact. The map is built with known poses, so this is mapping and exploration. It is not SLAM: nothing here estimates the pose from the sensor.
  • The map, the floor grid and the planner are the real thing. They take a depth image and a camera pose, and the same files run in Node, where the unit tests and the measurements on the Results page come from.

Reading order

  1. How it worksThe depth render, the sensor model, the voxel update rules, the floor grid and the frontier planner, and three failures that shaped them.
  2. ResultsExploration time, distance walked, surface found and accuracy for the three sensor settings, and what the numbers do not cover.
  3. Quadruped perception at RGAThe detection, depth, face and locomotion work this demo is a companion to.