Repository navigation
Conversation
| printf("Warning: ignoring attempt to set parameter %s with type %d\n", | ||
| changed_parameter.name.c_str(), changed_parameter.value.type); | ||
| // printf("Warning: ignoring attempt to set parameter %s with type %d\n", | ||
| // changed_parameter.name.c_str(), changed_parameter.value.type); |
There was a problem hiding this comment.
Why remove this? Is it because there is no way to detect which parameter changes were intended for this node (the node is not implicitly in the name)?
There was a problem hiding this comment.
Yes.
It was printing every time there was a parameter change for any other node, at least with opensplice.
This print was getting pretty noisy when I was changing a bunch of kobuki parameters
There was a problem hiding this comment.
Ok. I'd have to look at the Parameter API's current state, but I think there should be a better way to update the parameters other than listening to the ParameterEvents, which also doesn't have this problem. This is probably fine for now.
|
I updated this PR to work with the new parameter API, |
f6a5ea5 to
e59f418
Compare
|
Rebased onto #3 |
e59f418 to
519ed3a
Compare
|
Fixed rebase |
| rcl_interfaces::msg::ParameterType::PARAMETER_DOUBLE) { | ||
| result.successful = false; | ||
| result.reason = "max_vyaw has to be a double"; | ||
| } |
There was a problem hiding this comment.
These repeated conditions are hard to read. I would suggest to extract the common conditions into a first level and then use a condition and an else block for the second level, e.g.:
if ("device_port" == param.get_name()) {
if (param.get_type() == rcl_interfaces::msg::ParameterType::PARAMETER_STRING) {
...
} else {
...
}
}
|
This should be mergeable now with alpha8. |
Support changing some parameters dynamically