Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
|
#include <gateway.h>
Public Types | |
typedef Network::Communicator | Communicator |
typedef Network::Protocol | Protocol |
typedef Protocol::Address | Address |
typedef Network::Message | Message |
typedef Message::Unit | Unit |
typedef CAN::Observer | Observer |
typedef std::unordered_map< Unit, std::unordered_set< Observer * > > | Map |
Public Member Functions | |
Gateway (const unsigned int id, Network::EntityType entity_type=Network::EntityType::VEHICLE) | |
~Gateway () | |
void | start () |
bool | send (Message *message) |
bool | receive (Message *msg) |
bool | internalReceive (Message *msg) |
bool | running () const |
const Address & | address () |
CAN * | bus () |
Network * | network () |
void | setup_csv_logging (const std::string &log_dir) |
void | log_message (const Message &msg, const std::string &direction) |
Static Public Member Functions | |
static void * | mainloop (void *arg) |
static void * | internalLoop (void *arg) |
Public Attributes | |
const unsigned int | PORT = 0 |
Static Public Attributes | |
static const unsigned int | MAX_MESSAGE_SIZE = Protocol::MTU - sizeof(Protocol::Header) - sizeof(Protocol::TimestampFields) |
typedef std::unordered_map<Unit, std::unordered_set<Observer*> > Gateway::Map |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |