Tennis-Court Simulation in Webots and Isaac Sim
Tennis-court simulation in Webots and Isaac Sim with fixed and ball-following cameras, configurable ball trajectories, and geometry-based YOLO labels for synthetic vision datasets.

Tools & Skills
- Webots
- Isaac Sim
- Synthetic Data
- Auto-Labeling
- Camera Geometry
- USD
- YOLO Annotation
- 3D Simulation
- My contribution
- Built court scenes, camera controllers, ball-motion scripts, and projection-based image labeling in Webots and Isaac Sim.
- Outcome
- Synthetic image and YOLO-label generation from multiple camera layouts, including a Webots rally prototype with player and ball annotations.
Project overview
I built tennis-court environments in Webots and NVIDIA Isaac Sim to explore camera coverage and generate labeled images for tennis-ball perception. The scenes use a 23.77 × 10.97 m doubles court, singles and service markings, a net, and configurable camera placement.
The work connects scene construction, ball motion, camera control, and automatic annotation. Simulator geometry supplies the ball position and camera transforms needed to project objects into each image.
Webots camera and recording pipeline
The Webots world provides six camera views, with separate controllers for static-camera recording, ball-following recording, and combined capture.
| Camera set | Configuration | Role |
|---|---|---|
| Four fixed cameras | 1920 × 1080 images | Cover the court from multiple viewpoints |
| Two pan-and-tilt cameras | 640 × 640 images, mounted at the net posts | Follow the simulated ball with a narrower field of view |
The tracking controller computes pan and tilt from the ball’s known world position at each simulation step. This provides controlled views for dataset generation. Selectable launch presets vary linear and angular velocity for serves, groundstrokes, volleys, and lobs in both court directions; separate trajectories can be selected for evaluation.
For each camera, the recorder transforms the ball center into camera coordinates, maps Webots axes to an OpenCV-style projection, and uses field of view, image dimensions, and ball radius to estimate an image-space box. It saves camera-prefixed JPEG images and normalized YOLO bounding-box labels, with visibility checks to skip unsuitable views. The six-camera ball recorder adds a five-pixel margin to the projected radius.
Player and rally simulation
A further Webots controller adds two human models that move laterally toward the ball. Scripted hit zones reset ball velocity to produce a simple back-and-forth rally.
This controller projects a 3D envelope around each player into the camera image and writes player and ball boxes together. The rally is a controllable scene-generation prototype, with player motion and shot changes defined by controller rules.
Isaac Sim scene and annotation pipeline
The Isaac Sim scripts build the court as USD geometry and explore camera poles, net-side viewpoints, human models, and ball placement. The animated scene uses two 1600 × 1200 cameras, a gravity-based ball-motion script, and keyboard reset for repeating a trajectory.
For annotation, the script projects eight corners around the ball’s 3D center, takes their image-space bounding rectangle, and normalizes it into YOLO format. Image export includes configurable additive Gaussian noise, bounding-box visualization, and checks on normalized label values. A separate viewer overlays saved labels for inspection.
Outcome
The project provides synthetic capture and labeling workflows for comparing fixed and ball-following viewpoints, generating varied ball appearances, and extending ball-only scenes to player-and-ball detection. Camera geometry and simulator state drive the labels, while the exported images and annotation viewer support dataset inspection before training.


