Please help to rectify and solve the error
void ackermannCmdCallback(const std::shared_ptr<ackermann_msgs::msg::ackermanndrivestamped> cmd)
{
if(stop_flag)
{
cmd->drive.speed = 0.0F;
cmd->drive.steering_angle = 0.0F;
_pubControlls->publish(cmd);
}
else
{
_pubControlls->publish(cmd);
}
}