-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pre-set and post-set parameter callbacks in addition to on-set-parameter-callback. #1947
Support pre-set and post-set parameter callbacks in addition to on-set-parameter-callback. #1947
Conversation
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this what happens currently when you chain parameters like this ? (Should behave like this ideally I believe)
param A (set successfully) --> param B (fails to set) --> param C (should not be triggered)
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
This comment was marked as outdated.
This comment was marked as outdated.
I checked, this is indeed the behaviour right now, so should be good. |
To recap from our discussion at the ROS 2 meeting:
|
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Not sure but should we do something about |
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
One more thing which we should probably address is that since the We can probably do something about this by not calling the registered |
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
…declare param Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
I have made changes to the code based on review suggestions. I have also updated documentation for existing Node API's based on pre and post callbacks and can use a review for that specific commit d0bc26b Thanks! |
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few aesthetic things, otherwise LGTM!
Please trigger a CI job from ci.ros2.org and make sure it is green before merging. |
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
The same Windows test failure occurred on the most recent nightly: https://ci.ros2.org/view/nightly/job/nightly_win_rep/lastBuild/testReport/junit/launch_testing_examples.launch_testing_examples/check_multiple_nodes_launch_test/launch_testing_examples_check_multiple_nodes_launch_test/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good !
This PR allows supporting
add_pre_set_parameter_callback
andadd_post_set_parameter_callback
in addition to the existingadd_on_set_parameter_callback
for Node API.Design document: https://github.com/ros2/rclcpp/blob/deepanshu/local-param-changed-callback-support/rclcpp/doc/proposed_node_parameter_callbacks.md
Demo node: ros2/demos#565
rclpy ticket: ros2/rclpy#966
Related discussion: #1190, #609
cc: @adityapande-1995 @jacobperron
Signed-off-by: deepanshu deepanshubansal01@gmail.com