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 = ['std_msgs/Header','float64','duration','string','int8','int8'] |
string | _type = "pr2_msgs/PowerState" |
Definition at line 10 of file _PowerState.py.
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 44 of file _PowerState.py.
def pr2_msgs.msg._PowerState.PowerState._get_types | ( | self | ) | [private] |
internal API method
Definition at line 81 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, ``str``
Definition at line 114 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, ``str`` :param numpy: numpy python module
Definition at line 189 of file _PowerState.py.
def pr2_msgs.msg._PowerState.PowerState.serialize | ( | self, | |
buff | |||
) |
serialize message into buffer :param buff: buffer, ``StringIO``
Definition at line 87 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, ``StringIO`` :param numpy: numpy python module
Definition at line 161 of file _PowerState.py.
list pr2_msgs::msg::_PowerState.PowerState::__slots__ = ['header','power_consumption','time_remaining','prediction_method','relative_capacity','AC_present'] [static, private] |
Definition at line 41 of file _PowerState.py.
string pr2_msgs::msg::_PowerState.PowerState::_full_text [static, private] |
"""# 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 14 of file _PowerState.py.
pr2_msgs::msg::_PowerState.PowerState::_has_header = True [static, private] |
Definition at line 13 of file _PowerState.py.
string pr2_msgs::msg::_PowerState.PowerState::_md5sum = "e6fa46a387cad0b7a80959a21587a6c9" [static, private] |
Definition at line 11 of file _PowerState.py.
list pr2_msgs::msg::_PowerState.PowerState::_slot_types = ['std_msgs/Header','float64','duration','string','int8','int8'] [static, private] |
Definition at line 42 of file _PowerState.py.
string pr2_msgs::msg::_PowerState.PowerState::_type = "pr2_msgs/PowerState" [static, private] |
Definition at line 12 of file _PowerState.py.
Definition at line 56 of file _PowerState.py.
Definition at line 56 of file _PowerState.py.
Definition at line 56 of file _PowerState.py.
Definition at line 56 of file _PowerState.py.
Definition at line 56 of file _PowerState.py.
Definition at line 56 of file _PowerState.py.