class LedRingCommander(object):
This class is in charge of the Led Ring Node Its main goal is to interpret commands, and use methods from the LedRingCommander class according to this command
Method | __init__ |
Undocumented |
Method | alternate |
Undocumented |
Method | blink |
Undocumented |
Method | blink |
Undocumented |
Method | breath |
Undocumented |
Method | chase |
Undocumented |
Method | custom |
Undocumented |
Method | display |
Undocumented |
Method | error |
Undocumented |
Method | flashing |
Undocumented |
Method | get |
Undocumented |
Method | go |
Undocumented |
Method | go |
Undocumented |
Method | none |
Undocumented |
Method | notify |
called by the led_ring_anim when the current animation played or the color on the Led Ring is updated, used to publish Led STATUS |
Method | rainbow |
Undocumented |
Method | rainbow |
Undocumented |
Method | rainbow |
Undocumented |
Method | set |
Undocumented |
Method | shutdown |
Undocumented |
Method | shutdown |
Undocumented |
Method | snake |
Undocumented |
Method | solid |
Undocumented |
Method | start |
Start a thread to allow the user to control the led. We use a thread to avoid the blocking effect of the Led ring control methods. |
Method | start |
Undocumented |
Method | stop |
Undocumented |
Method | user |
Undocumented |
Method | wait |
Wait until all iterations of the Led Ring method are done. After that, the led ring is turned off. If function was interrupted, return True. |
Method | wipe |
Undocumented |
Instance Variable | dict |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | led |
Undocumented |
Instance Variable | led |
Undocumented |
Instance Variable | led |
Undocumented |
Instance Variable | logs |
Undocumented |
Instance Variable | robot |
Undocumented |
Instance Variable | robot |
Undocumented |
Instance Variable | robot |
Undocumented |
Instance Variable | robot |
Undocumented |
Instance Variable | rpi |
Undocumented |
Instance Variable | running |
Undocumented |
Instance Variable | user |
Undocumented |
Instance Variable | user |
Undocumented |
Property | is |
Undocumented |
Static Method | _return |
Return a CommandStatus and a message, after the requested animation was completed |
Method | __callback |
Undocumented |
Method | __callback |
Callback method to set led ring state according to current robot status. This callback takes precedence over the user's led ring control method, if the robot status is not RUNNING_AUTONOMOUS and logs status is not NONE... |
Method | __callback |
Undocumented |
Method | __callback |
Undocumented |
Method | __callback |
Service to allow the user to control the Led Ring. A new request will interrupt the previous one, if still playing. |
Method | __callback |
Undocumented |
Method | _publish |
Publish the current status of the Led ring, as a LedRingStatus message : led_mode: either controlled by user or displaying robot status animation_mode: which method is used to animate pixels (solid, flashing,... |
Instance Variable | __check |
Undocumented |
Instance Variable | __is |
Undocumented |
Instance Variable | __is |
Undocumented |
Instance Variable | __led |
Undocumented |
Instance Variable | __set |
Undocumented |
Instance Variable | __set |
Undocumented |
called by the led_ring_anim when the current animation played or the color on the Led Ring is updated, used to publish Led STATUS
Start a thread to allow the user to control the led. We use a thread to avoid the blocking effect of the Led ring control methods.
Wait until all iterations of the Led Ring method are done. After that, the led ring is turned off. If function was interrupted, return True.
Callback method to set led ring state according to current robot status. This callback takes precedence over the user's led ring control method, if the robot status is not RUNNING_AUTONOMOUS and logs status is not NONE. It is triggered only when the robot status changed.
Service to allow the user to control the Led Ring. A new request will interrupt the previous one, if still playing.
Publish the current status of the Led ring, as a LedRingStatus message : led_mode: either controlled by user or displaying robot status animation_mode: which method is used to animate pixels (solid, flashing,...), as a LedRingAnimation message animation_color: current animation color, except for rainbow methods
Function called only when one parameter changed.