19#include <rclcpp/rclcpp.hpp>
20#include <carma_planning_msgs/msg/guidance_state.hpp>
21#include <carma_ros2_utils/carma_lifecycle_node.hpp>
23#include <carma_msgs/srv/request_indicator_control.hpp>
24#include <carma_msgs/srv/release_indicator_control.hpp>
25#include <carma_driver_msgs/srv/set_light_bar_indicator.hpp>
47 char const*
what()
const throw() {
return err_.c_str();};
char const * what() const
LIGHTBAR_MANAGER_ERROR(const std::string &err="LIGHTBAR_MANAGER_ERROR")
LightBarState getCurrentState()
Get current state machine status.
carma_ros2_utils::ClientPtr< carma_driver_msgs::srv::SetLightBarIndicator > set_indicator_client_
carma_ros2_utils::ClientPtr< carma_msgs::srv::RequestIndicatorControl > release_control_client_
carma_ros2_utils::ClientPtr< carma_msgs::srv::ReleaseIndicatorControl > request_control_client_
void next(const LightBarEvent &event)
Transition to the next state of the LightBarStateMachine.
void handleStateChange(const carma_planning_msgs::msg::GuidanceState &msg)
This function triggers the transitioning to the next state in LightBarStateMachine based on the guida...
LightBarManagerStateMachine()
Default constructor for LightBarManagerStateMachine.
LightBarState current_state_