-
Notifications
You must be signed in to change notification settings - Fork 412
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
Fix #1526. #1527
Fix #1526. #1527
Conversation
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.
i think that this makes sense,
rclcpp/rclcpp_action/src/server.cpp
Lines 91 to 103 in b1ff2d5
auto deleter = [node_base](rcl_action_server_t * ptr) | |
{ | |
if (nullptr != ptr) { | |
rcl_node_t * rcl_node = node_base->get_rcl_node_handle(); | |
rcl_ret_t ret = rcl_action_server_fini(ptr, rcl_node); | |
if (RCL_RET_OK != ret) { | |
RCLCPP_DEBUG( | |
rclcpp::get_logger("rclcpp_action"), | |
"failed to fini rcl_action_server_t in deleter"); | |
} | |
delete ptr; | |
} | |
}; |
ServerBaseImpl::action_server_
requires ServerBaseImpl::clock_
during deletion.
@ivanpauno all green, could you take a look just in case? |
Signed-off-by: y-okumura-isp <y-okumura@isp.co.jp>
Only comments changed since last CI, i will go ahead to merge this. |
Fixes #1526.
As action_server_ depends on clock_, we declare clock_ first.
Then the order of deletion becomes action_server_, clock_.
There are still errors in the following test, but we have solved errors for test_server.