File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
cartesian_vic_controller/src/rules Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ bool VanillaCartesianImpedanceRule::compute_controls(
166
166
J_dot_
167
167
);
168
168
RCLCPP_DEBUG (logger_, " Computing J_pinv..." );
169
- J_pinv_ = (J_.transpose () * J_ + alpha_pinv_ * I_joint_space_).llt (). solve (I_ ) * J_.transpose ();
169
+ J_pinv_ = (J_.transpose () * J_ + alpha_pinv_ * I_joint_space_).inverse ( ) * J_.transpose ();
170
170
171
171
if (!model_is_ok) {
172
172
success = false ;
@@ -181,15 +181,17 @@ bool VanillaCartesianImpedanceRule::compute_controls(
181
181
Eigen::Matrix<double , 6 , 6 > M_inv;
182
182
if (parameters_.vic .use_natural_robot_inertia ) {
183
183
M = vic_input_data.natural_cartesian_inertia ;
184
- M_inv = vic_input_data.natural_cartesian_inertia .llt ().solve (I_);
184
+ // M_inv = vic_input_data.natural_cartesian_inertia.llt().solve(I_);
185
+ M_inv = vic_input_data.natural_cartesian_inertia .inverse ();
185
186
RCLCPP_INFO_THROTTLE (
186
187
logger_,
187
188
internal_clock_,
188
189
5000 ,
189
190
" Using natural robot inertia as desired inertia matrix."
190
191
);
191
192
} else {
192
- M_inv = M.llt ().solve (I_);
193
+ // M_inv = M.llt().solve(I_);
194
+ M_inv = M.inverse ();
193
195
}
194
196
195
197
@@ -295,7 +297,7 @@ bool VanillaCartesianImpedanceRule::compute_controls(
295
297
logger_,
296
298
internal_clock_,
297
299
10000 , // every 10 seconds
298
- " WARNING! gravity compensation is disabled! "
300
+ " FYI: gravity compensation is disabled. "
299
301
);
300
302
}
301
303
You can’t perform that action at this time.
0 commit comments