Fix code style
This commit is contained in:
parent
9a499cf726
commit
0ddefd1efd
1 changed files with 4 additions and 2 deletions
|
@ -170,8 +170,9 @@ public:
|
|||
return get_value<ParameterType::PARAMETER_BYTES>();
|
||||
}
|
||||
|
||||
static ParameterVariant from_parameter(const rcl_interfaces::Parameter & parameter) {
|
||||
switch(parameter.value.parameter_type) {
|
||||
static ParameterVariant from_parameter(const rcl_interfaces::Parameter & parameter)
|
||||
{
|
||||
switch (parameter.value.parameter_type) {
|
||||
case PARAMETER_BOOL:
|
||||
return ParameterVariant(parameter.name, parameter.value.bool_value);
|
||||
case PARAMETER_INTEGER:
|
||||
|
@ -188,6 +189,7 @@ public:
|
|||
throw std::runtime_error("Invalid type from ParameterValue");
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
rcl_interfaces::ParameterValue value_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue