Skip to content

Commit

Permalink
Provide defaults for ParameterValue fields (#18)
Browse files Browse the repository at this point in the history
* Provide defaults for ParameterValue fields

Even though only one field for a particular parameter is intended to be used, to prevent serialisation of uninitialised fields we put defaults for all of them

* Remove unnecessary default for bytes_value

* False->false to match design spec
  • Loading branch information
dhood authored Aug 22, 2017
1 parent d54c266 commit d25c83b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rcl_interfaces/msg/ParameterValue.msg
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
uint8 type

# "Variant" style storage of the parameter value.
bool bool_value
int64 integer_value
float64 double_value
string string_value
bool bool_value false
int64 integer_value 0
float64 double_value 0.0
string string_value ""
byte[] bytes_value

0 comments on commit d25c83b

Please sign in to comment.