Project

General

Profile

Franka documentation and operating the Pandas » History » Version 1

Kévin Desormeaux, 2021-06-09 11:11

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
h3. Misc things
11
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
h4. Start the pandas:
16
17
https://frankaemika.github.io/docs/getting_started.html
18
19
1. before turning on check on the black button and red button.
20
- red button must be unpressed.
21
- black button must be pressed.
22
- turn on the robot cpu. It's on the back. Panda 1 is the lower one.
23
- yellow light will blink until its on.
24
- when it's on, light remains constant.
25
26
2. Access the robot server interface: https://172.17.1.2/desk/
27
- accept the risks
28
- robot information on IP and credentials are in: https://wiki.laas.fr/robots/Panda
29
- when accessing the server, joints are locked. unlock them. take care it can move a bit.
30
- it changes the color of the light to white - unlocked but not accept command motion.
31
32
3. To move the robot, release the black safety button. The light will turn blue - accepting command motion.
33
34
4. Clone mp2_ros (this is melodic) repository to a catkin src folder.
35
- make it
36
- source it
37
38
5. Run demo
39
40
- this will start the admittance controller and trajectory action server at the current position
41
42
roslaunch admittance_joint_trajectory_controller action.launch robot_ip:=172.17.1.2 load_gripper:=false
43
44
- force 0.
45
- you can play with stiffness to check on different behavior. be careful, it can get unstable.
46
-- 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
47
48
-you can now play a trajectory
49
50
rosbag play -d 1 straight_line.bag
51
52
-this file is in the documents tab of this repository 
53
54
55
6 - turning off
56
- push black button
57
- move to a safe position manually (pushing the two buttons in the end-effector and guiding)
58
- lock the joint in Desk interface
59
- shutdown in the interface- wait until it says you can turn off the cpu
60
- press red button
61
62
63
h5. Using your own laptop
64
65
First you will need a real-time kernel to be able to communicate with the pandas (PREEMPT_RT). 
66
67
The procedure is described here: https://frankaemika.github.io/docs/installation_linux.html
68
More informations in french can be found here: https://bidouilledebian.wordpress.com/2018/05/31/compiler-son-noyau/
69
The second link might actually be better. 
70
71
Note: avoid the use of the fakeroot command if you have errors. 
72
73
You will also need to configure the network (ethernet). 
74
75
- In the ipv4 tab, choose manual configuration. 
76
- Adress = 172.17.1.1
77
- Mask = 255.255.255.0
78
79
That's all. 
80
81
You can ping the robot's IP to see if you are able to communicate with it.
82
- Panda1 = 172.17.1.2
83
- Panda1 = 172.17.1.3
84
85
86
h6. Troubleshooting
87
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>