Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
|
#include <localization_controller.hpp>
Public Member Functions | |
LocalizationControllerNode ()=delete | |
~LocalizationControllerNode ()=default | |
LocalizationControllerNode (const rclcpp::NodeOptions &options) | |
Constructor. Set explicitly to support node composition. More... | |
void | on_system_alert (const carma_msgs::msg::SystemAlert::UniquePtr msg) |
carma_ros2_utils::CallbackReturn | handle_on_configure (const rclcpp_lifecycle::State &prev_state) |
Public Member Functions inherited from subsystem_controllers::BaseSubsystemController | |
BaseSubsystemController ()=delete | |
BaseSubsystemController (const rclcpp::NodeOptions &options) | |
Constructor. Set explicitly to support node composition. More... | |
~BaseSubsystemController ()=default | |
void | set_config (BaseSubSystemControllerConfig config) |
virtual void | on_system_alert (const carma_msgs::msg::SystemAlert::UniquePtr msg) |
virtual carma_ros2_utils::CallbackReturn | handle_on_configure (const rclcpp_lifecycle::State &prev_state) |
virtual carma_ros2_utils::CallbackReturn | handle_on_activate (const rclcpp_lifecycle::State &prev_state) |
virtual carma_ros2_utils::CallbackReturn | handle_on_deactivate (const rclcpp_lifecycle::State &prev_state) |
virtual carma_ros2_utils::CallbackReturn | handle_on_cleanup (const rclcpp_lifecycle::State &prev_state) |
virtual carma_ros2_utils::CallbackReturn | handle_on_error (const rclcpp_lifecycle::State &prev_state, const std::string &exception_string) |
virtual carma_ros2_utils::CallbackReturn | handle_on_shutdown (const rclcpp_lifecycle::State &prev_state) |
Protected Member Functions | |
std::unordered_map< std::vector< SensorBooleanStatus >, SensorAlertStatus, VectorHash > | sensor_fault_map_from_json (std::string json_string) |
Helper function to convert a json string into an unordered map of sensor status's to required alerts TODO add example. More... | |
Protected Member Functions inherited from subsystem_controllers::BaseSubsystemController | |
std::vector< std::string > | get_nodes_in_namespace (const std::string &node_namespace) const |
Returns the list of fully qualified node names for all ROS2 nodes in the provided namespace. More... | |
std::vector< std::string > | get_non_intersecting_set (const std::vector< std::string > &set_a, const std::vector< std::string > &set_b) const |
Returns all elements of the provided set_a which are NOT contained in the provided set_b. More... | |
Protected Attributes | |
std::unordered_map< std::string, SensorBooleanStatus > | sensor_status_ |
LocalizationControllerConfig | config_ |
Protected Attributes inherited from subsystem_controllers::BaseSubsystemController | |
ros2_lifecycle_manager::Ros2LifecycleManager | lifecycle_mgr_ |
Lifecycle Manager which will track the managed nodes and call their lifecycle services on request. More... | |
rclcpp::Subscription< carma_msgs::msg::SystemAlert >::SharedPtr | system_alert_sub_ |
The subscriber for the system alert topic. More... | |
BaseSubSystemControllerConfig | base_config_ |
The configuration struct. More... | |
bool | trigger_managed_nodes_configure_from_base_class_ = true |
Collection of flags which, if true, will cause the base class to make lifecycle service calls to managed nodes. More... | |
bool | trigger_managed_nodes_activate_from_base_class_ = true |
bool | trigger_managed_nodes_deactivate_from_base_class_ = true |
bool | trigger_managed_nodes_cleanup_from_base_class_ = true |
Definition at line 30 of file localization_controller.hpp.
|
delete |
|
default |
|
explicit |
Constructor. Set explicitly to support node composition.
options | The node options to use for configuring this node |
Definition at line 24 of file localization_controller.cpp.
References config_, subsystem_controllers::LocalizationControllerConfig::sensor_fault_map, sensor_fault_map_from_json(), and subsystem_controllers::LocalizationControllerConfig::sensor_nodes.
|
virtual |
Reimplemented from subsystem_controllers::BaseSubsystemController.
Definition at line 37 of file localization_controller.cpp.
References config_, subsystem_controllers::BaseSubsystemController::handle_on_configure(), subsystem_controllers::OPERATIONAL, subsystem_controllers::LocalizationControllerConfig::sensor_fault_map, sensor_fault_map_from_json(), subsystem_controllers::LocalizationControllerConfig::sensor_nodes, and sensor_status_.
|
virtual |
Reimplemented from subsystem_controllers::BaseSubsystemController.
Definition at line 70 of file localization_controller.cpp.
References subsystem_controllers::CAUTION, config_, subsystem_controllers::FAILED, subsystem_controllers::FATAL, subsystem_controllers::BaseSubsystemController::on_system_alert(), subsystem_controllers::LocalizationControllerConfig::sensor_fault_map, subsystem_controllers::LocalizationControllerConfig::sensor_nodes, sensor_status_, and subsystem_controllers::WARNING.
|
protected |
Helper function to convert a json string into an unordered map of sensor status's to required alerts TODO add example.
Definition at line 124 of file localization_controller.cpp.
References process_bag::i.
Referenced by LocalizationControllerNode(), and handle_on_configure().
|
protected |
Definition at line 59 of file localization_controller.hpp.
Referenced by LocalizationControllerNode(), handle_on_configure(), and on_system_alert().
|
protected |
Definition at line 58 of file localization_controller.hpp.
Referenced by handle_on_configure(), and on_system_alert().