31 default: os.setstate(std::ios_base::failbit);
46 default: os.setstate(std::ios_base::failbit);
63 default: os.setstate(std::ios_base::failbit);
70 carma_localization_msgs::msg::LocalizationStatusReport msg;
74 msg.status = carma_localization_msgs::msg::LocalizationStatusReport::UNINITIALIZED;
77 msg.status = carma_localization_msgs::msg::LocalizationStatusReport::INITIALIZING;
80 msg.status = carma_localization_msgs::msg::LocalizationStatusReport::OPERATIONAL;
83 msg.status = carma_localization_msgs::msg::LocalizationStatusReport::DEGRADED;
86 msg.status = carma_localization_msgs::msg::LocalizationStatusReport::DEGRADED_NO_LIDAR_FIX;
89 msg.status = carma_localization_msgs::msg::LocalizationStatusReport::AWAIT_MANUAL_INITIALIZATION;
92 throw std::invalid_argument(
"LocalizationStates do not match carma_localization_msgs::msg::LocalizationStatusReport "
96 msg.header.stamp = stamp;
carma_localization_msgs::msg::LocalizationStatusReport stateToMsg(LocalizationState state, const rclcpp::Time &stamp)
Helper function to convert LocalizationState objects into LocalizationStatusReport ROS messages.
LocalizationState
Enum describing the possible states of the localization system.
@ AWAIT_MANUAL_INITIALIZATION
std::ostream & operator<<(std::ostream &os, LocalizerMode m)
Stream operator for LocalizerMode enum.
LocalizerMode
Enum describing the possible operational modes of the LocalizationManager.
LocalizationSignal
Enum describing the possible signals to change the current LocalizationState.
@ POOR_NDT_FREQ_OR_FITNESS_SCORE
@ UNUSABLE_NDT_FREQ_OR_FITNESS_SCORE
@ GOOD_NDT_FREQ_AND_FITNESS_SCORE
@ LIDAR_INITIALIZED_SWITCH_TO_GPS