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.
guidance_controller_config.hpp
Go to the documentation of this file.
1#pragma once
2
3/*
4 * Copyright (C) 2021 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 // Required plugins will be automatically activated at startup
32 // Required plugins cannot be deactivated by the user
33 std::vector<std::string> required_plugins;
34
36 // so that the user doesn't need to manually activate them via the UI on each launch (though they still can)
37 // this list should have zero intersection with the required_plugins
38 std::vector<std::string> auto_activated_plugins;
39
40 // Stream operator for this config
41 friend std::ostream &operator<<(std::ostream &output, const GuidanceControllerConfig &c)
42 {
43
44 output << "GuidanceControllerConfig { " << std::endl
45 << "required_plugins: [ " << std::endl;
46
47 for (auto node : c.required_plugins)
48 output << node << " ";
49
50 output << "] " << std::endl << "auto_activated_plugins: [ ";
51
52 for (auto node : c.auto_activated_plugins)
53 output << node << " ";
54
55 output << "] " << std::endl
56 << "}" << std::endl;
57 return output;
58 }
59 };
60
61} // namespace subsystem_controllers
Stuct containing the algorithm configuration values for the GuidanceController.
std::vector< std::string > auto_activated_plugins
List of guidance plugins which are not required but the user wishes to have automatically activated.
friend std::ostream & operator<<(std::ostream &output, const GuidanceControllerConfig &c)
std::vector< std::string > required_plugins
List of guidance plugins (node name) to consider required and who's failure shall result in automatio...