20#include <autoware_msgs/VehicleCmd.h>
21#include <cav_msgs/RobotEnabled.h>
22#include <cav_srvs/SetEnableRobotic.h>
32 boost::shared_ptr<ROSComms<cav_srvs::SetEnableRobotic::Request&, cav_srvs::SetEnableRobotic::Response&>>
66 bool enableRoboticSrv(
const cav_srvs::SetEnableRobotic::Request& req, cav_srvs::SetEnableRobotic::Response& res);
74 unsigned int getRate()
override;
Mock Controller driver. Implements controller service and feedback logic to support CARMA Platform Gu...
MockControllerDriver(bool dummy=false)
std::vector< DriverType > getDriverTypes() override
Pure Virtual method which child classes must override that returns the list of all driver types that ...
boost::shared_ptr< ROSComms< cav_srvs::SetEnableRobotic::Request &, cav_srvs::SetEnableRobotic::Response & > > enable_robotic_ptr_
bool enableRoboticSrv(const cav_srvs::SetEnableRobotic::Request &req, cav_srvs::SetEnableRobotic::Response &res)
Callback for the enable robotic service. Triggering this callback will modify the RobotEnabled messag...
ConstPtrRefROSCommsPtr< autoware_msgs::VehicleCmd > vehicle_cmd_ptr_
boost::shared_ptr< ROSComms< cav_msgs::RobotEnabled > > robot_status_ptr_
const std::string robot_status_topic_
unsigned int getRate() override
Pure virtual method that returns the desired operational rate of a child class.
const std::string enable_robotic_srv_
const std::string vehicle_cmd_topic_
int onRun() override
Pure virtual method which must be implemented by child classes. This method will be run once at start...
uint8_t getDriverStatus() override
Pure Virtual method. Returns an integer value which corresponds to the cav_msgs/DriverStatus enum fel...
bool onSpin() override
Virtual method which child classes can override to add functionality which will occur during each spi...
void vehicleCmdCallback(const autoware_msgs::VehicleCmd::ConstPtr &msg)
Callback for the vehicle command topic. This callback must be triggered at least once before the enab...
The template node for the mock drivers that will handle all of the default driver logic.
ROSCommsPtr< ConstPtrRef< T > > ConstPtrRefROSCommsPtr