compas_robots.resources
¤
Model descriptions rarely embed geometry directly; instead, they reference it through filenames or URLs pointing to externally hosted resources. This package provides loader classes that automate fetching and processing those resources.
Classes¤
AbstractMeshLoader
¤
DefaultMeshLoader
¤
GithubPackageMeshLoader
¤
GithubPackageMeshLoader(
repository: str,
support_package: str,
branch: str = "main",
relative_path: str | None = None,
)
Loads resources stored in Github.
Attributes:
-
repository(str) –Repository name including organization, e.g.
ros-industrial/abb. -
support_package(str) –Name of the support package containing URDF, Meshes and additional assets, e.g.
abb_irb4400_support -
branch(str) –Branch name, defaults to
main. -
relative_path(str) –Relative path of the support package within the repository. If the repository itself is the support package, set
relative_pathto'.'. Defaults tosupport_package
LocalPackageMeshLoader
¤
Loads suport package resources stored locally.
Attributes:
-
path–Path where the package is stored locally.
-
support_package–Name of the support package containing URDF, Meshes and additional assets, e.g.
abb_irb4400_support.
Functions¤
mesh_import
¤
Internal function to load meshes using the correct loader.
Name and file might be the same but not always, e.g. temp files.