Skip to content

Commit dc219d9

Browse files
committed
-remove old ft_sensor_controller
-implement new ft_sensor_calib_controller -add ft_calib_{data, meas, poses, q}.yaml required by ft_sensor_calib_controller and load them in single_lwr.launch -add ft_calib in CMakeLists.txt and package.xml required by ft_sensor_calib_controller -add fields required by ft_sensor_calib_controller in controllers.yaml -use /lwr/ft_sensor topic name in cartesian_position_controller
1 parent 628efd3 commit dc219d9

14 files changed

+934
-315
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ find_package(catkin REQUIRED COMPONENTS
1111
lwr_controllers
1212
roscpp
1313
kdljacdot
14+
ft_calib
1415
)
1516

1617
add_definitions (-fpermissive -std=c++11)
@@ -46,10 +47,10 @@ generate_messages(
4647
lwr_controllers
4748
)
4849

49-
5050
catkin_package(
5151
CATKIN_DEPENDS
5252
kdljacdot
53+
# ft_calib
5354
controller_interface
5455
lwr_controllers
5556
kdl_conversions
@@ -59,7 +60,7 @@ catkin_package(
5960
)
6061

6162
add_library(${PROJECT_NAME}
62-
src/ft_sensor_controller.cpp
63+
src/ft_sensor_calib_controller.cpp
6364
src/cartesian_position_controller.cpp
6465
src/cartesian_inverse_dynamics_controller.cpp
6566
src/hybrid_impedance_controller.cpp
@@ -69,7 +70,6 @@ add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencpp)
6970

7071
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} yaml-cpp)
7172

