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.
|
Helper class containing an enum for valid port drayage MobilityOperation message operation IDs and a function that converts each operation enum value to a human-readable string. More...
#include <port_drayage_worker.hpp>
Public Types | |
enum | Operation { PICKUP , DROPOFF , ENTER_STAGING_AREA , EXIT_STAGING_AREA , ENTER_PORT , EXIT_PORT , PORT_CHECKPOINT , HOLDING_AREA , DEFAULT_OPERATION } |
Enum containing possible operation IDs used to define destinations for port drayage. More... | |
Public Member Functions | |
OperationID (enum Operation op) | |
Standard constructor for OperationID. More... | |
OperationID::Operation | getOperationID () const |
Getter function to obtain the Operation enum associated with this object. More... | |
std::string | operationToString () const |
Function to convert this object's 'operation_enum_' to a human-readable string. More... | |
Private Attributes | |
const Operation | operation_enum_ = Operation::DEFAULT_OPERATION |
Friends | |
std::ostream & | operator<< (std::ostream &output, const OperationID &oid) |
Stream operator for this object. More... | |
bool | operator== (const std::string &lhs, const OperationID &rhs) |
Overloaded == operator for comparision with String objects. More... | |
Helper class containing an enum for valid port drayage MobilityOperation message operation IDs and a function that converts each operation enum value to a human-readable string.
Definition at line 66 of file port_drayage_worker.hpp.
Enum containing possible operation IDs used to define destinations for port drayage.
Enumerator | |
---|---|
PICKUP | |
DROPOFF | |
ENTER_STAGING_AREA | |
EXIT_STAGING_AREA | |
ENTER_PORT | |
EXIT_PORT | |
PORT_CHECKPOINT | |
HOLDING_AREA | |
DEFAULT_OPERATION |
Definition at line 72 of file port_drayage_worker.hpp.
|
inline |
Standard constructor for OperationID.
op | Operation enum associated with this object. |
Definition at line 88 of file port_drayage_worker.hpp.
OperationID::Operation port_drayage_plugin::OperationID::getOperationID | ( | ) | const |
Getter function to obtain the Operation enum associated with this object.
Definition at line 21 of file port_drayage_worker.cpp.
References operation_enum_.
std::string port_drayage_plugin::OperationID::operationToString | ( | ) | const |
Function to convert this object's 'operation_enum_' to a human-readable string.
Definition at line 25 of file port_drayage_worker.cpp.
References operation_enum_.
|
friend |
Stream operator for this object.
Definition at line 106 of file port_drayage_worker.hpp.
|
friend |
Overloaded == operator for comparision with String objects.
Definition at line 113 of file port_drayage_worker.hpp.
|
private |
Definition at line 119 of file port_drayage_worker.hpp.
Referenced by getOperationID(), and operationToString().