issue in dynamic reconfig client
When i set the dynamic reconfig value from c++ client. i'm getting this error:
[ERROR] [1634641746.152133244]: SectorFilterConfig::__fromMessage__ called with an unexpected parameter.
[ERROR] [1634641746.152156567]: Booleans:
[ERROR] [1634641746.152166463]: Integers:
[ERROR] [1634641746.152192406]: Doubles:
[ERROR] [1634641746.152220314]: /laser_filter/scan_filter/range_max
[ERROR] [1634641746.152243397]: Strings:
Here is the code:
dynamic_reconfigure::ReconfigureRequest srv_req;
dynamic_reconfigure::ReconfigureResponse srv_resp;
dynamic_reconfigure::Config conf;
dynamic_reconfigure::StrParameter angle_segments;
angle_segments.name = "/laser_filter/scan_filter/angle_segments";
angle_segments.value = "0,0";
conf.strs.push_back(angle_segments);
srv_req.config = conf;
ros::service::call("/laser_filter/scan_filter/set_parameters", srv_req, srv_resp);
cfg file of the dynamic parameters:
from dynamic_reconfigure.parameter_generator_catkin import *
PACKAGE = "laser_filters"
gen = ParameterGenerator()
gen.add("angle_segments", str_t, 0, "List of angular segments (radians)", "1,2,3,4")
gen.add("range_min", double_t, 0,
"Min radius of the circle sector (meter)", 0.0, 0.0, 100000.0)
gen.add("range_max", double_t, 0,
"Max radius of the circle sector (meter)", 100000.0, 0.0, 100000.0)
gen.add("clear_inside", bool_t, 0, "True to clear inside of the circle sector, False to clear outside. Default: true", True)
gen.add("invert", bool_t, 0, "A Boolean to invert the filter", False)
exit(gen.generate(PACKAGE, "laser_filters", "SectorFilter"))
Quick comment: locale? The comma (
,
) is only used in parts of the world in floating point number notation. In others it's the dot (.
).I didn't understand it properly. when i replace comma with dot inside string still the same error is comming. I've updated question with .cfg of the parameters.