File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
cartesian_vic_controller/include/cartesian_vic_controller Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,20 @@ bool get_robot_velocity(
64
64
tf2::fromMsg (vic_state_msg.velocity , twist);
65
65
return true ;
66
66
}
67
+
68
+ bool get_robot_acceleration (
69
+ const cartesian_control_msgs::msg::VicControllerState & vic_state_msg,
70
+ Eigen::Matrix<double , 6 , 1 > & acceleration)
71
+ {
72
+ acceleration[0 ] = vic_state_msg.acceleration .linear .x ;
73
+ acceleration[1 ] = vic_state_msg.acceleration .linear .y ;
74
+ acceleration[2 ] = vic_state_msg.acceleration .linear .z ;
75
+ acceleration[3 ] = vic_state_msg.acceleration .angular .x ;
76
+ acceleration[4 ] = vic_state_msg.acceleration .angular .y ;
77
+ acceleration[5 ] = vic_state_msg.acceleration .angular .z ;
78
+ return true ;
79
+ }
80
+
67
81
bool get_robot_wrench (
68
82
const cartesian_control_msgs::msg::VicControllerState & vic_state_msg,
69
83
Eigen::Matrix<double , 6 , 1 > & wrench)
@@ -144,7 +158,8 @@ bool get_natural_robot_inertia(
144
158
const cartesian_control_msgs::msg::VicControllerState & vic_state_msg,
145
159
Eigen::Matrix<double , 6 , 6 > & M_natural)
146
160
{
147
- return fromMsg (vic_state_msg.natural_inertia , M_natural);
161
+ bool success = fromMsg (vic_state_msg.natural_inertia , M_natural);
162
+ return success;
148
163
}
149
164
150
165
You can’t perform that action at this time.
0 commit comments