Robot Control Through VR
A real-time VR control loop for a UR5 robotic arm, built in the UW Graphics Group, plus a tool for replaying arm motion from 15+ lab-experiment datasets.
I was a graphics researcher in the UW Graphics Group from September 2020 to May 2022. There, I built a real-time VR control loop that maps hand movements to a UR5 robotic arm. When the pandemic interrupted lab access, I also built a Unity tool for replaying arm motion from 15+ lab-experiment datasets. Starting from an existing desktop demo, I integrated Vive input, ROS communication, RelaxedIK, and Unity motion playback.
From hand movement to joint motion
When the operator moves the Vive controller, Unity on Windows sends a position goal through ROS# and rosbridge to RelaxedIK on Linux. The joint angles come back the same way and animate the arm model. Replay takes a second path: recorded joint values drive local animation clips, so it doesn’t need the solver at all.
I didn’t write the inverse kinematics. RelaxedIK supplied the solver, which relaxes pose accuracy when it competes with smooth, continuous, collision-free joint motion. My work was connecting it to the VR interaction and the visualization.
Holding the goal still
A clutch switches between following the controller and holding the target, so the operator can reposition their hand without moving the goal, a bit like lifting a mouse off the desk. ROS# converts Unity coordinates into ROS coordinates. My version publishes position goals only, with a fixed orientation, and it doesn’t calibrate the VR space against the robot’s physical origin. That would be a separate task.
Replaying experiments without the lab
After lab access stopped, I shifted to inspecting earlier experiments in VR. The importer maps six recorded arm angles and a gripper value onto the UR5 model and builds Unity animation curves from them, with restart and slider-seek controls.
It reconstructs the motion, but not the timing. The importer spreads the rows evenly across about ten seconds instead of using the recorded timestamps, so the original timing is lost, and the arm and gripper don’t play back fully in sync. If I picked this up again, the first thing I would add is one clock, based on the recorded time, for both.