Project

General

Profile

Cooperation Manipulation Control » History » Version 4

Kévin Desormeaux, 2021-06-15 12:12

1 1 Kévin Desormeaux
h1. Cooperation Manipulation Control
2
3 2 Kévin Desormeaux
h2. Franka_ros
4
5
!fci-architecture.png!
6
7
8 1 Kévin Desormeaux
To operate the pandas it is necessary to have real-time kernels on the machines running the control stacks. It is the case with the *kukarm* and *truyere* workstation.
9 2 Kévin Desormeaux
You should have ROS (melodic version ideally) installed. You will need to also to install *franka_ros* and *libfranka* .
10 1 Kévin Desormeaux
11
<pre>
12
sudo apt-get install ros-melodic-franka-ros
13
sudo apt-get install ros-melodic-libfranka
14
</pre>
15
16 2 Kévin Desormeaux
You are strongly advised to read the franka documentation to begin with. See https://redmine.laas.fr/projects/dual_arm_exp/wiki/Franka_documentation_and_operating_the_Pandas and https://frankaemika.github.io/docs/franka_ros.html.
17
18
!ros-architecture.png!
19
20
Basically franka_ros is a collection of package integrating libfranka into ros_control. There is packages for hardware abstraction, to control the grippers, for robots description etc.
21
22 3 Kévin Desormeaux
*Important* : libfranka must have the same versions running on the workstations (kukarm, truyere etc) and on the panda controllers (FCI). Otherwise there will be compatibility issues.
23
24 2 Kévin Desormeaux
h2. CM2C
25 3 Kévin Desormeaux
26
Once franka_ros is installed you can create a catkin workspace in your home directory to install CM2C. See http://wiki.ros.org/catkin/Tutorials/create_a_workspace.
27
CM2C is available here on the mp2_ros repository:
28
29
https://redmine.laas.fr/projects/m2p2/repository
30 4 Kévin Desormeaux
31
Then you only have to compile your catkin workspace and CM2C can be launched. 
32
You might need to install different ROS packages missing on the system. 
33
*Important* : your catkin workspace must be built in release mode! By default it might be in debug mode, and CM2C might not be able to run at the desired frequency for real time usage.
34
35
<pre>
36
catkin build -DCMAKE_BUILD_TYPE=Release
37
</pre>
38
39
Information on how to use CM2C can be found a bit further in the wiki: https://redmine.laas.fr/projects/dual_arm_exp/wiki/Control_API_functions_description