Skip to content

Commit 257a15b

Browse files
committed
Document how to use the camera overlay in Webots
Inspired by a competitor asking how to see this in Discord, plus mentoring a team in person.
1 parent 8a956b7 commit 257a15b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
6.7 KB
Loading

simulator/simulated_robot.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,22 @@ system of fiducial markers which the physical robot's camera can detect.
121121

122122
You can access the camera with `robot.camera`. The simulated vision system matches the physical robot's vision API, so please use the [vision programming docs page]({{ site.baseurl }}/programming/vision/) as a reference. There are a few small differences between the simulator and the physical kit which are noted on that page.
123123

124+
If you want to see for yourself what the robot camera can see, you can enable an
125+
overlay of the camera's view by right clicking on the robot then going to
126+
**Overlays** → **Camera Devices** → **Show 'camera' overlay**.
127+
128+
![An image of the camera overlay with the relevant part of the simulated arena in the background]({{ site.baseurl }}/images/content/simulator/camera-overlay.png)
129+
130+
The overlay shows the simulated objects which can be seen from the camera's
131+
perspective as well as red outlines around any markers which Webots' vision
132+
system can identify.
133+
134+
You can move the preview around within Webots window, or double-click on it to pop it out to its own window.
135+
136+
<div class="info" markdown="1">
137+
As Webots has full awareness of the whole of the simulation, there may be markers highlighted in the preview which your real robot's camera would not be able to see. In order to make the simulation closer to your real robot, the simulator API filters out these markers.
138+
139+
Consequently: **there may be markers highlighted in the preview which the API does not return**.
140+
</div>
141+
124142
[arduino-programming]: {{ site.baseurl }}/programming/arduino/sr_firmware

0 commit comments

Comments
 (0)