GithubPackageMeshLoader

class compas.robots.GithubPackageMeshLoader(repository, support_package, branch='main')[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.

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.