Conversation
wjwwood
left a comment
There was a problem hiding this comment.
I'm still surprised that this is needed. I see that we explicitly tell people not to change parameters in the post change callback:
rclcpp/rclcpp/include/rclcpp/node.hpp
Line 1184 in 605251b
But I don't remember why. Do you have a good idea why this was the case @fujitatomoya? I really think we should understand this before we workaround it.
rclcpp/include/rclcpp/node_interfaces/node_parameters_interface.hpp
Outdated
Show resolved
Hide resolved
no i do not have any clue on this. i guess this has been here for a long time before i know that... |
|
Summary:
|
|
@jmachowinski @alsora @mjcarroll any opinions? i would like to have this fix, so that we can have #2378 |
|
Would it be possible to add some unit-tests to show that the changes work? |
|
@alsora yeah, i will consider the test. thanks! |
rclcpp/include/rclcpp/node_interfaces/node_parameters_interface.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
cd05473 to
24e570b
Compare
…ion(). Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
|
@alsora @jmachowinski test and docstring are added, can you take a look? |
|
Pulls: #2742 |
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
|
@jmachowinski just added docstring a bit more, could you check again? thanks for the review! |
|
Pulls: #2742 |
|
Can this change be backported to Jazzy (or has it already been and just not released)? I've got a PR in nav2 that needs this fix: ros-navigation/navigation2#4961 |
|
@pele1410 No, it is ABI breaking and can therefore not be directly back ported. |
closes #2741