Cooperative Manipulation Planning » History » Version 5
Kévin Desormeaux, 2021-06-16 02:27
1 | 1 | Kévin Desormeaux | h1. Cooperative Manipulation Planning |
---|---|---|---|
2 | |||
3 | !cm2p_laas.png! |
||
4 | 2 | Kévin Desormeaux | |
5 | h2. Installation process |
||
6 | |||
7 | - Install ROS Melodic |
||
8 | 4 | Kévin Desormeaux | - Install ROS Moveit! and ompl packages. http://docs.ros.org/en/melodic/api/moveit_tutorials/html/doc/getting_started/getting_started.html |
9 | - Create a ROS catkin workspace for CM2P. Inside you will clone the following repositories: |
||
10 | 2 | Kévin Desormeaux | - Clone https://redmine.laas.fr/projects/dual_pandas_moveit_config and be on laas_setup branch. |
11 | - Clone http://wiki.ros.org/manipulation_msgs and http://wiki.ros.org/household_objects_database_msgs. Basically these are kinetic repos that do not exist in melodic. |
||
12 | But we can put them in the catkin workspace and it will work fine. It is to avoid compatibility problems with moveit_ompl_planning_interface (if i rememember well) so install them before. |
||
13 | 1 | Kévin Desormeaux | - Clone moveit_ompl_planning_interface. The original repository and documentation can be found here: https://github.com/KavrakiLab/moveit_ompl_planning_interface |
14 | However you should clone this repo: https://redmine.laas.fr/projects/moveit_ompl_planning_interface |
||
15 | It is the code compatible with ros melodic, dual_arm_worker melodic branch, dual_arm_planning_api etc. |
||
16 | 3 | Kévin Desormeaux | - Clone dual_arm_worker, melodic branch: https://redmine.laas.fr/projects/dual_arm_worker_private/repository |
17 | Installation tutorial is available here: https://homepages.laas.fr/jcortes/DualArmManipTuto/ |
||
18 | However you should skip the moveit_ompl_planning_interface step described in this tutorial and use the package in the step above. |
||
19 | 2 | Kévin Desormeaux | - Finally clone this package, the dual_arm_plannin_api. |
20 | 3 | Kévin Desormeaux | |
21 | 5 | Kévin Desormeaux | You are encouraged however to build the workspace everytime you add a package. Built it in release mode. |
22 | |||
23 | h2. Software description |
||
24 | |||
25 | h3. The dual_arm_worker project |
||
26 | |||
27 | The documentation can be found here and it is well detailed: |
||
28 | https://homepages.laas.fr/jcortes/DualArmManipTuto/ |
||
29 | https://hal.laas.fr/hal-02327826/document |
||
30 | |||
31 | The changes made to the code for pro-act (ie melodic branch) only concerns compatibility issues between the different ROS/Linux releases etc. Very few bugs corrected. So the documentation is up to date. |
||
32 | |||
33 | h3. The dual_pandas_moveit_config package |
||
34 | |||
35 | This package was made from scratch for the pro-act project. It was generated thanks to the moveit! setup assistant: http://docs.ros.org/en/melodic/api/moveit_tutorials/html/doc/setup_assistant/setup_assistant_tutorial.html |
||
36 | To make it compatible with the dual_arm_worker project it is necessary to configure it properly. You can find more information here: https://homepages.laas.fr/jcortes/DualArmManipTuto/ |
||
37 | This is actually one of the most important package as you can set a lot of parameters in the generated configuration files (planners settings, kinematic solvers, etc). To make it compatible with the dual_arm_project, it was necessary to add a fake torso in the .urdf of the robot. The reason is that the dual_arm_worker project was originally intended for robots like the pr2, and the work was not finished to make it compatible with two independent arms. So the laziest solution was to add a fake torso in the dual_pandas.urdf.xacro file. |
||
38 | |||
39 | Quick overview of the main files (most of them are auto generated by the moveit_setup_assistant): |
||
40 | <pre> |
||
41 | |||
42 | </pre> |
||
43 | - ros_controllers.yaml: This file doesn't spawn the controllers, instead it list the controllers that should be available. Basically CM2C is spawning the controllers, and for CM2P to know what are these controllers they are declared in this file. This file is to list the real controllers (those spawned by CM2C) when working with the real robots. Not so important in our case as we don't link directly the pick() and place() outputs to the controllers in the dual_arm context. |
||
44 | - dual_pandas.srdf: Interesting things here: you can disable collision checking between some robot links of your choice, and also declare some "poses". For example: |
||
45 | <pre> |
||
46 | <group_state name="open_gripper_1" group="left_gripper"> |
||
47 | <joint name="panda_1_finger_joint1" value="0.038" /> |
||
48 | <joint name="panda_1_finger_joint2" value="0.038" /> |
||
49 | </group_state> |
||
50 | </pre> |
||
51 | |||
52 | You can then go to these poses easily via the rviz panel for example, or feed them as inputs of some moveit! functionalities like move(). |
||
53 | |||
54 | - ompl_planning.yaml: This file regroup settings for your planners. |
||
55 | |||
56 | <pre> |
||
57 | # range = 5 seems close to optimal here for bitrrt. |
||
58 | BiTRRTkConfigDualArm: |
||
59 | plugin: ompl_interface/DualArmGeometricPlanningContext |
||
60 | type: geometric::BiTRRTCustom |
||
61 | range: 5 |
||
62 | </pre> |
||
63 | |||
64 | For the dual_arm planners like bitrrt and trrt, i found the range parameter very impactful on the planing time. |
||
65 | |||
66 | - dual_arm_manipulation.yaml: In this file you will find the OJMSS_jump_factor parameter. This parameter was the most important one for the success of the cooperative manipulation plans. |
||
67 | By lowering this parameter, you will encounter less joint flips during the planning (flips of shoulder/elbow/wrist). This is crucial when the two arms hold an object and form a closed kinematic chain. |
||
68 | This parameter should be as close to 1.0 as possible (1.0 <=OJMSS_jump_factor<=1.1). |
||
69 | |||
70 | - kinematics.yaml: This is where you declare what kinematic solver is used for each arm. There is different options available, i found that track_ik was the best as we could set the solve_type setting to distance which result in solutions of better quality. The problem however is that all the available solvers are numerical, and not efficient. I didn't manage to generate working ik_fast plugins (well known analytical solver) for both the arms. |
||
71 | Actually the planning time for a dual_arm_place() is on average 200seconds. If we could use analytical solvers instead it will probably lead to planning time inferiors to 10 seconds. So this is one of the major upgrade that could be done to this work. |