From 0902c9676c2324587fccf19333750f2a7e2b8835 Mon Sep 17 00:00:00 2001 From: wangWking <842749351@qq.com> Date: Thu, 9 Jun 2022 15:13:41 +0800 Subject: [PATCH] update path_planning_and_obstracle_aavoidance_demo.py --- .../path_planning_and_obstacle_avoidance_demo.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mycobot_pro/mycobot_600_moveit/scripts/path_planning_and_obstacle_avoidance_demo.py b/mycobot_pro/mycobot_600_moveit/scripts/path_planning_and_obstacle_avoidance_demo.py index cd4024d..f74581c 100755 --- a/mycobot_pro/mycobot_600_moveit/scripts/path_planning_and_obstacle_avoidance_demo.py +++ b/mycobot_pro/mycobot_600_moveit/scripts/path_planning_and_obstacle_avoidance_demo.py @@ -32,7 +32,7 @@ class MoveItPlanningDemo: # Set the reference coordinate system used for the target position # 设置目标位置所使用的参考坐标系 - self.reference_frame = "joint1" + self.reference_frame = "base" self.arm.set_pose_reference_frame(self.reference_frame) # Allow replanning when motion planning fails,当运动规划失败后,允许重新规划 @@ -116,13 +116,13 @@ class MoveItPlanningDemo: suit_post.pose.orientation.z = quat[2] suit_post.pose.orientation.w = quat[3] - suit_path = ( - roslib.packages.get_pkg_dir("mycobot_description") - + "/urdf/mycobot/suit_env.dae" - ) - # need `pyassimp==3.3` - self.scene.add_mesh("suit", suit_post, suit_path) - rospy.sleep(2) + # suit_path = ( + # roslib.packages.get_pkg_dir("mycobot_description") + # + "/urdf/mycobot/suit_env.dae" + # ) + # # need `pyassimp==3.3` + # self.scene.add_mesh("suit", suit_post, suit_path) + # rospy.sleep(2) # Run it again if there is an environmental impact,有环境影响后再运行一次 self.moving()