visualization
¶
Traceable
¶
ArrowConfig
dataclass
¶
Python
ArrowConfig(
pos: Vec3,
vec: Vec3,
color: Vec4,
is_torque: bool,
length_scale: float = 1.0,
width_scale: float = 1.0,
)
Returned by:
-
Reference
mujoco_mojoruntime-
ActuatorControlget_visuals -
BodyReactionForceget_visuals -
GeneralLoadget_visuals -
JointFrictionget_visuals -
JointLoadget_visuals -
Loadget_visuals -
PointToPointForceget_visuals -
ScalarForceget_visuals -
ScalarTorqueget_visuals -
SiteLoadget_visuals -
VectorForceget_visuals -
VectorTorqueget_visuals -
load
-
length_scale
class-attribute
instance-attribute
¶
Python
length_scale: float = 1.0
Extra multiplier applied on top of MuJoCo's native length scaling, for stretching or shrinking this arrow's length independently of the others.
width_scale
class-attribute
instance-attribute
¶
Python
width_scale: float = 1.0
Extra multiplier applied on top of MuJoCo's native width scaling, for thickening or thinning this arrow's shaft independently of the others.
fill_geom
¶
Turns geom into this arrow. It can be a slot in a scene or a standalone MjvGeom, which is what a viewer that keeps its own list of decorative geoms wants.
Source code in src/mujoco_mojo/visualization.py
resolve_arrow_coords
¶
Calculates the 'from' and 'to' points and width for an arrow.
Source code in src/mujoco_mojo/visualization.py
LineConfig
dataclass
¶
Returned by:
-
Reference
mujoco_mojoruntime
fill_geom
¶
Turns geom into this line. It can be a slot in a scene or a standalone MjvGeom.