From a5eef1c114ee440e788eb665247e86745f19e639 Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Thu, 18 Jan 2018 18:34:34 +0900 Subject: [PATCH] Refactor moveit config and launch --- jsk_arc2017_baxter/launch/setup/baxter.launch | 2 +- .../launch/setup/baxterlgv7.launch | 2 +- .../baxterlgv7_planning_context.launch | 25 -- .../{ => moveit/baxter}/baxter_moveit.launch | 6 +- .../baxter_trajectory_execution.launch.xml} | 5 +- .../baxterlgv7}/baxterlgv7_moveit.launch | 6 +- ...baxterlgv7_trajectory_execution.launch.xml | 19 ++ .../{ => moveit/common}/move_group.launch | 8 +- .../moveit_controller_manager.launch.xml} | 4 +- .../common}/ompl_planning_pipeline.launch | 2 +- .../common}/planning_context.launch | 9 +- .../{ => baxter}/baxter.srdf.xacro | 6 +- .../{ => baxter}/baxter_base.srdf.xacro | 0 .../controllers.yaml} | 0 .../{ => baxter}/joint_limits.yaml | 0 .../{ => baxterlgv7}/baxterlgv7.srdf.xacro | 10 +- .../baxterlgv7/baxterlgv7_base.srdf.xacro | 287 ++++++++++++++++++ .../moveit_config/baxterlgv7/controllers.yaml | 39 +++ .../joint_limits.yaml} | 0 .../{ => common}/gripper_v6.srdf.xacro | 0 .../{ => common}/gripper_v7.srdf.xacro | 0 .../{ => common}/ompl_planning.yaml | 0 22 files changed, 381 insertions(+), 49 deletions(-) delete mode 100644 jsk_arc2017_baxter/launch/setup/include/baxterlgv7_planning_context.launch rename jsk_arc2017_baxter/launch/setup/include/{ => moveit/baxter}/baxter_moveit.launch (82%) rename jsk_arc2017_baxter/launch/setup/include/{trajectory_execution.launch.xml => moveit/baxter/baxter_trajectory_execution.launch.xml} (88%) rename jsk_arc2017_baxter/launch/setup/include/{ => moveit/baxterlgv7}/baxterlgv7_moveit.launch (81%) create mode 100644 jsk_arc2017_baxter/launch/setup/include/moveit/baxterlgv7/baxterlgv7_trajectory_execution.launch.xml rename jsk_arc2017_baxter/launch/setup/include/{ => moveit/common}/move_group.launch (90%) rename jsk_arc2017_baxter/launch/setup/include/{baxter_moveit_controller_manager.launch.xml => moveit/common/moveit_controller_manager.launch.xml} (93%) rename jsk_arc2017_baxter/launch/setup/include/{ => moveit/common}/ompl_planning_pipeline.launch (95%) rename jsk_arc2017_baxter/launch/setup/include/{ => moveit/common}/planning_context.launch (84%) rename jsk_arc2017_baxter/robots/moveit_config/{ => baxter}/baxter.srdf.xacro (83%) rename jsk_arc2017_baxter/robots/moveit_config/{ => baxter}/baxter_base.srdf.xacro (100%) rename jsk_arc2017_baxter/robots/moveit_config/{baxter_controllers.yaml => baxter/controllers.yaml} (100%) rename jsk_arc2017_baxter/robots/moveit_config/{ => baxter}/joint_limits.yaml (100%) rename jsk_arc2017_baxter/robots/moveit_config/{ => baxterlgv7}/baxterlgv7.srdf.xacro (62%) create mode 100644 jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/baxterlgv7_base.srdf.xacro create mode 100644 jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/controllers.yaml rename jsk_arc2017_baxter/robots/moveit_config/{baxterlgv7_joint_limits.yaml => baxterlgv7/joint_limits.yaml} (100%) rename jsk_arc2017_baxter/robots/moveit_config/{ => common}/gripper_v6.srdf.xacro (100%) rename jsk_arc2017_baxter/robots/moveit_config/{ => common}/gripper_v7.srdf.xacro (100%) rename jsk_arc2017_baxter/robots/moveit_config/{ => common}/ompl_planning.yaml (100%) diff --git a/jsk_arc2017_baxter/launch/setup/baxter.launch b/jsk_arc2017_baxter/launch/setup/baxter.launch index 0aef7b4d8..405e99ef9 100644 --- a/jsk_arc2017_baxter/launch/setup/baxter.launch +++ b/jsk_arc2017_baxter/launch/setup/baxter.launch @@ -58,7 +58,7 @@ pkg="jsk_baxter_startup" type="xdisplay_image_topic.py" args="/desktop_bg_publisher/output" /> - + diff --git a/jsk_arc2017_baxter/launch/setup/baxterlgv7.launch b/jsk_arc2017_baxter/launch/setup/baxterlgv7.launch index dd108d679..b226098eb 100644 --- a/jsk_arc2017_baxter/launch/setup/baxterlgv7.launch +++ b/jsk_arc2017_baxter/launch/setup/baxterlgv7.launch @@ -58,7 +58,7 @@ pkg="jsk_baxter_startup" type="xdisplay_image_topic.py" args="/desktop_bg_publisher/output" /> - + diff --git a/jsk_arc2017_baxter/launch/setup/include/baxterlgv7_planning_context.launch b/jsk_arc2017_baxter/launch/setup/include/baxterlgv7_planning_context.launch deleted file mode 100644 index 02697aeab..000000000 --- a/jsk_arc2017_baxter/launch/setup/include/baxterlgv7_planning_context.launch +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jsk_arc2017_baxter/launch/setup/include/baxter_moveit.launch b/jsk_arc2017_baxter/launch/setup/include/moveit/baxter/baxter_moveit.launch similarity index 82% rename from jsk_arc2017_baxter/launch/setup/include/baxter_moveit.launch rename to jsk_arc2017_baxter/launch/setup/include/moveit/baxter/baxter_moveit.launch index 370541c3a..a4aae0970 100644 --- a/jsk_arc2017_baxter/launch/setup/include/baxter_moveit.launch +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/baxter/baxter_moveit.launch @@ -4,12 +4,14 @@ - + + - + + diff --git a/jsk_arc2017_baxter/launch/setup/include/trajectory_execution.launch.xml b/jsk_arc2017_baxter/launch/setup/include/moveit/baxter/baxter_trajectory_execution.launch.xml similarity index 88% rename from jsk_arc2017_baxter/launch/setup/include/trajectory_execution.launch.xml rename to jsk_arc2017_baxter/launch/setup/include/moveit/baxter/baxter_trajectory_execution.launch.xml index 768042991..20f3ea8d8 100644 --- a/jsk_arc2017_baxter/launch/setup/include/trajectory_execution.launch.xml +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/baxter/baxter_trajectory_execution.launch.xml @@ -13,6 +13,7 @@ - - + + + diff --git a/jsk_arc2017_baxter/launch/setup/include/baxterlgv7_moveit.launch b/jsk_arc2017_baxter/launch/setup/include/moveit/baxterlgv7/baxterlgv7_moveit.launch similarity index 81% rename from jsk_arc2017_baxter/launch/setup/include/baxterlgv7_moveit.launch rename to jsk_arc2017_baxter/launch/setup/include/moveit/baxterlgv7/baxterlgv7_moveit.launch index b5fdce759..96e490920 100644 --- a/jsk_arc2017_baxter/launch/setup/include/baxterlgv7_moveit.launch +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/baxterlgv7/baxterlgv7_moveit.launch @@ -4,12 +4,14 @@ - + + - + + diff --git a/jsk_arc2017_baxter/launch/setup/include/moveit/baxterlgv7/baxterlgv7_trajectory_execution.launch.xml b/jsk_arc2017_baxter/launch/setup/include/moveit/baxterlgv7/baxterlgv7_trajectory_execution.launch.xml new file mode 100644 index 000000000..5c92021c3 --- /dev/null +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/baxterlgv7/baxterlgv7_trajectory_execution.launch.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/jsk_arc2017_baxter/launch/setup/include/move_group.launch b/jsk_arc2017_baxter/launch/setup/include/moveit/common/move_group.launch similarity index 90% rename from jsk_arc2017_baxter/launch/setup/include/move_group.launch rename to jsk_arc2017_baxter/launch/setup/include/moveit/common/move_group.launch index 0ed0e8416..a44fdf105 100644 --- a/jsk_arc2017_baxter/launch/setup/include/move_group.launch +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/common/move_group.launch @@ -1,5 +1,7 @@ + + @@ -18,12 +20,12 @@ - + - + - + diff --git a/jsk_arc2017_baxter/launch/setup/include/baxter_moveit_controller_manager.launch.xml b/jsk_arc2017_baxter/launch/setup/include/moveit/common/moveit_controller_manager.launch.xml similarity index 93% rename from jsk_arc2017_baxter/launch/setup/include/baxter_moveit_controller_manager.launch.xml rename to jsk_arc2017_baxter/launch/setup/include/moveit/common/moveit_controller_manager.launch.xml index 1c37b3a49..687e6952e 100644 --- a/jsk_arc2017_baxter/launch/setup/include/baxter_moveit_controller_manager.launch.xml +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/common/moveit_controller_manager.launch.xml @@ -1,5 +1,7 @@ + + @@ -16,6 +18,6 @@ - + diff --git a/jsk_arc2017_baxter/launch/setup/include/ompl_planning_pipeline.launch b/jsk_arc2017_baxter/launch/setup/include/moveit/common/ompl_planning_pipeline.launch similarity index 95% rename from jsk_arc2017_baxter/launch/setup/include/ompl_planning_pipeline.launch rename to jsk_arc2017_baxter/launch/setup/include/moveit/common/ompl_planning_pipeline.launch index 2d1572c3b..2599f13be 100644 --- a/jsk_arc2017_baxter/launch/setup/include/ompl_planning_pipeline.launch +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/common/ompl_planning_pipeline.launch @@ -18,6 +18,6 @@ - + diff --git a/jsk_arc2017_baxter/launch/setup/include/planning_context.launch b/jsk_arc2017_baxter/launch/setup/include/moveit/common/planning_context.launch similarity index 84% rename from jsk_arc2017_baxter/launch/setup/include/planning_context.launch rename to jsk_arc2017_baxter/launch/setup/include/moveit/common/planning_context.launch index 9be3f8442..13038240e 100644 --- a/jsk_arc2017_baxter/launch/setup/include/planning_context.launch +++ b/jsk_arc2017_baxter/launch/setup/include/moveit/common/planning_context.launch @@ -1,4 +1,7 @@ + + + @@ -6,15 +9,15 @@ - + + command="rosrun xacro xacro --inorder $(find jsk_arc2017_baxter)/robots/moveit_config/$(arg robot)/$(arg robot).srdf.xacro"/> - + diff --git a/jsk_arc2017_baxter/robots/moveit_config/baxter.srdf.xacro b/jsk_arc2017_baxter/robots/moveit_config/baxter/baxter.srdf.xacro similarity index 83% rename from jsk_arc2017_baxter/robots/moveit_config/baxter.srdf.xacro rename to jsk_arc2017_baxter/robots/moveit_config/baxter/baxter.srdf.xacro index 664df1b0d..ddc5a4f0c 100644 --- a/jsk_arc2017_baxter/robots/moveit_config/baxter.srdf.xacro +++ b/jsk_arc2017_baxter/robots/moveit_config/baxter/baxter.srdf.xacro @@ -2,12 +2,12 @@ - + - + - + diff --git a/jsk_arc2017_baxter/robots/moveit_config/baxter_base.srdf.xacro b/jsk_arc2017_baxter/robots/moveit_config/baxter/baxter_base.srdf.xacro similarity index 100% rename from jsk_arc2017_baxter/robots/moveit_config/baxter_base.srdf.xacro rename to jsk_arc2017_baxter/robots/moveit_config/baxter/baxter_base.srdf.xacro diff --git a/jsk_arc2017_baxter/robots/moveit_config/baxter_controllers.yaml b/jsk_arc2017_baxter/robots/moveit_config/baxter/controllers.yaml similarity index 100% rename from jsk_arc2017_baxter/robots/moveit_config/baxter_controllers.yaml rename to jsk_arc2017_baxter/robots/moveit_config/baxter/controllers.yaml diff --git a/jsk_arc2017_baxter/robots/moveit_config/joint_limits.yaml b/jsk_arc2017_baxter/robots/moveit_config/baxter/joint_limits.yaml similarity index 100% rename from jsk_arc2017_baxter/robots/moveit_config/joint_limits.yaml rename to jsk_arc2017_baxter/robots/moveit_config/baxter/joint_limits.yaml diff --git a/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7.srdf.xacro b/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/baxterlgv7.srdf.xacro similarity index 62% rename from jsk_arc2017_baxter/robots/moveit_config/baxterlgv7.srdf.xacro rename to jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/baxterlgv7.srdf.xacro index dd9e9b526..4ad925b24 100644 --- a/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7.srdf.xacro +++ b/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/baxterlgv7.srdf.xacro @@ -1,13 +1,13 @@ - + - - + + - + - + diff --git a/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/baxterlgv7_base.srdf.xacro b/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/baxterlgv7_base.srdf.xacro new file mode 100644 index 000000000..97db61e02 --- /dev/null +++ b/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/baxterlgv7_base.srdf.xacro @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/controllers.yaml b/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/controllers.yaml new file mode 100644 index 000000000..9a935f4de --- /dev/null +++ b/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/controllers.yaml @@ -0,0 +1,39 @@ +controller_list: + - name: /robot/limb/right + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: true + joints: + - right_s0 + - right_s1 + - right_e0 + - right_e1 + - right_w0 + - right_w1 + - right_w2 + - name: /robot/limb/left + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: true + joints: + - left_s0 + - left_s1 + - left_e0 + - left_e1 + - left_w0 + - left_w1 + - left_w2 + - name: /gripper_front/limb/right/vacuum_gripper + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: true + joints: + - right_gripper_vacuum_pad_joint + - right_gripper_prismatic_joint + - name: /gripper_front/limb/left/vacuum_gripper + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: true + joints: + - left_gripper_vacuum_pad_joint + - left_gripper_prismatic_joint diff --git a/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7_joint_limits.yaml b/jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/joint_limits.yaml similarity index 100% rename from jsk_arc2017_baxter/robots/moveit_config/baxterlgv7_joint_limits.yaml rename to jsk_arc2017_baxter/robots/moveit_config/baxterlgv7/joint_limits.yaml diff --git a/jsk_arc2017_baxter/robots/moveit_config/gripper_v6.srdf.xacro b/jsk_arc2017_baxter/robots/moveit_config/common/gripper_v6.srdf.xacro similarity index 100% rename from jsk_arc2017_baxter/robots/moveit_config/gripper_v6.srdf.xacro rename to jsk_arc2017_baxter/robots/moveit_config/common/gripper_v6.srdf.xacro diff --git a/jsk_arc2017_baxter/robots/moveit_config/gripper_v7.srdf.xacro b/jsk_arc2017_baxter/robots/moveit_config/common/gripper_v7.srdf.xacro similarity index 100% rename from jsk_arc2017_baxter/robots/moveit_config/gripper_v7.srdf.xacro rename to jsk_arc2017_baxter/robots/moveit_config/common/gripper_v7.srdf.xacro diff --git a/jsk_arc2017_baxter/robots/moveit_config/ompl_planning.yaml b/jsk_arc2017_baxter/robots/moveit_config/common/ompl_planning.yaml similarity index 100% rename from jsk_arc2017_baxter/robots/moveit_config/ompl_planning.yaml rename to jsk_arc2017_baxter/robots/moveit_config/common/ompl_planning.yaml