VrepClient
- class compas_fab.backends.VrepClient(host='127.0.0.1', port=19997, scale=1.0, lua_script='RFL', debug=False)[source]
Bases:
ClientInterface
Interface to run simulations using VREP as the engine for kinematics and path planning.
VrepClient
is a context manager type, so it’s best used in combination with thewith
statement to ensure resource deallocation.- Args:
host (
str
): IP address or DNS name of the V-REP simulator. port (int
): Port of the V-REP simulator. scale (int
): Scaling of the model. Defaults to meters (1
). lua_script (str
): Name of the LUA script on the V-REP scene. debug (bool
): True to enable debug messages, False otherwise.
Examples:
>>> from compas_fab.backends import VrepClient >>> with VrepClient() as client: ... print ('Connected: %s' % client.is_connected) Connected: True
- Note:
For more examples, check out the V-REP examples page.
Methods
Gets a list of object handles (identifiers) for all visible shapes of the 3D model.
Gets the object handle (identifier) for a given object name.
Gets a dictionary of matrices keyed by object handle.
Gets the current configuration of the specified robot.
Moves the robot to the specified configuration.
Assigns a metric defining relations between axis values of a robot.
Moves the robot to a given pose, specified as a frame.
Inherited Methods
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.