-
Notifications
You must be signed in to change notification settings - Fork 0
LEDs
Giovanni Bruno edited this page Apr 30, 2019
·
9 revisions
On UP board and UP2 there are some leds.
You have 3 leds for UP board (green, yellow, red) and 4 for UP2 (blue, yellow, green, red).
Please refer UP website to learn more about your board.
-
Subcribed:
/upboard_ros/leds
(upboard_ros/Leds), list of leds commands
You can run this node by typing:
rosrun upboard_ros led_node
To launch a test sequence for your leds just use:
roslaunch upboard_ros led_test.launch
You will see a sequence:
- Open a terminal:
roscore
- In a new terminal:
rosrun upboard_ros led_node
- In a new terminal:
to turn on blue led:
rostopic pub /upboard/leds upboard_ros/Leds "{header: auto, leds:[{led: 1, value: 1}]}" --once
to turn off blue led:
rostopic pub /upboard/leds upboard_ros/Leds "{header: auto, leds:[{led: 1, value: 0}]}" --once
When led_node is killed all leds are turned off.
Copyright (c) 2019 Giovanni di Dio Bruno under MIT license