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
@@ -403,9 +406,6 @@ const control_msgs::msg::AdmittanceControllerState & AdmittanceRule::get_control
403406 state_message_.rot_base_control .y = quat.y ();
404407 state_message_.rot_base_control .z = quat.z ();
405408
406- state_message_.ft_sensor_frame .data =
407- admittance_state_.ft_sensor_frame ; // TODO(anyone) remove dynamic allocation here
408-
409409 return state_message_;
410410}
411411
You can’t perform that action at this time.
0 commit comments