@@ -54,17 +54,16 @@ class VrepClient(object):
5454
5555 >>> from compas_fab.backends import VrepClient
5656 >>> with VrepClient() as client:
57- ... print ('Connected: %s' % client.is_connected
58- ...
57+ ... print ('Connected: %s' % client.is_connected)
5958 Connected: True
6059
6160 Note:
6261 For more examples, check out the :ref:`V-REP examples page <examples_vrep>`.
6362 """
6463 SUPPORTED_PLANNERS = ('bitrrt' , 'bkpiece1' , 'est' , 'kpiece1' ,
65- 'lazyprmstar' , 'lbkpiece1' , 'lbtrrt' , 'pdst' ,
66- 'prm' , 'prrt' , 'rrt' , 'rrtconnect' , 'rrtstar' ,
67- 'sbl' , 'stride' , 'trrt' )
64+ 'lazyprmstar' , 'lbkpiece1' , 'lbtrrt' , 'pdst' ,
65+ 'prm' , 'prrt' , 'rrt' , 'rrtconnect' , 'rrtstar' ,
66+ 'sbl' , 'stride' , 'trrt' )
6867
6968 def __init__ (self , host = '127.0.0.1' , port = 19997 , scale = DEFAULT_SCALE , lua_script = 'RFL' , debug = False ):
7069 super (VrepClient , self ).__init__ ()
@@ -150,8 +149,8 @@ def get_object_matrices(self, object_handles):
150149 >>> from compas_fab.backends import VrepClient
151150 >>> with VrepClient() as client:
152151 ... matrices = client.get_object_matrices([0])
153- ... print([int(i) for i in matrices[0]])
154- [0, 0, 0, 19, 0, 0, 0, 10, 0, 0, 0, 6]
152+ ... print([int(i) for i in matrices[0]]) # doctest: +SKIP
153+ [0, 0, 0, 19, 0, 0, 0, 10, 0, 0, 0, 6] # doctest: +SKIP
155154
156155 .. note::
157156 The resulting dictionary is keyed by object handle.
@@ -226,7 +225,7 @@ def set_robot_config(self, robot, config):
226225 >>> with VrepClient() as client:
227226 ... config = Configuration.from_prismatic_and_revolute_values([7.600, -4.500, -5.500],
228227 ... to_radians([90, 0, 0, 0, 0, -90]))
229- ... client.set_robot_config(Robot.basic ('A', index=0 ), config)
228+ ... client.set_robot_config(rfl.Robot ('A'), config)
230229 ...
231230 """
232231 assert_robot (robot )
@@ -250,7 +249,7 @@ def get_robot_config(self, robot):
250249
251250 >>> from compas_fab.robots import *
252251 >>> with VrepClient() as client:
253- ... config = client.get_robot_config(Robot.basic ('A', index=0 ))
252+ ... config = client.get_robot_config(rfl.Robot ('A'))
254253
255254 Returns:
256255 An instance of :class:`.Configuration`.
@@ -272,16 +271,16 @@ def forward_kinematics(self, robot):
272271
273272 >>> from compas_fab.robots import *
274273 >>> with VrepClient() as client:
275- ... frame = client.forward_kinematics(Robot.basic ('A', index=0 ))
274+ ... frame = client.forward_kinematics(rfl.Robot ('A'))
276275
277276 Returns:
278277 An instance of :class:`Frame`.
279278 """
280279 assert_robot (robot )
281280
282281 _res , _ , pose , _ , _ = self .run_child_script ('getIkTipPose' ,
283- [robot .model .attr ['index' ]],
284- [], [])
282+ [robot .model .attr ['index' ]],
283+ [], [])
285284 return vrep_pose_to_frame (pose , self .scale )
286285
287286 def inverse_kinematics (self , robot , goal_frame , metric_values = None , gantry_joint_limits = None , arm_joint_limits = None , max_trials = None , max_results = 1 ):
0 commit comments