RosFileServerLoader

class compas_fab.backends.RosFileServerLoader[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:
roscompas_fab.backends.RosClient

The ROS client.

local_cachebool

True to store a local copy of the ROS files, otherwise False. Defaults to False.

local_cache_directorystr, optional

Directory name to store the cached files. Only used if local_cache is True. Defaults to ~/robot_description.

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.