72-
7373
install(DIRECTORY include/${PROJECT_NAME}/
7474
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
7575

config/controllers.yaml

+5-7
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@ lwr:
2828
- lwr_a6_joint_stiffness
2929

3030
## OTHER CUSTOM CONTROLLERS LEFT HERE AS EXAMPLES
31-
# FtSensor Controller
32-
ft_sensor_controller:
33-
type: lwr_force_position_controllers/FtSensorController
31+
# FtSensorCalib Controller
32+
ft_sensor_calib_controller:
33+
type: lwr_force_position_controllers/FtSensorCalibController
3434
root_name: vito_anchor
3535
tip_name: lwr_7_link
3636
topic_name: /lwr/ft_sensor
37-
ft_sensor_bias: [0, 0, 0, 0, 0, 0]
38-
base_tool_weight_com: [0, 0, 0, 0, 0, 0]
39-
p_wrist_toolcom: [0, 0, 0.1]
40-
publish_rate: 200 #Hz
37+
calibration_loop_rate: 100.0
38+
recover_existing_data: false
4139

4240
# Cartesian Position Controller
4341
cartesian_position_controller:

config/ft_calib_data.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
gripper_com_pose:
2+
- 0.002621568387731212
3+
- -0.0003515309468810598
4+
- 0.004137037404081813
5+
- 0
6+
- 0
7+
- 0
8+
gripper_mass: 6.509143994937928e-07
9+
bias:
10+
- 1.584460183819159e-08
11+
- -5.707289241210769e-06
12+
- 1.498097625527359e-06
13+
- 3.64819715407862e-08
14+
- -2.265979235962194e-08
15+
- 2.964348029762117e-09
16+
gripper_com_frame_id: lwr_7_link

config/ft_calib_meas.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
calib_meas_number: 4
2+
calib_meas:
3+
pose1:
4+
force_avg:
5+
- 0.1521934294330592
6+
- 0.04844507382844252
7+
- 0.006304600412419553
8+
torque_avg:
9+
- -5.635950990290948e-05
10+
- 0.0006962514245404868
11+
- 8.068064758058578e-10
12+
gravity:
13+
- -9.806649064205548
14+
- -0.001074826044471037
15+
- 0.004147139431339473
16+
pose3:
17+
gravity:
18+
- -3.819371657673907
19+
- 0.01484989664177515
20+
- -9.032306673470906
21+
torque_avg:
22+
- 0.0005761121246524151
23+
- -0.0009301992653528642
24+
- 1.174364091457587e-09
25+
force_avg:
26+
- -0.07540153437470619
27+
- 0.1406359873112517
28+
- 0.06706553139931667
29+
pose2:
30+
force_avg:
31+
- -0.05367795006809145
32+
- 0.1390910760892196
33+
- 0.1147201923215103
34+
gravity:
35+
- -7.036608223269595
36+
- 0.01092343614638948
37+
- -6.830549729945423
38+
torque_avg:
39+
- 0.001152721264360326
40+
- -0.0009670574213896801
41+
- -4.417889570482863e-08
42+
pose0:
43+
gravity:
44+
- -7.212658566379069
45+
- -5.208985211634143
46+
- -4.124853172212982
47+
force_avg:
48+
- 0.07576230852691779
49+
- 0.09179926084696172
50+
- 0.05619690902839117
51+
torque_avg:
52+
- -1.350657547028525e-05
53+
- -0.001701637664215409
54+
- -1.980222698922983e-08

config/ft_calib_poses.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
lwr:
2+
ft_sensor_calib_controller:
3+
calib_number_poses: 34
4+
calib_poses:
5+
pose0: [-0.9, 0.3, 0.3, 1.571, 1.571, 3.130]
6+
pose1: [-0.9, 0.3, 0.3, 1.571, 0.8, 3.140]
7+
pose2: [-0.9, 0.3, 0.3, 1.571, 0.4, 3.140]
8+
pose3: [-0.9, 0.3, 0.3, 1.571, 0.0, 3.140]
9+
pose4: [-0.9, 0.3, 0.3, 1.571, -0.4, 3.140]
10+
pose5: [-0.9, 0.3, 0.3, 1.571, -0.8, 3.140]
11+
pose6: [-0.9, 0.3, 0.3, 1.571, -1.571, 3.140]
12+
pose7: [-0.9, 0.3, 0.3, 2.8, 0.0, 3.140]
13+
pose8: [-0.9, 0.3, 0.3, 2.3, 0.0, 3.140]
14+
pose9: [-0.9, 0.3, 0.3, 2.0, 0.0, 3.140]
15+
pose10: [-0.9, 0.3, 0.3, 1.1, 0.0, 3.140]
16+
pose11: [-0.9, 0.3, 0.3, 0.8, 0.0, 3.140]
17+
pose12: [-0.9, 0.3, 0.3, 0.4, 0.0, 3.140]
18+
pose13: [-0.9, 0.3, 0.3, 0.01, 0.0, 3.140]
19+
pose14: [-0.9, 0.3, 0.3, 3.093, -0.012, -2.467]
20+
pose15: [-0.9, 0.3, 0.3, 2.843, -0.012, -2.467]
21+
pose16: [-0.9, 0.3, 0.3, 2.372, -0.012, -2.467]
22+
pose17: [-0.9, 0.3, 0.3, 2.0, -0.012, -2.467]
23+
pose18: [-0.9, 0.3, 0.3, 1.6, -0.012, -2.467]
24+
pose19: [-0.9, 0.3, 0.3, 1.2, -0.012, -2.467]
25+
pose20: [-0.9, 0.3, 0.3, 0.8, -0.012, -2.467]
26+
pose21: [-0.9, 0.3, 0.3, 0.4, -0.012, -2.467]
27+
pose22: [-0.9, 0.3, 0.3, 0.0, -0.012, -2.467]
28+
pose23: [-0.9, 0.3, 0.3, 2.399, -0.568, 1.058]
29+
pose24: [-0.9, 0.3, 0.3, 2.083, -0.858, 1.531]
30+
pose25: [-0.9, 0.3, 0.3, 1.480, -0.962, 2.280]
31+
pose26: [-0.9, 0.3, 0.3, 0.890, -0.948, 3.043]
32+
pose27: [-0.9, 0.3, 0.3, 0.677, -0.429, -2.865]
33+
pose28: [-0.9, 0.3, 0.3, 0.607, -0.049, -2.576]
34+
pose29: [-0.9, 0.3, 0.3, 0.621, 0.207, -2.396]
35+
pose30: [-0.9, 0.3, 0.3, 2.252, 0.384, -2.121]
36+
pose31: [-0.9, 0.3, 0.3, 2.258, -0.402, -2.726]
37+
pose32: [-0.9, 0.3, 0.3, 2.425, -0.685, -3.043]
38+
pose33: [-0.9, 0.3, 0.3, 2.785, -0.898, 2.742]
39+
pose34: [-0.9, 0.3, 0.3, -2.869, -0.919, 1.958]

0 commit comments

Comments
 (0)