param api: load param value correctly

This commit is contained in:
Thomas Gubler
2015-02-08 15:50:02 +01:00
parent 1097f5f55c
commit 04cc8922e4
+3
View File
@@ -91,6 +91,8 @@ public:
if (!ros::param::has(name)) {
ros::param::set(name, value);
}
update();
}
~Parameter() {};
@@ -123,6 +125,7 @@ public:
ParameterBase<T>(name, value),
_handle(param_find(name))
{
update();
}
~Parameter() {};