Deprecate set_on_parameters_set_callback (#1123)
* add deprecate statement * replace tests to use add_on_param fn * deprecate set_on_pram fn in node_parameters * deprecate in lifecycle_node and add replacement fn * update documentation * add warning suppression to test_node.cpp * correct namespace in lifecycle_node.cpp * remove whitespace fix line length in lifecycle_node * move reset fn to below add_on * deprecate set_on in test_lifecycle_node * suppress deprecation warning in node.cpp * suppress warning in lifecycle_node.cpp Signed-off-by: claireyywang <22240514+claireyywang@users.noreply.github.com>
This commit is contained in:
parent
01ec06d601
commit
d13c098feb
8 changed files with 77 additions and 22 deletions
|
@ -427,7 +427,7 @@ TEST_F(TestDefaultStateMachine, check_parameters) {
|
|||
return result;
|
||||
};
|
||||
|
||||
test_node->set_on_parameters_set_callback(callback);
|
||||
test_node->add_on_set_parameters_callback(callback);
|
||||
rclcpp::Parameter bool_parameter(bool_name, rclcpp::ParameterValue(false));
|
||||
EXPECT_TRUE(test_node->set_parameter(bool_parameter).successful);
|
||||
EXPECT_EQ(parameters_set, 1u);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue