clearpath_config.links.links module
- class clearpath_config.links.links.Link(_type: str, name: str)
Bases:
object
- BOX = 'box'
- CYLINDER = 'cylinder'
- FRAME = 'frame'
- MESH = 'mesh'
- SPHERE = 'sphere'
- TYPE = {'box': <class 'clearpath_config.links.types.box.Box'>, 'cylinder': <class 'clearpath_config.links.types.cylinder.Cylinder'>, 'frame': <class 'clearpath_config.links.types.frame.Frame'>, 'mesh': <class 'clearpath_config.links.types.mesh.Mesh'>, 'sphere': <class 'clearpath_config.links.types.sphere.Sphere'>}
- classmethod assert_type(_type: str) None
- class clearpath_config.links.links.LinkListConfig
Bases:
ListConfig
[BaseLink
,str
]- to_dict() List[dict]
- class clearpath_config.links.links.LinksConfig(config: dict = {}, box: List[Box] = [], cylinder: List[Cylinder] = [], frame: List[Frame] = [], mesh: List[Mesh] = [], sphere: List[Mesh] = [])
Bases:
BaseConfig
- BOX = 'box'
- CYLINDER = 'cylinder'
- DEFAULTS = {'box': [], 'cylinder': [], 'frame': [], 'mesh': [], 'sphere': []}
- FRAME = 'frame'
- KEYS = {'box': 'links.box', 'cylinder': 'links.cylinder', 'frame': 'links.frame', 'mesh': 'links.mesh', 'sphere': 'links.sphere'}
- LINKS = 'links'
- MESH = 'mesh'
- SPHERE = 'sphere'
- TEMPLATE = {'links': {'box': 'box', 'cylinder': 'cylinder', 'frame': 'frame', 'mesh': 'mesh', 'sphere': 'sphere'}}
- add_box(box: Box | None = None, name: str | None = None, size: List[float] = [0.01, 0.01, 0.01], parent: str = 'default_mount', xyz: List[float] = [0.0, 0.0, 0.0], rpy: List[float] = [0.0, 0.0, 0.0], offset_xyz: List[float] = [0.0, 0.0, 0.0], offset_rpy: List[float] = [0.0, 0.0, 0.0]) None
- add_cylinder(cylinder: Cylinder | None = None, name: str | None = None, radius: float = 0.01, length: float = 0.01, parent: str = 'default_mount', xyz: List[float] = [0.0, 0.0, 0.0], rpy: List[float] = [0.0, 0.0, 0.0], offset_xyz: List[float] = [0.0, 0.0, 0.0], offset_rpy: List[float] = [0.0, 0.0, 0.0]) None
- add_frame(frame: Frame | 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], offset_xyz: List[float] = [0.0, 0.0, 0.0], offset_rpy: List[float] = [0.0, 0.0, 0.0]) None
- add_mesh(mesh: Mesh | None = None, name: str | None = None, visual: dict = '', parent: str = 'default_mount', xyz: List[float] = [0.0, 0.0, 0.0], rpy: List[float] = [0.0, 0.0, 0.0], offset_xyz: List[float] = [0.0, 0.0, 0.0], offset_rpy: List[float] = [0.0, 0.0, 0.0]) None
- add_sphere(sphere: Sphere | None = None, name: str | None = None, radius: float = 0.01, parent: str = 'default_mount', xyz: List[float] = [0.0, 0.0, 0.0], rpy: List[float] = [0.0, 0.0, 0.0], offset_xyz: List[float] = [0.0, 0.0, 0.0], offset_rpy: List[float] = [0.0, 0.0, 0.0]) None
- property box: LinkListConfig
- property cylinder: LinkListConfig
- property frame: LinkListConfig
- property mesh: LinkListConfig
- property sphere: LinkListConfig