diff --git a/pacmod_interface/src/pacmod_interface/pacmod_interface.cpp b/pacmod_interface/src/pacmod_interface/pacmod_interface.cpp index 804b576..19b8b18 100644 --- a/pacmod_interface/src/pacmod_interface/pacmod_interface.cpp +++ b/pacmod_interface/src/pacmod_interface/pacmod_interface.cpp @@ -411,7 +411,8 @@ void PacmodInterface::publishCommands() // NOTE: // It is assumed that steer_cmd is send as actuation_cmd without being converted from // raw_vehicle_cmd_converter. - desired_steer_wheel = (actuation.steer_cmd - steering_offset_) * adaptive_gear_ratio; + desired_steer_wheel = + (actuation_cmd_ptr_->actuation.steer_cmd - steering_offset_) * adaptive_gear_ratio; } else { desired_steer_wheel = actuation_cmd_ptr_->actuation.steer_cmd; }