Telepresence · Computer vision
Perspective-correct telepresence and stereo depth
From RealSense-driven UR5e control in Gazebo to a Unity virtual window, then a 3D-printed stereo rig that derives depth from two calibrated NexiGo webcams.
- My role
- RealSense landmark tracking, UDP-to-Unity viewpoint control, and stereo camera rig
- Project context
- Viewer tracking, rendering, and stereo-depth prototypes
- Methods & tools
- MediaPipe · RealSense · Unity · Stereo calibration · Gazebo
Overview
This work developed in three stages. I first used MediaPipe with a RealSense camera to control a UR5e model in Gazebo. I then sent depth-backed MediaPipe landmark positions over UDP to control a virtual camera in Unity, exploring a display that changes perspective with the viewer’s position. Finally, I built a 3D-printed rig with two NexiGo webcams and calibrated their relative pose to generate my own RGB-plus-depth stream from stereo images. The lead video shows the initial robot-control experiment; the later Unity and stereo clips appear below.
From robot control to a virtual window
The Gazebo experiment tested a perception-to-control path: MediaPipe landmarks observed with the RealSense camera drove the simulated UR5e. The Unity work repurposed the same kind of tracked 3D position for viewpoint control rather than arm motion. A UDP message carried the tracked position into Unity, where the virtual camera changed its view as the observer moved.
- RealSense color and depth
- MediaPipe landmark and 3D position
- UDP position update
- Unity viewer position
- Screen-aligned off-axis projection
Perspective correction
The Unity camera component uses three physical screen corners and the viewer’s eye position to define a screen-aligned view basis and an off-axis frustum. The tracking code can estimate an eye midpoint from MediaPipe landmarks, deproject it using aligned RealSense depth, and map the point into a coordinate frame centered on the display. This makes the rendered view respond to viewer motion instead of treating the screen as a fixed camera image. The separate Unity clip shows the virtual-window environment and tracking setup.
Custom stereo depth rig
I later 3D printed a mount for two NexiGo webcams and calibrated their extrinsic relationship. The project source includes ChArUco-based stereo calibration, rectification, disparity, and depth reconstruction code. The stereo clip shows the two camera views, a face-landmark overlay, and a depth visualization. This is depth estimated from passive stereo, rather than the RealSense’s depth sensor used in the earlier stages.
Individual contributions
I developed the MediaPipe/RealSense control experiment, sent depth-backed viewer position to Unity, and built and calibrated the two-webcam rig. Stereo-view synthesis for a two-person system was a separate collaboration direction.
Limitations and next steps
The stereo depth view shows that depth quality varies across the image. Stable viewer positioning would require stronger calibration, texture handling, and depth filtering. Coordinate-frame agreement and end-to-end timing are additional integration challenges.