Mojo model
mojo_model
¶
UserData
¶
MojoModel
¶
Bases: MojoBaseModel, StochasBase
Mojo is the highest level watcher which manages model definitions.
mjcf
class-attribute
instance-attribute
¶
Python
mjcf: Mujoco = Field(default_factory=Mujoco)
MuJoCo MJCF model to be written to XML.
user_data
class-attribute
instance-attribute
¶
Python
user_data: SerializeAsAny[UserData] | None = None
User defined data for the model. This is used for transferring information from one function to another (generator to runtime or objective function).
get_user_data
¶
Python
get_user_data(cls: type[T]) -> T
Returns the user_data re-validated into the requested class.