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.
drivers_controller_config.hpp
Go to the documentation of this file.
1#pragma once
2
3/*
4 * Copyright (C) 2023 LEIDOS.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 * use this file except in compliance with the License. You may obtain a copy of
8 * the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 * License for the specific language governing permissions and limitations under
16 * the License.
17 */
18
19#include <iostream>
20#include <vector>
21
23{
28
29 {
31 std::vector<std::string> ros1_required_drivers_;
33 std::vector<std::string> ros1_camera_drivers_;
35 std::vector<std::string> excluded_namespace_nodes_;
39 double driver_timeout_ = 1000;
40
41
42 // Stream operator for this config
43 friend std::ostream &operator<<(std::ostream &output, const DriversControllerConfig &c)
44 {
45
46 output << "DriversControllerConfig { " << std::endl
47 << "ros1_required_drivers: [ " << std::endl;
48
49 for (auto node : c.ros1_required_drivers_)
50 output << node << " ";
51
52 output << "] " << std::endl << "ros1_camera_drivers: [ ";
53
54 for (auto node : c.ros1_camera_drivers_)
55 output << node << " ";
56
57 output << "] " << std::endl << "excluded_namespace_nodes: [ ";
58
59 for (auto node : c.excluded_namespace_nodes_)
60 output << node << " ";
61
62 output<< "] " << std::endl << "startup_duration: "<< c.startup_duration_ << std::endl;
63
64 output <<"driver_timeout: "<< c.driver_timeout_ << std::endl
65
66 << "}" << std::endl;
67 return output;
68 }
69 };
70
71} // namespace subsystem_controllers
Stuct containing the algorithm configuration values for the GuidanceController.
friend std::ostream & operator<<(std::ostream &output, const DriversControllerConfig &c)
std::vector< std::string > ros1_camera_drivers_
List of ros1 camera drivers (node name) to consider required and who's failure shall result in automa...
double driver_timeout_
The timeout threshold for essential drivers in ms.
int startup_duration_
The time allocated for system startup in seconds.
std::vector< std::string > ros1_required_drivers_
List of ros1 controller drivers (node name) to consider required and who's failure shall result in au...
std::vector< std::string > excluded_namespace_nodes_
List of nodes in the namespace which will not be managed by this subsystem controller.