8 import moveit_commander
10 from moveit_msgs.msg
import MoveItErrorCodes, RobotTrajectory
25 self.dual_arm_group.set_joint_value_target(target)
26 return self.dual_arm_group.
plan()
29 panda_1_pose = self.
panda_1_group.get_current_pose(
"panda_1_link8")
30 panda_1_pose.pose.position.z -= 0.05
31 panda_1_pose.pose.position.x += 0.05
33 panda_2_pose = self.
panda_2_group.get_current_pose(
"panda_2_link8")
34 panda_2_pose.pose.position.z -= 0.05
35 panda_2_pose.pose.position.x -= 0.05
38 panda_1_pose, end_effector_link=
"panda_1_link8"
41 panda_2_pose, end_effector_link=
"panda_2_link8"
45 if isinstance(result, RobotTrajectory):
46 self.assertTrue(result.joint_trajectory.joint_names)
48 success, plan, planning_time, error = result
49 self.assertTrue(error.val == MoveItErrorCodes.SUCCESS)
52 if __name__ ==
"__main__":
53 PKGNAME =
"moveit_ros_planning_interface"
54 NODENAME =
"moveit_test_robot_state_update"
55 rospy.init_node(NODENAME)
56 rostest.rosrun(PKGNAME, NODENAME, RobotStateUpdateTest)