There was an error while loading. Please reload this page.
1 parent bd3824d commit 44eaaafCopy full SHA for 44eaaaf
1 file changed
src/cartesian_controller.cpp
@@ -420,9 +420,13 @@ CallbackReturn CartesianController::on_configure(
420
for (int i = 0; i < error.size(); ++i) {
421
REGISTER_ROS2_CONTROL_INTROSPECTION("error_" + std::to_string(i),
422
&error[i]);
423
- REGISTER_ROS2_CONTROL_INTROSPECTION("target_position_" + std::to_string(i),
424
- &target_position_[i]);
425
}
+ REGISTER_ROS2_CONTROL_INTROSPECTION("target_position_x",
+ &target_position_[0]);
426
+ REGISTER_ROS2_CONTROL_INTROSPECTION("target_position_y",
427
+ &target_position_[1]);
428
+ REGISTER_ROS2_CONTROL_INTROSPECTION("target_position_z",
429
+ &target_position_[2]);
430
for (int i = 0; i < target_orientation_.coeffs().size(); ++i) {
431
REGISTER_ROS2_CONTROL_INTROSPECTION(
432
"target_orientation_" + std::to_string(i),
0 commit comments