Franka documentation and operating the Pandas » History » Version 4
Kévin Desormeaux, 2021-06-09 11:14
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 | You can ping the robot's IP to see if you are able to communicate with it. |
||
32 | - Panda1 = 172.17.1.2 |
||
33 | - Panda1 = 172.17.1.3 |
||
34 | |||
35 | 2 | Kévin Desormeaux | h2. Start the pandas: |
36 | 1 | Kévin Desormeaux | |
37 | https://frankaemika.github.io/docs/getting_started.html |
||
38 | |||
39 | 1. before turning on check on the black button and red button. |
||
40 | - red button must be unpressed. |
||
41 | - black button must be pressed. |
||
42 | - turn on the robot cpu. It's on the back. Panda 1 is the lower one. |
||
43 | - yellow light will blink until its on. |
||
44 | - when it's on, light remains constant. |
||
45 | |||
46 | 2. Access the robot server interface: https://172.17.1.2/desk/ |
||
47 | - accept the risks |
||
48 | - robot information on IP and credentials are in: https://wiki.laas.fr/robots/Panda |
||
49 | - when accessing the server, joints are locked. unlock them. take care it can move a bit. |
||
50 | - it changes the color of the light to white - unlocked but not accept command motion. |
||
51 | |||
52 | 3. To move the robot, release the black safety button. The light will turn blue - accepting command motion. |
||
53 | |||
54 | 4. Clone mp2_ros (this is melodic) repository to a catkin src folder. |
||
55 | - make it |
||
56 | - source it |
||
57 | |||
58 | 5. Run demo |
||
59 | |||
60 | 2 | Kévin Desormeaux | - this will start the admittance controller and trajectory action server at the current position |
61 | 1 | Kévin Desormeaux | |
62 | roslaunch admittance_joint_trajectory_controller action.launch robot_ip:=172.17.1.2 load_gripper:=false |
||
63 | |||
64 | - force 0. |
||
65 | - you can play with stiffness to check on different behavior. be careful, it can get unstable. |
||
66 | -- 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 |
||
67 | |||
68 | -you can now play a trajectory |
||
69 | |||
70 | rosbag play -d 1 straight_line.bag |
||
71 | |||
72 | -this file is in the documents tab of this repository |
||
73 | |||
74 | |||
75 | 6 - turning off |
||
76 | - push black button |
||
77 | - move to a safe position manually (pushing the two buttons in the end-effector and guiding) |
||
78 | - lock the joint in Desk interface |
||
79 | - shutdown in the interface- wait until it says you can turn off the cpu |
||
80 | - press red button |
||
81 | |||
82 | |||
83 | 2 | Kévin Desormeaux | h2. Troubleshooting |
84 | 1 | Kévin Desormeaux | |
85 | If you have this error: |
||
86 | |||
87 | <pre> |
||
88 | linux libfranka: UDP receive: Timeout |
||
89 | </pre> |
||
90 | |||
91 | This means a firewall is blocking some UDP packets (see https://frankaemika.github.io/docs/troubleshooting.html). |
||
92 | You can disable the firewall (should be definitive) by using this command: |
||
93 | |||
94 | <pre> |
||
95 | sudo ufw disable |
||
96 | </pre> |
||
97 | |||
98 | Check if it is disabled: |
||
99 | |||
100 | <pre> |
||
101 | sudo ufw status |
||
102 | </pre> |