cambrian.renderer.overlays¶
Defines utilities for overlays in the Mujoco viewer.
Classes¶
This class is used to define a cursor for the overlay. |
|
This class is used to add an overlay to the viewer. |
|
This class is used to add text to the viewer. |
|
This class is used to add an image to the viewer. |
|
This class is used to add a site to the viewer. |
Module Contents¶
- class MjCambrianViewerOverlay(obj, cursor=None)[source]¶
This class is used to add an overlay to the viewer.
Note
This is applied only to the passed scene, so other scenes (i.e. ones for the eyes) will not be affected.
- class MjCambrianTextViewerOverlay(obj, cursor=None)[source]¶
Bases:
MjCambrianViewerOverlay
This class is used to add text to the viewer.
- class MjCambrianImageViewerOverlay(obj, cursor=None)[source]¶
Bases:
MjCambrianViewerOverlay
This class is used to add an image to the viewer.
- class MjCambrianSiteViewerOverlay(pos, rgba, size, geom_kwargs=dict(emission=0.25))[source]¶
Bases:
MjCambrianViewerOverlay
This class is used to add a site to the viewer.
Todo
Make this an image overlay where the pos is converted to pixel coordinates.