pub trait RosParams {
// Required methods
fn register_parameters(
&mut self,
prefix: &str,
param: Option<Parameter>,
params: &mut IndexMap<String, Parameter>,
) -> Result<()>;
fn get_parameter(&mut self, param_name: &str) -> Result<ParameterValue>;
fn set_parameter(
&mut self,
param_name: &str,
param_val: &ParameterValue,
) -> Result<()>;
}
Expand description
Trait for use it with
Node::make_derived_parameter_handler()
.
The trait is usually derived with r2r_macros::RosParams
. See
parameters_derive.rs
example.