19#include <rclcpp/rclcpp.hpp>
21#include <std_msgs/msg/string.hpp>
22#include <std_srvs/srv/empty.hpp>
24#include <carma_driver_msgs/srv/set_enable_robotic.hpp>
25#include <carma_driver_msgs/msg/robot_enabled.hpp>
26#include <autoware_msgs/msg/vehicle_cmd.hpp>
27#include <carma_ros2_utils/carma_lifecycle_node.hpp>
78 rcl_interfaces::msg::SetParametersResult
97 const std::shared_ptr<carma_driver_msgs::srv::SetEnableRobotic::Request> request,
98 std::shared_ptr<carma_driver_msgs::srv::SetEnableRobotic::Response> response);
110 carma_ros2_utils::CallbackReturn
handle_on_configure(
const rclcpp_lifecycle::State &prev_state);
responsible for replicating behavior of control driver
carma_ros2_utils::ServicePtr< carma_driver_msgs::srv::SetEnableRobotic > enable_robotic_srvice_
const std::string vehicle_cmd_topic_
void vehicle_cmd_callback(const autoware_msgs::msg::VehicleCmd::UniquePtr msg)
Callback for the vehicle command topic. This callback must be triggered at least once before the enab...
carma_ros2_utils::PubPtr< carma_driver_msgs::msg::RobotEnabled > robot_status_pub_
bool enable_robotic_srv(std::shared_ptr< rmw_request_id_t >, const std::shared_ptr< carma_driver_msgs::srv::SetEnableRobotic::Request > request, std::shared_ptr< carma_driver_msgs::srv::SetEnableRobotic::Response > response)
Callback for the enable robotic service. Triggering this callback will modify the RobotEnabled messag...
carma_ros2_utils::SubPtr< autoware_msgs::msg::VehicleCmd > vehicle_cmd_sub_
const std::string enable_robotic_srv_
const std::string robot_status_topic_
rclcpp::TimerBase::SharedPtr spin_timer_
void publish_robot_status_callback()
Timer callback, to publish robot status message.
rcl_interfaces::msg::SetParametersResult parameter_update_callback(const std::vector< rclcpp::Parameter > ¶meters)
Callback for dynamic parameter updates.
carma_ros2_utils::CallbackReturn handle_on_activate(const rclcpp_lifecycle::State &)
carma_ros2_utils::CallbackReturn handle_on_configure(const rclcpp_lifecycle::State &prev_state)
MockControllerDriver(const rclcpp::NodeOptions &)
MockControllerDriver constructor.