clearpath_config.common.types.accessory module
- class clearpath_config.common.types.accessory.Accessory(name: str, parent: str = 'default_mount', xyz: List[float] = [0.0, 0.0, 0.0], rpy: List[float] = [0.0, 0.0, 0.0])
Bases:
object
- PARENT = 'default_mount'
- RPY = [0.0, 0.0, 0.0]
- XYZ = [0.0, 0.0, 0.0]
- static assert_valid_link(link: str) None
- static assert_valid_triplet(tri: List[float], msg: str | None = None) None
- from_dict(d: dict) None
- get_name() str
- get_parent() str
- get_rpy() List[float]
- get_xyz() List[float]
- set_name(name: str) None
- set_parent(parent: str) None
- set_rpy(rpy: List[float]) None
- set_xyz(xyz: List[float]) None
- to_dict() dict
- class clearpath_config.common.types.accessory.IndexedAccessory(idx: int | None = None, name: str | None = None, parent: str = 'default_mount', xyz: List[float] = [0.0, 0.0, 0.0], rpy: List[float] = [0.0, 0.0, 0.0])
Bases:
Accessory
- get_idx() str
- classmethod get_name_from_idx()
- set_idx(idx: int) None