File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
admittance_controller/include/admittance_controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ controller_interface::return_type AdmittanceRule::configure(
8181 return controller_interface::return_type::ERROR;
8282 }
8383
84+ // configure force torque sensor frame in state message
85+ state_message_.ft_sensor_frame .data = parameters_.ft_sensor .frame .id ;
86+
8487 return controller_interface::return_type::OK;
8588}
8689
@@ -395,9 +398,6 @@ const control_msgs::msg::AdmittanceControllerState & AdmittanceRule::get_control
395398 state_message_.rot_base_control .y = quat.y ();
396399 state_message_.rot_base_control .z = quat.z ();
397400
398- state_message_.ft_sensor_frame .data =
399- admittance_state_.ft_sensor_frame ; // TODO(anyone) remove dynamic allocation here
400-
401401 return state_message_;
402402}
403403
You can’t perform that action at this time.
0 commit comments