VrepClient.set_robot_config

VrepClient.set_robot_config(robot, config)[source]

Moves the robot to the specified configuration.

Parameters
  • robot (compas_fab.robots.Robot) – Robot instance to move.

  • config (Configuration instance) – Describes the position of the robot as an instance of Configuration.

Examples

>>> from compas_fab.robots import *
>>> with VrepClient() as client:
...     config = Configuration.from_prismatic_and_revolute_values([7.600, -4.500, -5.500],
...                                                               to_radians([90, 0, 0, 0, 0, -90]))
...     client.set_robot_config(rfl.Robot('A'), config)
...