Public Member Functions | Public Attributes | List of all members
carla::rpc::VehicleControl Class Reference

#include <VehicleControl.h>

+ Collaboration diagram for carla::rpc::VehicleControl:

Public Member Functions

 MSGPACK_DEFINE_ARRAY (throttle, steer, brake, hand_brake, reverse, manual_gear_shift, gear)
bool operator!= (const VehicleControl &rhs) const
bool operator== (const VehicleControl &rhs) const
 VehicleControl ()=default
 VehicleControl (float in_throttle, float in_steer, float in_brake, bool in_hand_brake, bool in_reverse, bool in_manual_gear_shift, int32_t in_gear)

Public Attributes

float brake = 0.0f
int32_t gear = 0
bool hand_brake = false
bool manual_gear_shift = false
bool reverse = false
float steer = 0.0f
float throttle = 0.0f

Detailed Description

Definition at line 20 of file LibCarla/source/carla/rpc/VehicleControl.h.

Constructor & Destructor Documentation

◆ VehicleControl() [1/2]

carla::rpc::VehicleControl::VehicleControl ( )

◆ VehicleControl() [2/2]

carla::rpc::VehicleControl::VehicleControl ( float  in_throttle,
float  in_steer,
float  in_brake,
bool  in_hand_brake,
bool  in_reverse,
bool  in_manual_gear_shift,
int32_t  in_gear 

Definition at line 25 of file LibCarla/source/carla/rpc/VehicleControl.h.

Member Function Documentation


carla::rpc::VehicleControl::MSGPACK_DEFINE_ARRAY ( throttle  ,
steer  ,
brake  ,
hand_brake  ,
reverse  ,
manual_gear_shift  ,

Referenced by operator==().

+ Here is the caller graph for this function:

◆ operator!=()

bool carla::rpc::VehicleControl::operator!= ( const VehicleControl rhs) const

◆ operator==()

bool carla::rpc::VehicleControl::operator== ( const VehicleControl rhs) const

Definition at line 85 of file LibCarla/source/carla/rpc/VehicleControl.h.


+ Here is the call graph for this function:

Member Data Documentation

◆ brake

float carla::rpc::VehicleControl::brake = 0.0f

◆ gear

int32_t carla::rpc::VehicleControl::gear = 0

Definition at line 47 of file LibCarla/source/carla/rpc/VehicleControl.h.

Referenced by operator!=().

◆ hand_brake

bool carla::rpc::VehicleControl::hand_brake = false

Definition at line 44 of file LibCarla/source/carla/rpc/VehicleControl.h.

Referenced by operator!=().

◆ manual_gear_shift

bool carla::rpc::VehicleControl::manual_gear_shift = false

Definition at line 46 of file LibCarla/source/carla/rpc/VehicleControl.h.

Referenced by operator!=().

◆ reverse

bool carla::rpc::VehicleControl::reverse = false

◆ steer

float carla::rpc::VehicleControl::steer = 0.0f

◆ throttle

float carla::rpc::VehicleControl::throttle = 0.0f

The documentation for this class was generated from the following file: