Skip to content

Commit

Permalink
Add comments to message and service files
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Jan 29, 2021
1 parent 723ed69 commit ab4ec11
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
10 changes: 6 additions & 4 deletions led_msgs/msg/LEDState.msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
uint32 index
uint8 r
uint8 g
uint8 b
# This message represents a state of an LED

uint32 index # number of LED in a LED strip or other LEDs set
uint8 r # red component of the color, 0..255
uint8 g # green component of the color, 0..255
uint8 b # blue component of the color, 0..255
2 changes: 2 additions & 0 deletions led_msgs/msg/LEDStateArray.msg
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Full state of a LED strip or other set of LEDs

LEDState[] leds
14 changes: 8 additions & 6 deletions led_msgs/srv/SetLED.srv
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
uint32 index
uint8 r
uint8 g
uint8 b
# This service sets an LED color

uint32 index # number of LED in a LED strip or other LEDs set
uint8 r # red component of the color, 0..255
uint8 g # green component of the color, 0..255
uint8 b # blue component of the color, 0..255
---
bool success
string message
bool success # True if the call succeeded
string message # Error or informational message
6 changes: 4 additions & 2 deletions led_msgs/srv/SetLEDs.srv
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# This service sets chosen LED colors in a LED strip or other LEDs set

LEDState[] leds
---
bool success
string message
bool success # True if the call succeeded
string message # Error or informational message

0 comments on commit ab4ec11

Please sign in to comment.