GithubPackageMeshLoader
- class compas.robots.GithubPackageMeshLoader(repository, support_package, branch='main', relative_path=None)[source]
Bases:
AbstractMeshLoader
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_path
to'.'
. Defaults tosupport_package
Methods
Returns the corresponding url of the file.
Determine whether this loader can load a given mesh URL.
Loads a mesh from a Github repository URL.
Load meshes from the given URL.
Load a URDF file from a Github support package repository.