@@ -90,7 +90,7 @@ def init_robot(self):
9090 self .node , "/tool_contact_controller/enable_tool_contact" , ToolContact
9191 )
9292 self ._trajectory_until_interface = ActionInterface (
93- self .node , "/trajectory_until /execute" , TrajectoryUntil
93+ self .node , "/trajectory_until_node /execute" , TrajectoryUntil
9494 )
9595
9696 def setUp (self ):
@@ -117,14 +117,14 @@ def test_tool_contact(self):
117117 cancel_res = self ._tool_contact_interface .cancel_goal (goal_handle )
118118 self .assertEqual (cancel_res .return_code , 0 )
119119
120- def test_trajectory_until (self ):
120+ def test_trajectory_until (self , tf_prefix ):
121121 L_pose_to_down = {
122- "waypts" : [[- 0.45 , - 1.5 , 1.5 , - 1.5 , - 1.5 , - 1.5 ], [- 0.45 , - 1.2 , 2.1 , - 2.4 , - 1.5 , - 1.5 ]],
122+ "waypts" : [[1.5 , - 1.5 , - 0.45 , - 1.5 , - 1.5 , - 1.5 ], [2.1 , - 1.2 , - 0.45 , - 2.4 , - 1.5 , - 1.5 ]],
123123 "time_vec" : [Duration (sec = 3 , nanosec = 0 ), Duration (sec = 6 , nanosec = 0 )],
124124 }
125125
126126 trajectory = JointTrajectory ()
127- trajectory .joint_names = ROBOT_JOINTS
127+ trajectory .joint_names = [ tf_prefix + joint for joint in ROBOT_JOINTS ]
128128
129129 trajectory .points = [
130130 JointTrajectoryPoint (
0 commit comments