GithubPackageMeshLoader

class compas_robots.resources.GithubPackageMeshLoader[source]

Bases: AbstractMeshLoader

Loads resources stored in Github.

Attributes:
repositorystr

Repository name including organization, e.g. ros-industrial/abb.

support_packagestr

Name of the support package containing URDF, Meshes and additional assets, e.g. ‘abb_irb4400_support’

branchstr

Branch name, defaults to main.

relative_pathstr

Relative path of the support package within the repository. If the repository itself is the support package, set relative_path to '.'. Defaults to support_package

Methods

build_url

Returns the corresponding url of the file.

can_load_mesh

Determine whether this loader can load a given mesh URL.

load_meshes

Load meshes from the given URL.

load_urdf

Load a URDF file from a Github support package repository.