Robotics StackExchange | Archived questions

Please help to rectify and solve the error

void ackermannCmdCallback(const std::sharedptr<ackermannmsgs::msg::AckermannDriveStamped> cmd)
{ if(stopflag) { cmd->drive.speed = 0.0F; cmd->drive.steeringangle = 0.0F;

        _pubControlls->publish(cmd);        
    }
    else
    {    
        _pubControlls->publish(cmd);           
    }
}

Asked by ysims on 2023-01-16 20:18:01 UTC

Comments

Answers