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.
lci_states.hpp
Go to the documentation of this file.
1#pragma once
2/*
3 * Copyright (C) 2023 LEIDOS.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18#include <ostream>
19
21{
22
24enum class TransitState
25{
26 UNAVAILABLE, // State representing that there are no applicable intersections in range, so the plugin cannot plan
27 APPROACHING, // State representing that the vehicle is approaching an intersection
28 WAITING, // State representing that the vehicle is stopped and waiting at a light
29 DEPARTING // State representing that the vehicle is traversing the intersection
30};
34std::ostream& operator<<(std::ostream& os, TransitState s);
35
36
38enum class TransitEvent
39{
40 IN_STOPPING_RANGE, // Transition event representing that the vehicle is in the stopping range of a light
41 STOPPED, // Transition event representing that the vehicle has come to a full stop
42 CROSSED_STOP_BAR, // Transition event representing that the vehicle has crossed the stop bar
43 RED_TO_GREEN_LIGHT, // Transition event representing that the current light of interest has changed from red to green
44 INTERSECTION_EXIT // Transition event representing that the end of the current intersection was crossed
45};
49std::ostream& operator<<(std::ostream& os, TransitEvent s);
50
51} // namespace localizer
TransitEvent
Enum describing the possible signals to change the current TransitState.
Definition: lci_states.hpp:39
TransitState
Enum describing the possible states of the LCIStrategic Strategic Plugin.
Definition: lci_states.hpp:25
std::ostream & operator<<(std::ostream &os, TransitState s)
Stream operator for TransitStates enum.
Definition: lci_states.cpp:21