Gazebo Msgs

API Reference

8.7.0

#include <battery_state.pb.h>

Public Types

typedef BatteryState_PowerSupplyStatus PowerSupplyStatus
 

Public Member Functions

 BatteryState ()
 
 BatteryState (const BatteryState &from)
 
virtual ~BatteryState ()
 
size_t ByteSizeLong () const final
 
double capacity () const
 
double charge () const
 
void Clear () final
 
void clear_capacity ()
 
void clear_charge ()
 
void clear_current ()
 
void clear_header ()
 
void clear_percentage ()
 
void clear_power_supply_status ()
 
void clear_voltage ()
 
void CopyFrom (const ::google::protobuf::Message &from) final
 
void CopyFrom (const BatteryState &from)
 
double current () const
 
int GetCachedSize () const final
 
::google::protobuf::Metadata GetMetadata () const final
 
bool has_header () const
 
const ::ignition::msgs::Headerheader () const
 
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray (bool deterministic, ::google::protobuf::uint8 *target) const final
 
bool IsInitialized () const final
 
void MergeFrom (const ::google::protobuf::Message &from) final
 
void MergeFrom (const BatteryState &from)
 
bool MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input) final
 
::ignition::msgs::Headermutable_header ()
 
BatteryStateNew () const final
 
BatteryStateNew (::google::protobuf::Arena *arena) const final
 
BatteryStateoperator= (const BatteryState &from)
 
double percentage () const
 
::ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status () const
 
::ignition::msgs::Headerrelease_header ()
 
void SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const final
 
void set_allocated_header (::ignition::msgs::Header *header)
 
void set_capacity (double value)
 
void set_charge (double value)
 
void set_current (double value)
 
void set_percentage (double value)
 
void set_power_supply_status (::ignition::msgs::BatteryState_PowerSupplyStatus value)
 
void set_voltage (double value)
 
void Swap (BatteryState *other)
 
double voltage () const
 

Static Public Member Functions

static const BatteryStatedefault_instance ()
 
static const ::google::protobuf::Descriptor * descriptor ()
 
static void InitAsDefaultInstance ()
 
static const BatteryStateinternal_default_instance ()
 
static const ::google::protobuf::EnumDescriptor * PowerSupplyStatus_descriptor ()
 
static bool PowerSupplyStatus_IsValid (int value)
 
static const ::std::stringPowerSupplyStatus_Name (PowerSupplyStatus value)
 
static bool PowerSupplyStatus_Parse (const ::std::string &name, PowerSupplyStatus *value)
 

Static Public Attributes

static const PowerSupplyStatus CHARGING
 
static const PowerSupplyStatus DISCHARGING
 
static const PowerSupplyStatus FULL
 
static const int kCapacityFieldNumber = 5
 
static const int kChargeFieldNumber = 4
 
static const int kCurrentFieldNumber = 3
 
static const int kHeaderFieldNumber = 1
 
static constexpr int kIndexInFileMessages
 
static const int kPercentageFieldNumber = 6
 
static const int kPowerSupplyStatusFieldNumber = 7
 
static const int kVoltageFieldNumber = 2
 
static const PowerSupplyStatus NOT_CHARGING
 
static const int PowerSupplyStatus_ARRAYSIZE
 
static const PowerSupplyStatus PowerSupplyStatus_MAX
 
static const PowerSupplyStatus PowerSupplyStatus_MIN
 
static const PowerSupplyStatus UNKNOWN
 

Member Typedef Documentation

◆ PowerSupplyStatus

Constructor & Destructor Documentation

◆ BatteryState() [1/2]

◆ ~BatteryState()

virtual ~BatteryState ( )
virtual

◆ BatteryState() [2/2]

BatteryState ( const BatteryState from)

Member Function Documentation

◆ ByteSizeLong()

size_t ByteSizeLong ( ) const
final

◆ capacity()

double capacity ( ) const
inline

◆ charge()

double charge ( ) const
inline

◆ Clear()

void Clear ( )
final

◆ clear_capacity()

void clear_capacity ( )
inline

◆ clear_charge()

void clear_charge ( )
inline

◆ clear_current()

void clear_current ( )
inline

◆ clear_header()

void clear_header ( )

◆ clear_percentage()

void clear_percentage ( )
inline

◆ clear_power_supply_status()

void clear_power_supply_status ( )
inline

◆ clear_voltage()

void clear_voltage ( )
inline

◆ CopyFrom() [1/2]

void CopyFrom ( const ::google::protobuf::Message &  from)
final

◆ CopyFrom() [2/2]

void CopyFrom ( const BatteryState from)

◆ current()

double current ( ) const
inline

◆ default_instance()

static const BatteryState& default_instance ( )
static

◆ descriptor()

static const ::google::protobuf::Descriptor* descriptor ( )
static

◆ GetCachedSize()

int GetCachedSize ( ) const
inlinefinal

◆ GetMetadata()

::google::protobuf::Metadata GetMetadata ( ) const
final

