RosFileServerLoader

class compas_fab.backends.RosFileServerLoader(ros=None, local_cache=False, local_cache_directory=None, precision=None)[source]

Bases: object

Allows to retrieve the mesh files specified in the robot model from the ROS File Server. Optionally, it stores them on the local file system, allowing for faster re-loads as well as enabling them to be loaded by the local package loaders afterwards.

Parameters
  • ros (compas_fab.backends.RosClient) – The ROS client.

  • local_cache (bool) – True to store a local copy of the ROS files, otherwise False. Defaults to False.

  • local_cache_directory (str, optional) – Directory name to store the cached files. Only used if local_cache is True. Defaults to ~/robot_description.

  • precision (float) – Defines precision for importing/loading meshes. Defaults to compas.PRECISION.

Methods

can_load_mesh

Determine whether this loader can load a given mesh URL.

load_mesh

Load the mesh from the given URL.

load_meshes

Load meshes from the given URL in the ROS file server.

load_srdf

Loads an SRDF model from the specified ROS parameter.

load_urdf

Loads a URDF model from the specified ROS parameter.