45 from moveit_commander
import PlanningSceneInterface
51 expected_resolved_co_name =
"/test_ros_namespace/collision_object"
52 expected_resolved_aco_name =
"/test_ros_namespace/attached_collision_object"
53 self.assertEqual(self.
scenescene._pub_co.resolved_name, expected_resolved_co_name)
54 self.assertEqual(self.
scenescene._pub_aco.resolved_name, expected_resolved_aco_name)
58 expected_resolved_apply_diff_name =
"/test_ros_namespace/apply_planning_scene"
60 self.
scenescene._apply_planning_scene_diff.resolved_name,
61 expected_resolved_apply_diff_name,
65 if __name__ ==
"__main__":
66 PKGNAME =
"moveit_ros_planning_interface"
67 NODENAME =
"moveit_test_python_moveit_commander_ros_namespace"
68 rospy.init_node(NODENAME)
69 rostest.rosrun(PKGNAME, NODENAME, PythonMoveitCommanderRosNamespaceTest)
def test_namespace_synchronous(self)