fastdev.robo.articulation_spec¶
Module Contents¶
- class fastdev.robo.articulation_spec.Geometry[source]¶
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- class fastdev.robo.articulation_spec.Box[source]¶
Bases:
Geometry
Helper class that provides a standard way to create an ABC using inheritance.
- class fastdev.robo.articulation_spec.Cylinder[source]¶
Bases:
Geometry
Helper class that provides a standard way to create an ABC using inheritance.
- class fastdev.robo.articulation_spec.Capsule[source]¶
Bases:
Geometry
Helper class that provides a standard way to create an ABC using inheritance.
- class fastdev.robo.articulation_spec.Sphere[source]¶
Bases:
Geometry
Helper class that provides a standard way to create an ABC using inheritance.
- class fastdev.robo.articulation_spec.Mesh[source]¶
Bases:
Geometry
Helper class that provides a standard way to create an ABC using inheritance.
- class fastdev.robo.articulation_spec.JointType(*args, **kwds)[source]¶
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- class fastdev.robo.articulation_spec.ArticulationSpec(urdf_or_mjcf_path: str | pathlib.Path, mesh_dir: str | pathlib.Path | None = None, format: Literal['urdf', 'mjcf'] | None = None, base_link_name: str | None = None, ee_link_names: str | List[str] | None = None, mjcf_assets: Dict[str, Any] | None = None, enable_mimic_joints: bool = True)[source]¶
Specification for a single articulation.
- Parameters:
urdf_or_mjcf_path (str) – Path to the URDF or MJCF file.
mesh_dir (str, optional) – Directory to store mesh files. Defaults to None.
format (str, optional) – Format of the file, either “urdf” or “mjcf”. Defaults to None.
mjcf_assets (Dict[str, Any], optional) – Assets for MJCF files. Defaults to None.
enable_mimic_joints (bool, optional) – Whether to enable mimic joints. Defaults to True.
base_link_name (Optional[str])
ee_link_names (Optional[Union[str, List[str]]])
Examples
>>> arti_spec = ArticulationSpec(urdf_or_mjcf_path="assets/robot_description/panda.urdf") >>> arti_spec.num_dofs 8
- property joint_limits: Optional[jaxtyping.Float[numpy.ndarray, num_dofs 2]][source]¶
- Return type:
Optional[jaxtyping.Float[numpy.ndarray, num_dofs 2]]
- property mimic_joint_limits: Optional[jaxtyping.Float[numpy.ndarray, num_mimic_joints 2]][source]¶
- Return type:
Optional[jaxtyping.Float[numpy.ndarray, num_mimic_joints 2]]
- property mimic_joint_indices: jaxtyping.Int[numpy.ndarray, num_mimic_joints][source]¶
- Return type:
jaxtyping.Int[numpy.ndarray, num_mimic_joints]
- property mimic_multipliers: jaxtyping.Float[numpy.ndarray, num_mimic_joints][source]¶
- Return type:
jaxtyping.Float[numpy.ndarray, num_mimic_joints]
- property mimic_offsets: jaxtyping.Float[numpy.ndarray, num_mimic_joints][source]¶
- Return type:
jaxtyping.Float[numpy.ndarray, num_mimic_joints]
- property link_joint_indices: jaxtyping.Int[numpy.ndarray, num_links][source]¶
- Return type:
jaxtyping.Int[numpy.ndarray, num_links]
- property link_indices_topological_order: jaxtyping.Int[numpy.ndarray, num_links][source]¶
- Return type:
jaxtyping.Int[numpy.ndarray, num_links]
- property parent_link_indices: jaxtyping.Int[numpy.ndarray, num_links][source]¶
- Return type:
jaxtyping.Int[numpy.ndarray, num_links]
- property link_joint_axes: Optional[jaxtyping.Float[numpy.ndarray, num_links 3]][source]¶
- Return type:
Optional[jaxtyping.Float[numpy.ndarray, num_links 3]]
- property full_joint_axes: jaxtyping.Float[numpy.ndarray, num_full_joints 3][source]¶
- Return type:
jaxtyping.Float[numpy.ndarray, num_full_joints 3]
- property link_joint_origins: jaxtyping.Float[numpy.ndarray, num_links 4 4][source]¶
- Return type:
jaxtyping.Float[numpy.ndarray, num_links 4 4]
- property link_joint_types: jaxtyping.Int[numpy.ndarray, num_links][source]¶
- Return type:
jaxtyping.Int[numpy.ndarray, num_links]