Replies: 1 comment 2 replies
-
Webots allows you to display overlays from either cameras or displays. The camera overlay is not modifiable with the display api. In order to draw on top of a camera feed, you can link a display to the camera and then draw on the display. To do this, create a Note that you can toggle each overlay from the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm facing an issue and not actually sure how to solve it even though I've read the documentation for the
Display
API (found here: Display APII have a Pedestrian robot which has a camera named
camera
. The display of this camera is shown in the following screenshot:I would like to add text to this display, but I don't understand how to reference it from my controller. How to I get an instance of that current display so I can call
.drawText
? I'm trying to add some text to it. I'm using the Python API. My whole controller is subclassing fromSupervisor
.Thanks in advance,
Lucas.
Beta Was this translation helpful? Give feedback.
All reactions