Skip to content

Commit 5a832e4

Browse files
committed
When a parameter change is rejected, the parameters map shouldn't be updated.
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 2677862 commit 5a832e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ __declare_parameter_common(
389389
callback_container,
390390
callback);
391391

392+
if (!result.successful) {
393+
return result;
394+
}
395+
392396
// Add declared parameters to storage.
393397
parameters_out[name] = parameter_infos.at(name);
394398

0 commit comments

Comments
 (0)