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:
-
Code 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.
resolve_arrow_coords
¶
Calculates the 'from' and 'to' points and width for an arrow.