Franka documentation and operating the Pandas » History » Version 3
Kévin Desormeaux, 2021-06-09 11:13
1 | 1 | Kévin Desormeaux | h1. Franka documentation and operating the Pandas |
---|---|---|---|
2 | |||
3 | |||
4 | h2. Franka Documentation |
||
5 | |||
6 | * The Panda User Handbook attachment:pandaUserHandbook.pdf (safety rules, setting/starting up, basic use through the web interface) |
||
7 | * The Franka Control Interface & ROS packages: https://frankaemika.github.io/ |
||
8 | * The dedicated LAAS robots "wiki page":https://wiki.laas.fr/robots/Panda (basic |
||
9 | |||
10 | 2 | Kévin Desormeaux | h2. Misc things |
11 | 1 | Kévin Desormeaux | |
12 | * The PC must have a Linux kernel with the PREEMT_RT option |
||
13 | * To have access to this option, you must belong to the unix group "realtime" |
||
14 | |||
15 | 3 | Kévin Desormeaux | h2. Using your own laptop |
16 | |||
17 | First you will need a real-time kernel to be able to communicate with the pandas (PREEMPT_RT). |
||
18 | |||
19 | The procedure is described here: https://frankaemika.github.io/docs/installation_linux.html |
||
20 | More informations in french can be found here: https://bidouilledebian.wordpress.com/2018/05/31/compiler-son-noyau/ |
||
21 | The second link might actually be better. |
||
22 | |||
23 | Note: avoid the use of the fakeroot command if you have errors. |
||
24 | |||
25 | You will also need to configure the network (ethernet). |
||
26 | |||
27 | - In the ipv4 tab, choose manual configuration. |
||
28 | - Adress = 172.17.1.1 |
||
29 | - Mask = 255.255.255.0 |
||
30 | |||
31 | That's all. |
||
32 | |||
33 | You can ping the robot's IP to see if you are able to communicate with it. |
||
34 | - Panda1 = 172.17.1.2 |
||
35 | - Panda1 = 172.17.1.3 |
||
36 | |||
37 | |||
38 | 2 | Kévin Desormeaux | h2. Start the pandas: |
39 | 1 | Kévin Desormeaux | |
40 | https://frankaemika.github.io/docs/getting_started.html |
||
41 | |||
42 | 1. before turning on check on the black button and red button. |
||
43 | - red button must be unpressed. |
||
44 | - black button must be pressed. |
||
45 | - turn on the robot cpu. It's on the back. Panda 1 is the lower one. |
||
46 | - yellow light will blink until its on. |
||
47 | - when it's on, light remains constant. |
||
48 | |||
49 | 2. Access the robot server interface: https://172.17.1.2/desk/ |
||
50 | - accept the risks |
||
51 | - robot information on IP and credentials are in: https://wiki.laas.fr/robots/Panda |
||
52 | - when accessing the server, joints are locked. unlock them. take care it can move a bit. |
||
53 | - it changes the color of the light to white - unlocked but not accept command motion. |
||
54 | |||
55 | 3. To move the robot, release the black safety button. The light will turn blue - accepting command motion. |
||
56 | |||
57 | 4. Clone mp2_ros (this is melodic) repository to a catkin src folder. |
||
58 | - make it |
||
59 | - source it |
||
60 | |||
61 | 5. Run demo |
||
62 | |||
63 | 2 | Kévin Desormeaux | - this will start the admittance controller and trajectory action server at the current position |
64 | 1 | Kévin Desormeaux | |
65 | roslaunch admittance_joint_trajectory_controller action.launch robot_ip:=172.17.1.2 load_gripper:=false |
||
66 | |||
67 | - force 0. |
||
68 | - you can play with stiffness to check on different behavior. be careful, it can get unstable. |
||
69 | -- some time force, vel, pos, reach a threshold and the robot stop for safety reasons. you can lock and unlock the joints again in the Desk interface |
||
70 | |||
71 | -you can now play a trajectory |
||
72 | |||
73 | rosbag play -d 1 straight_line.bag |
||
74 | |||
75 | -this file is in the documents tab of this repository |
||
76 | |||
77 | |||
78 | 6 - turning off |
||
79 | - push black button |
||
80 | - move to a safe position manually (pushing the two buttons in the end-effector and guiding) |
||
81 | - lock the joint in Desk interface |
||
82 | - shutdown in the interface- wait until it says you can turn off the cpu |
||
83 | - press red button |
||
84 | |||
85 | |||
86 | 2 | Kévin Desormeaux | h2. Troubleshooting |
87 | 1 | Kévin Desormeaux | |
88 | If you have this error: |
||
89 | |||
90 | <pre> |
||
91 | linux libfranka: UDP receive: Timeout |
||
92 | </pre> |
||
93 | |||
94 | This means a firewall is blocking some UDP packets (see https://frankaemika.github.io/docs/troubleshooting.html). |
||
95 | You can disable the firewall (should be definitive) by using this command: |
||
96 | |||
97 | <pre> |
||
98 | sudo ufw disable |
||
99 | </pre> |
||
100 | |||
101 | Check if it is disabled: |
||
102 | |||
103 | <pre> |
||
104 | sudo ufw status |
||
105 | </pre> |