Public Member Functions | |
def | __init__ |
def | deserialize |
def | deserialize_numpy |
def | serialize |
def | serialize_numpy |
Public Attributes | |
color | |
frequency | |
mode | |
priority | |
pulses | |
timeout | |
Static Public Attributes | |
int | BREATH = 3 |
int | BREATH_COLOR = 4 |
int | FADE_COLOR = 5 |
int | FLASH = 2 |
int | NONE = 0 |
int | STATIC = 1 |
Private Member Functions | |
def | _get_types |
Static Private Attributes | |
list | __slots__ = ['mode','color','frequency','timeout','pulses','priority'] |
string | _full_text |
_has_header = False | |
string | _md5sum = "5c61cdd41b56356f16e4e7ab38a77236" |
list | _slot_types = ['uint8','std_msgs/ColorRGBA','float32','float32','int32','int8'] |
string | _type = "cob_light/LightMode" |
Definition at line 9 of file _LightMode.py.
def cob_light.msg._LightMode.LightMode.__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: mode,color,frequency,timeout,pulses,priority :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 49 of file _LightMode.py.
def cob_light.msg._LightMode.LightMode._get_types | ( | self | ) | [private] |
internal API method
Definition at line 86 of file _LightMode.py.
def cob_light.msg._LightMode.LightMode.deserialize | ( | self, | |
str | |||
) |
unpack serialized message in str into this message instance :param str: byte array of serialized message, ``str``
Definition at line 103 of file _LightMode.py.
def cob_light.msg._LightMode.LightMode.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 133 of file _LightMode.py.
def cob_light.msg._LightMode.LightMode.serialize | ( | self, | |
buff | |||
) |
serialize message into buffer :param buff: buffer, ``StringIO``
Definition at line 92 of file _LightMode.py.
def cob_light.msg._LightMode.LightMode.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 121 of file _LightMode.py.
list cob_light::msg::_LightMode.LightMode::__slots__ = ['mode','color','frequency','timeout','pulses','priority'] [static, private] |
Definition at line 46 of file _LightMode.py.
string cob_light::msg::_LightMode.LightMode::_full_text [static, private] |
"""uint8 mode uint8 NONE = 0 # will turn everything off uint8 STATIC = 1 # will change the LEDs to "color" uint8 FLASH = 2 # will change the LEDs frequently with "frequency" from "color" to black uint8 BREATH = 3 # will change the LEDs smoothly with "frequency" from "color" to black uint8 BREATH_COLOR = 4 # will change the LEDs smoothly with "frequency" from "color" to black # and flips color in time uint8 FADE_COLOR = 5 # will fade the colors in rainbow std_msgs/ColorRGBA color #the color which will be used float32 frequency # in Hz float32 timeout # in s, requested mode will be executed for max timout s. # default is 0 and meens no timeout. int32 pulses # spezifies the amount of pulses which will be executed. # eg: mode = flash, pulses = 2. Meens the light will flash two times int8 priority # priority [-20,20] default = 0. Modes with same or higher priorities will # be executed. ================================================================================ MSG: std_msgs/ColorRGBA float32 r float32 g float32 b float32 a """
Definition at line 13 of file _LightMode.py.
cob_light::msg::_LightMode.LightMode::_has_header = False [static, private] |
Definition at line 12 of file _LightMode.py.
string cob_light::msg::_LightMode.LightMode::_md5sum = "5c61cdd41b56356f16e4e7ab38a77236" [static, private] |
Definition at line 10 of file _LightMode.py.
list cob_light::msg::_LightMode.LightMode::_slot_types = ['uint8','std_msgs/ColorRGBA','float32','float32','int32','int8'] [static, private] |
Definition at line 47 of file _LightMode.py.
string cob_light::msg::_LightMode.LightMode::_type = "cob_light/LightMode" [static, private] |
Definition at line 11 of file _LightMode.py.
int cob_light::msg::_LightMode.LightMode::BREATH = 3 [static] |
Definition at line 42 of file _LightMode.py.
int cob_light::msg::_LightMode.LightMode::BREATH_COLOR = 4 [static] |
Definition at line 43 of file _LightMode.py.
Definition at line 61 of file _LightMode.py.
int cob_light::msg::_LightMode.LightMode::FADE_COLOR = 5 [static] |
Definition at line 44 of file _LightMode.py.
int cob_light::msg::_LightMode.LightMode::FLASH = 2 [static] |
Definition at line 41 of file _LightMode.py.
Definition at line 61 of file _LightMode.py.
Definition at line 61 of file _LightMode.py.
int cob_light::msg::_LightMode.LightMode::NONE = 0 [static] |
Definition at line 39 of file _LightMode.py.
Definition at line 61 of file _LightMode.py.
Definition at line 61 of file _LightMode.py.
int cob_light::msg::_LightMode.LightMode::STATIC = 1 [static] |
Definition at line 40 of file _LightMode.py.
Definition at line 61 of file _LightMode.py.