adam.model.mj_factory.mujoco_model#
Classes#
Factory that builds a model starting from a mujoco.MjModel. |
Functions#
|
|
|
Rotate a vector using quaternion [w, x, y, z]. |
Module Contents#
- class adam.model.mj_factory.mujoco_model.MujocoInertial[source]#
-
- inertia: MujocoInertia[source]#
- origin: MujocoOrigin[source]#
- class adam.model.mj_factory.mujoco_model.MujocoLink[source]#
-
- inertial: MujocoInertial[source]#
- class adam.model.mj_factory.mujoco_model.MujocoJoint[source]#
-
- origin: MujocoOrigin[source]#
- limit: adam.model.abc_factories.Limits | None[source]#
- adam.model.mj_factory.mujoco_model._normalize_quaternion(quat: numpy.ndarray) numpy.ndarray[source]#
- adam.model.mj_factory.mujoco_model._rotate_vector(quat: numpy.ndarray, vec: numpy.ndarray) numpy.ndarray[source]#
Rotate a vector using quaternion [w, x, y, z].
- class adam.model.mj_factory.mujoco_model.MujocoModelFactory(mj_model: mujoco.MjModel, math: adam.core.spatial_math.SpatialMath)[source]#
Bases:
adam.model.abc_factories.ModelFactoryFactory that builds a model starting from a mujoco.MjModel.
- _link_inertial(body_id: int) MujocoInertial[source]#
- _build_links() list[adam.model.std_factories.std_link.StdLink][source]#
- _joint_origin(body_id: int, joint_id: int | None) MujocoOrigin[source]#
- _build_limits(joint_id: int, joint_type: str) adam.model.abc_factories.Limits | None[source]#
- _build_joint(body_id: int, joint_id: int | None, parent_name: str, joint_type: str) adam.model.std_factories.std_joint.StdJoint[source]#
- _build_joints() list[adam.model.std_factories.std_joint.StdJoint][source]#
- abstractmethod build_joint(joint) adam.model.std_factories.std_joint.StdJoint[source]#
build the single joint
- Returns:
Joint
- abstractmethod build_link(link) adam.model.std_factories.std_link.StdLink[source]#
build the single link :returns: Link
- get_joints() list[adam.model.std_factories.std_joint.StdJoint][source]#
- Returns:
the list of the joints
- Return type:
list[Joint]
- get_links() list[adam.model.std_factories.std_link.StdLink][source]#
- Returns:
the list of the link
- Return type:
list[Link]
- get_frames() list[adam.model.std_factories.std_link.StdLink][source]#
- Returns:
the list of the frames
- Return type:
list[Link]