◆ has_header()

bool has_header ( ) const
inline

◆ header()

◆ InitAsDefaultInstance()

static void InitAsDefaultInstance ( )
static

◆ internal_default_instance()

static const BatteryState* internal_default_instance ( )
inlinestatic

◆ InternalSerializeWithCachedSizesToArray()

::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray ( bool  deterministic,
::google::protobuf::uint8 *  target 
) const
final

◆ IsInitialized()

bool IsInitialized ( ) const
final

◆ MergeFrom() [1/2]

void MergeFrom ( const ::google::protobuf::Message &  from)
final

◆ MergeFrom() [2/2]

void MergeFrom ( const BatteryState from)

◆ MergePartialFromCodedStream()

bool MergePartialFromCodedStream ( ::google::protobuf::io::CodedInputStream *  input)
final

◆ mutable_header()

ignition::msgs::Header * mutable_header ( )
inline

◆ New() [1/2]

BatteryState* New ( ) const
inlinefinal

◆ New() [2/2]

BatteryState* New ( ::google::protobuf::Arena *  arena) const
inlinefinal

◆ operator=()

BatteryState& operator= ( const BatteryState from)
inline

◆ percentage()

double percentage ( ) const
inline

◆ power_supply_status()

ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status ( ) const
inline

◆ PowerSupplyStatus_descriptor()

static const ::google::protobuf::EnumDescriptor* PowerSupplyStatus_descriptor ( )
inlinestatic

◆ PowerSupplyStatus_IsValid()

static bool PowerSupplyStatus_IsValid ( int  value)
inlinestatic

◆ PowerSupplyStatus_Name()

static const ::std::string& PowerSupplyStatus_Name ( PowerSupplyStatus  value)
inlinestatic

◆ PowerSupplyStatus_Parse()

static bool PowerSupplyStatus_Parse ( const ::std::string name,
PowerSupplyStatus value 
)
inlinestatic

◆ release_header()

ignition::msgs::Header * release_header ( )
inline

◆ SerializeWithCachedSizes()

void SerializeWithCachedSizes ( ::google::protobuf::io::CodedOutputStream *  output) const
final

◆ set_allocated_header()

void set_allocated_header ( ::ignition::msgs::Header header)
inline

◆ set_capacity()

void set_capacity ( double  value)
inline

◆ set_charge()

void set_charge ( double  value)
inline

◆ set_current()

void set_current ( double  value)
inline

◆ set_percentage()

void set_percentage ( double  value)
inline

◆ set_power_supply_status()

void set_power_supply_status ( ::ignition::msgs::BatteryState_PowerSupplyStatus  value)
inline

◆ set_voltage()

void set_voltage ( double  value)
inline

◆ Swap()

void Swap ( BatteryState other)

◆ voltage()

double voltage ( ) const
inline

Member Data Documentation

◆ CHARGING

const PowerSupplyStatus CHARGING
static

◆ DISCHARGING

const PowerSupplyStatus DISCHARGING
static

◆ FULL

const PowerSupplyStatus FULL
static

◆ kCapacityFieldNumber

const int kCapacityFieldNumber = 5
static

◆ kChargeFieldNumber

const int kChargeFieldNumber = 4
static

◆ kCurrentFieldNumber

const int kCurrentFieldNumber = 3
static

◆ kHeaderFieldNumber

const int kHeaderFieldNumber = 1
static

◆ kIndexInFileMessages

constexpr int kIndexInFileMessages
staticconstexpr
Initial value:
=
0

◆ kPercentageFieldNumber

const int kPercentageFieldNumber = 6
static

◆ kPowerSupplyStatusFieldNumber

const int kPowerSupplyStatusFieldNumber = 7
static

◆ kVoltageFieldNumber

const int kVoltageFieldNumber = 2
static

◆ NOT_CHARGING

const PowerSupplyStatus NOT_CHARGING
static

◆ PowerSupplyStatus_ARRAYSIZE

const int PowerSupplyStatus_ARRAYSIZE
static

◆ PowerSupplyStatus_MAX

const PowerSupplyStatus PowerSupplyStatus_MAX
static

◆ PowerSupplyStatus_MIN

const PowerSupplyStatus PowerSupplyStatus_MIN
static

◆ UNKNOWN

const PowerSupplyStatus UNKNOWN
static

The documentation for this class was generated from the following file:
const int BatteryState_PowerSupplyStatus_PowerSupplyStatus_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:88
const BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MIN
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:86
@ BatteryState_PowerSupplyStatus_NOT_CHARGING
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:80
const BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:87
@ BatteryState_PowerSupplyStatus_DISCHARGING
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:79
@ BatteryState_PowerSupplyStatus_CHARGING
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:78
@ BatteryState_PowerSupplyStatus_FULL
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:81
@ BatteryState_PowerSupplyStatus_UNKNOWN
Definition: build/ignition-msgs8/include/ignition/msgs/battery_state.pb.h:77