Is it possible to set multiple parameters in ros2 from the command line using "ros2 param set"?
I have two sets of parameters, position
and orientation
. Each of them are defined as hash maps (definition shown below).
position
has 3 components: x
, y
, z
.
orientation
has 3 components: roll
, pitch
, yaw
.
I have default values set for them. but I want to change these values from the command line during runtime, using the ros2 set param
command from the terminal. Is this possible?
Code snippet of my parameters
std::map<std::string, double> position_values{
{"x", 1.0},
{"y", 2.0},
{"z", 3.0}
};
this->declare_parameters("position", position_values);
A similar definition is present for orientation
as well.