GithubPackageMeshLoader

class compas.robots.GithubPackageMeshLoader(repository, support_package, branch='main', relative_path=None)[source]

Bases: compas.robots.resources.basic.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 to support_package

Methods

build_url(file)

Returns the corresponding url of the file.

can_load_mesh(url)

Determine whether this loader can load a given mesh URL.

load_mesh(url)

Loads a mesh from a Github repository URL.

load_urdf(file)

Load a URDF file from a Github support package repository.