Closed schornakj closed 4 years ago
Sorry for the long delay here. While this isn't quite enough (I think we also need to set allow_undeclared_parameters
on the node), this is an improvement. I'll merge this as-is, merge some other PRs, and then iterate on this code. Thanks for the contribution!
This continues from #16.
The main addition is to add a
declare_parameter
for each parameter used by the node, which is required for compatibility with Dashing.A change compared to @cottsay 's work in #16 is that the initial values and types of the parameters are set in by
declare_parameter
instead of through the node'sparameter_overrides
field. When running this node through a launch file I was not able to get parameter values set in the launch file to take precedence over the values set inparameter_overrides
. Discussion on Discourse indicates thatdeclare_parameter
is the preferred way to initialize parameters with metadata.