You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Gravity Compensation: implements a gravity compensation algorithm, removing the gravity component from the incoming data (Wrench).
6
-
*
7
6
7
+
## Gravity compensation filter
8
8
9
-
## Gravity Compensation filter
9
+
This filter implements a gravity compensation algorithm, applied to an `data_in` wrench, computed at a `sensor_frame` in which the center of gravity (CoG) of the to-be-compensated mass is known.
10
10
11
-
This filter implements a gravity compensation algorithm, applied to an `data_in wrench`, computed at a `sensor frame` in which the center of gravity (CoG) of the to-be-compensated mass is known.
12
-
13
-
The filter relies on ROS TF, and might fail if transforms are missing.
11
+
The filter relies on tf2, and might fail if transforms are missing.
14
12
15
13
Note that, for convenience, the filter can perform additional frame changes if data_out frame id is given.
16
14
17
-
### required parameters
15
+
### Required parameters
18
16
19
17
*`world_frame` (ℛ<sub>w</sub>): frame in which the `CoG.force` is represented.
20
18
*`sensor_frame` (ℛ<sub>s</sub>): frame in which the `CoG.pos` is defined
21
19
*`CoG.pos` (p<sub>s</sub>): position of the CoG of the mass the filter should compensate for
22
20
*`CoG.force` (g<sub>w</sub>): constant (but updatable) force of gravity at the Cog (typically m.G), defined along axes of the `world_frame`
*`data_in`, a wrench ℱ<sub>i</sub> = {f<sub>i</sub>, τ<sub>i</sub>} represented in `data_in.frame`ℛ<sub>i</sub>
29
-
* access to TF homogeneous transforms:
26
+
*`data_in`, a wrench ℱ<sub>i</sub> = {f<sub>i</sub>, τ<sub>i</sub>} represented in the `data_in` frameℛ<sub>i</sub>
27
+
* access to tf2 homogeneous transforms:
30
28
* T<sub>si</sub> from ℛ<sub>i</sub> to ℛ<sub>s</sub>
31
29
* T<sub>sw</sub> from ℛ<sub>w</sub> to ℛ<sub>s</sub>
32
30
* T<sub>os</sub> from ℛ<sub>s</sub> to ℛ<sub>o</sub>
33
31
34
-
Compute `data_out` compensated wrench ℱc<sub>o</sub> = {fc<sub>o</sub>, τc<sub>o</sub>} represented in `data_out.frame`ℛ<sub>o</sub> if given, or `data_in.frame`ℛ<sub>i</sub> otherwise, with equations:
32
+
Compute `data_out` compensated wrench ℱc<sub>o</sub> = {fc<sub>o</sub>, τc<sub>o</sub>} represented in the `data_out` frame ℛ<sub>o</sub> if given, or the `data_in` frameℛ<sub>i</sub> otherwise, with equations:
the full transform of the input wrench ℱ<sub>i</sub> to sensor frame ℛ<sub>s</sub>
54
52
55
53
Remarks :
56
54
* a full vector is used for gravity force, to not impose gravity to be only along z of `world_frame`.
57
-
*`data_in.frame`is usually equal to `sensor_frame`, but could be different since measurement of wrech might occur in another frame. Ex: measurements are at the **FT sensor flange** = `data_in.frame`, but CoG is given in **FT sensor base** = `sensor_frame` (=frame to which it is mounted on the robot), introducing an offset (thichkess of the sensor) to be accounted for.
58
-
*`data_out.frame`is usually `data_in.frame`, but for convenience, can be set to any other useful frame. Ex: Wrench expressed in a `control_frame`for instance center of a gripper.
55
+
*`data_in` frame is usually equal to `sensor_frame`, but could be different since measurement of wrench might occur in another frame. E.g.: measurements are at the **FT sensor flange** = `data_in` frame, but CoG is given in **FT sensor base** = `sensor_frame` (=frame to which it is mounted on the robot), introducing an offset (thickness of the sensor) to be accounted for.
56
+
*`data_out` frame is usually `data_in` frame, but for convenience, can be set to any other useful frame. E.g.: wrench expressed in a `control_frame`like the center of a gripper.
59
57
* T<sub>sw</sub> will only rotate the g<sub>w</sub> vector, because gravity is a field applied everywhere, and not a wrench (no torque should be induced by transforming from ℛ<sub>w</sub> to ℛ<sub>s</sub>).
0 commit comments