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.
entry.h
Go to the documentation of this file.
1#pragma once
2
3/*
4 * Copyright (C) 2019-2022 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 <string>
20
22{
26 struct Entry
27 {
29 bool available_ = false;
31 bool active_ = false;
33 std::string name_;
35 uint8_t type_ = 0;
37 std::string capability_;
40
44 Entry(bool available, bool active, const std::string& name, uint8_t type, const std::string& capability, bool user_requested_activation)
45 : available_(available), active_(active), name_(name), type_(type), capability_(capability), user_requested_activation_(user_requested_activation) {}
46
47
48 Entry() = default;
49 };
50}
bool available_
Availability flag of a driver.
Definition: entry.hpp:29
Entry(bool available, bool active, const std::string &name, uint8_t type, const std::string &capability, bool user_requested_activation)
All fields constructor.
Definition: entry.h:44
std::string name_
Fully specified node name of a driver.
Definition: entry.hpp:31
std::string capability_
The capability string of the plugin.
Definition: entry.h:37
bool user_requested_activation_
Flag indicating if the user requested this plugin be activated.
Definition: entry.h:39
uint8_t type_
Type of the plugin from the message enum in carma_planning_msgs::Plugin.
Definition: entry.h:35
bool active_
Activation flag of a plugin.
Definition: entry.h:31