Simulation · surgical robotics · In production
Rehearsing robotic surgery before anyone is in the room.
A browser-based training environment for a surgical robot system. Theatre staff choose a procedure, position the robot, place the ports, and see immediately whether the arm can reach — and whether it collides with the patient.
- Sector
- Medical · surgical robotics
- Engagement
- Subcontract via a UK agency
- Platform
- Browser · WebGL
- Stack
- Three.js · three-mesh-bvh · TypeScript
- Status
- In production
The problem
A surgical robot has to be positioned before an operation begins, and getting that wrong costs theatre time at the worst possible moment. Port placement and arm positioning are normally learned on the machine itself — which is expensive, scarce, and usually in use.
What we built
- Procedure selection. Each type of intervention starts from its own configuration, so a session begins in a clinically meaningful state rather than an empty scene.
- Drag-and-drop arm placement. Robot arms are dragged into the scene from a catalogue and positioned around the patient.
- Port placement. The user marks where each instrument enters the body. Ports are the fixed constraint everything else has to work around.
- Inverse kinematics. An IK solver finds the arm pose that puts the end effector through its port. The base and the joints can then be moved freely and the arm stays docked — it re-solves rather than detaching.
- Collision detection. Continuous detection between arm geometry and the patient's body, accelerated with a BVH so it holds up at interactive frame rates against dense anatomical meshes.
What was hard
Keeping the IK stable while the user drags the base. The constraint is not "reach this point" but "stay through this port while everything else moves", which means re-solving every frame without the arm snapping, flipping to a mirrored solution, or drifting off the port. A solver that is merely correct is not enough; it has to be correct the same way twice.
Contact
contact@inginius.fr — Inginius, France.