ToolModel.load_geometry
-
ToolModel.
load_geometry
(*resource_loaders, **kwargs)[source] Load external geometry resources, such as meshes.
- Parameters
resource_loaders (
compas.robots.AbstractMeshLoader
) – List of objects that implement the resource loading interface (compas.robots.AbstractMeshLoader
) and can retrieve external geometry.force (boolean) – True if it should force reloading even if the geometry has been loaded already, otherwise False.
Examples
>>> loader = GithubPackageMeshLoader('ros-industrial/abb', 'abb_irb6600_support', 'kinetic-devel') >>> urdf = loader.load_urdf('irb6640.urdf') >>> model = RobotModel.from_urdf_file(urdf) >>> model.load_geometry(loader)