Definition
set_state_led_color(r,g,b)
Features
While the task is running, the robot LED will be set to the color specified by the user.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
r |
int |
0 |
1: Red color on
|
|
g |
int |
0 |
1: Green color on
|
|
b |
int |
0 |
1: Blue color on
|
Return
|
Value |
Description |
|---|---|
|
0 |
Success |
|
Negative value |
Error |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
Parameter data type error occurred |
Example
Python
#white color
set_state_led_color(1,1,1)
#cyan color
set_state_led_color(0,1,1)
#magenta color
set_state_led_color(1,0,1)
#blue color
set_state_led_color(0,0,1)
#yellow color
set_state_led_color(1,1,0)
#green color
set_state_led_color(0,1,0)
#red color
set_state_led_color(1,0,0)
#led off
set_state_led_color(0,0,0)