feathersdk.robot.urdf_loader Module¶
Load a robot URDF into Pinocchio and extract drive-wheel geometry.
- class feathersdk.robot.urdf_loader.WheelGeometry(name, center, radius, width)¶
Bases:
objectGeometric properties of a drive wheel extracted from URDF visual meshes.
- to_json_dict()¶
Serialize this geometry to a JSON-compatible dictionary.
- classmethod from_json_dict(data)¶
Deserialize geometry from a JSON dictionary produced by
to_json_dict.- Parameters:
- Return type:
- class feathersdk.robot.urdf_loader.URDFLoader(urdf_path, robot)¶
Bases:
objectLoads a robot URDF into a Pinocchio model and derives swerve-wheel geometry.
- Parameters:
urdf_path (PathLike) – Path to the URDF file to load.
robot (FeatherRobot) – The robot instance; used to read actuator
urdf_link_namevalues for wheel extraction.
- property pin_import: ModuleType¶
The
pinocchiomodule (imported lazily so it is not required unless used).
- property pin_all_models: Tuple[Any, Any, Any]¶
Tuple of the pinocchio
(model, collision_model, visual_model).
- property wheel_geometries: Dict[str, WheelGeometry]¶
Drive-wheel geometries keyed by
urdf_link_name.