28 return cav_msgs::DriverStatus::OPERATIONAL;
37 cav_srvs::SetEnableRobotic::Response& res)
39 if (
robot_enabled_ && req.set == cav_srvs::SetEnableRobotic::Request::ENABLE)
58 vehicle_cmd_ptr_ = boost::make_shared<ConstPtrRefROSComms<autoware_msgs::VehicleCmd>>(
63 boost::make_shared<ROSComms<cav_srvs::SetEnableRobotic::Request&, cav_srvs::SetEnableRobotic::Response&>>(
70 cav_msgs::RobotEnabled robot_status;
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...
Node class which connects to the ROS network.
void addSub(T comm)
Function to add a subscriber from a ROSComms object.
void publishDataNoHeader(std::string topic, T msg)
Publish data with no header on a desired topic.
void addSrv(T comm)
Function to add a service from a ROSComms object.
void addPub(T comm)
Function to add a publisher from a ROSComms object.
MockDriverNode mock_driver_node_