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.
route Namespace Reference

Classes

struct  Config
 Struct containing the algorithm configuration values for the route node. More...
 
class  Route
 The route package provides the following functionality: More...
 
class  RouteGeneratorWorker
 
class  RouteStateWorker
 

Enumerations

enum  RouteEvent {
  ROUTE_LOADED = 0 , ROUTE_SELECTED = 1 , ROUTE_STARTED = 2 , ROUTE_COMPLETED = 3 ,
  ROUTE_DEPARTED = 4 , ROUTE_ABORTED = 5 , ROUTE_GEN_FAILED = 6 , ROUTE_INVALIDATION = 7
}
 
enum  RouteState { LOADING = 0 , SELECTION = 1 , ROUTING = 2 , FOLLOWING = 3 }
 

Functions

std::ostream & operator<< (std::ostream &output, const RouteEvent &e)
 
std::ostream & operator<< (std::ostream &output, const RouteState &s)
 

Enumeration Type Documentation

◆ RouteEvent

Possible events for the RouteStateWorker to respond to: ROUTE_LOADED - Route worker received all necessary parameters and loaded route file path ROUTE_SELECTED - A route file has been selected by user ROUTE_STARTED - A route is generated by provided route file ROUTE_COMPLETED - Reached the destination of current route ROUTE_DEPARTED - Vehicle has deviated from the route ROUTE_ABORTED - User decides to stop following the current route ROUTE_GEN_FAILED - No route can be generated based on provided route file ROUTE_INVALIDATION - Certain portion of the route is invalidated based on situation.

Enumerator
ROUTE_LOADED 
ROUTE_SELECTED 
ROUTE_STARTED 
ROUTE_COMPLETED 
ROUTE_DEPARTED 
ROUTE_ABORTED 
ROUTE_GEN_FAILED 
ROUTE_INVALIDATION 

Definition at line 35 of file route_state_worker.hpp.

◆ RouteState

Possible states of the RouteStateWorker: LOADING - RouteState worker's initial state, waiting for all necessary parameters to be set SELECTION - RouteState worker is waiting on user to select a route ROUTING - Calling lanelet2 library to generate a route based on selected route file FOLLOWING - Following a route and tracking its downtrack and crosstrack distance

Enumerator
LOADING 
SELECTION 
ROUTING 
FOLLOWING 

Definition at line 87 of file route_state_worker.hpp.

87 {
88 LOADING = 0,
89 SELECTION = 1,
90 ROUTING = 2,
91 FOLLOWING = 3,
92 };

Function Documentation

◆ operator<<() [1/2]

std::ostream & route::operator<< ( std::ostream &  output,
const RouteEvent e 
)
inline

Definition at line 47 of file route_state_worker.hpp.

48 {
49 switch(e) {
50 case ROUTE_LOADED:
51 output << "ROUTE_LOADED";
52 break;
53 case ROUTE_SELECTED:
54 output << "ROUTE_SELECTED";
55 break;
56 case ROUTE_STARTED:
57 output << "ROUTE_STARTED";
58 break;
59 case ROUTE_COMPLETED:
60 output << "ROUTE_COMPLETED";
61 break;
62 case ROUTE_DEPARTED:
63 output << "ROUTE_DEPARTED";
64 break;
65 case ROUTE_ABORTED:
66 output << "ROUTE_ABORTED";
67 break;
69 output << "ROUTE_GEN_FAILED";
70 break;
72 output << "ROUTE_INVALIDATION";
73 break;
74 default:
75 output << "UNKNOWN_ROUTE_EVENT(" << static_cast<int>(e) << ")";
76 break;
77 }
78 return output;
79 }

References ROUTE_ABORTED, ROUTE_COMPLETED, ROUTE_DEPARTED, ROUTE_GEN_FAILED, ROUTE_INVALIDATION, ROUTE_LOADED, ROUTE_SELECTED, and ROUTE_STARTED.

◆ operator<<() [2/2]

std::ostream & route::operator<< ( std::ostream &  output,
const RouteState s 
)
inline

Definition at line 95 of file route_state_worker.hpp.

96 {
97 switch(s) {
98 case LOADING:
99 output << "LOADING";
100 break;
101 case SELECTION:
102 output << "SELECTION";
103 break;
104 case ROUTING:
105 output << "ROUTING";
106 break;
107 case FOLLOWING:
108 output << "FOLLOWING";
109 break;
110 default:
111 output << "UNKNOWN_ROUTE_STATE(" << static_cast<int>(s) << ")";
112 break;
113 }
114 return output;
115 }

References FOLLOWING, LOADING, ROUTING, and SELECTION.