Skip to content
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

node logger_name should be assigned after rmw_create_node. #985

Conversation

fujitatomoya
Copy link
Collaborator

address #983

Signed-off-by: Tomoya Fujita [email protected]

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this addresses the immediate concern, I think this bug report points out a deeper problem; rcl_node_init is far too complicated as-is. I think the right thing to do here is to refactor this function completely so that it calls out to functions to do most of the work for it, which will make it much easier to follow. Also, a lot of the work that is done in the fail section could be shared with rcl_node_fini.

@fujitatomoya I won't outright block on this, but I think this whole thing will be much easier to reason about and maintain if we do that refactoring. What do you think?

@fujitatomoya
Copy link
Collaborator Author

@clalancette agree, probably refactoring would be best. and we can fix the problem aligned with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants