pr2_msgs::msg::_PowerState::PowerState Class Reference

List of all members.

Public Member Functions

def __init__
def deserialize
def deserialize_numpy
def serialize
def serialize_numpy

Public Attributes

 AC_present
 header
 power_consumption
 prediction_method
 relative_capacity
 time_remaining

Private Member Functions

def _get_types

Static Private Attributes

list __slots__ = ['header','power_consumption','time_remaining','prediction_method','relative_capacity','AC_present']
string _full_text
 _has_header = True
string _md5sum = "e6fa46a387cad0b7a80959a21587a6c9"
list _slot_types = ['Header','float64','duration','string','int8','int8']
string _type = "pr2_msgs/PowerState"

Detailed Description

Definition at line 8 of file _PowerState.py.


Member Function Documentation

def pr2_msgs::msg::_PowerState::PowerState::__init__ (   self,
  args,
  kwds 
)
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes.  You cannot mix in-order arguments and keyword arguments.

The available fields are:
   header,power_consumption,time_remaining,prediction_method,relative_capacity,AC_present

@param args: complete set of field values, in .msg order
@param kwds: use keyword arguments corresponding to message field names
to set specific fields. 

Definition at line 42 of file _PowerState.py.

def pr2_msgs::msg::_PowerState::PowerState::_get_types (   self  )  [private]
internal API method

Definition at line 79 of file _PowerState.py.

def pr2_msgs::msg::_PowerState::PowerState::deserialize (   self,
  str 
)
unpack serialized message in str into this message instance
@param str: byte array of serialized message
@type  str: str

Definition at line 107 of file _PowerState.py.

def pr2_msgs::msg::_PowerState::PowerState::deserialize_numpy (   self,
  str,
  numpy 
)
unpack serialized message in str into this message instance using numpy for array types
@param str: byte array of serialized message
@type  str: str
@param numpy: numpy python module
@type  numpy: module

Definition at line 173 of file _PowerState.py.

def pr2_msgs::msg::_PowerState::PowerState::serialize (   self,
  buff 
)
serialize message into buffer
@param buff: buffer
@type  buff: StringIO

Definition at line 85 of file _PowerState.py.

def pr2_msgs::msg::_PowerState::PowerState::serialize_numpy (   self,
  buff,
  numpy 
)
serialize message with numpy array types into buffer
@param buff: buffer
@type  buff: StringIO
@param numpy: numpy python module
@type  numpy module

Definition at line 149 of file _PowerState.py.


Member Data Documentation

Definition at line 39 of file _PowerState.py.

Initial value:
"""# This message communicates the state of the PR2's power system.
Header header
float64 power_consumption ## Watts
duration time_remaining ## estimated time to empty or full
string prediction_method ## how time_remaining is being calculated
int8  relative_capacity ## percent of capacity
int8  AC_present ## number of packs detecting AC power, > 0 means plugged in

================================================================================
MSG: std_msgs/Header
# Standard metadata for higher-level stamped data types.
# This is generally used to communicate timestamped data 
# in a particular coordinate frame.
# 
# sequence ID: consecutively increasing ID 
uint32 seq
#Two-integer timestamp that is expressed as:
# * stamp.secs: seconds (stamp_secs) since epoch
# * stamp.nsecs: nanoseconds since stamp_secs
# time-handling sugar is provided by the client library
time stamp
#Frame this data is associated with
# 0: no frame
# 1: global frame
string frame_id

"""

Definition at line 12 of file _PowerState.py.

Definition at line 11 of file _PowerState.py.

string pr2_msgs::msg::_PowerState::PowerState::_md5sum = "e6fa46a387cad0b7a80959a21587a6c9" [static, private]

Definition at line 9 of file _PowerState.py.

list pr2_msgs::msg::_PowerState::PowerState::_slot_types = ['Header','float64','duration','string','int8','int8'] [static, private]

Definition at line 40 of file _PowerState.py.

string pr2_msgs::msg::_PowerState::PowerState::_type = "pr2_msgs/PowerState" [static, private]

Definition at line 10 of file _PowerState.py.

Definition at line 70 of file _PowerState.py.

Definition at line 60 of file _PowerState.py.

Definition at line 62 of file _PowerState.py.

Definition at line 66 of file _PowerState.py.

Definition at line 68 of file _PowerState.py.

Definition at line 64 of file _PowerState.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator


pr2_msgs
Author(s): Eric Berger and many others
autogenerated on Fri Jan 11 10:06:03 2013