Skip to content

Decouple rosout publisher init from node init.#1065

Merged
fujitatomoya merged 4 commits into
rollingfrom
fujitatomoya/bugfix-20230427-rclcpp-issue-2147
Sep 22, 2023
Merged

Decouple rosout publisher init from node init.#1065
fujitatomoya merged 4 commits into
rollingfrom
fujitatomoya/bugfix-20230427-rclcpp-issue-2147

Conversation

@fujitatomoya

@fujitatomoya fujitatomoya commented Apr 27, 2023

Copy link
Copy Markdown
Collaborator

Comment thread rcl/src/rcl/node.c
@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

@iuhilnehc-ynos can you review those PRs?

@iuhilnehc-ynos

Copy link
Copy Markdown
Collaborator

LGTM.

There is a tiny issue I can think of,
How can we notify users, whose applications only depend on rcl rather than rclc/rclcpp/rclpy, to add the rosout publisher manually? I don't know if we should consider it or not.

@fujitatomoya

fujitatomoya commented Jun 16, 2023

Copy link
Copy Markdown
Collaborator Author

How can we notify users, whose applications only depend on rcl rather than rclc/rclcpp/rclpy, to add the rosout publisher manually? I don't know if we should consider it or not.

good question, let me check if there is at least doc mentions that with this change.

edit: i think that is clear that user can call this function after rcl_node_init which creates rcl_node_t.

* Calling this for an rcl_node_t will create a new publisher on that node that will be
* used by the logging system to publish all log messages from that Node's logger.

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

CI (retry):

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya

fujitatomoya commented Jun 18, 2023

Copy link
Copy Markdown
Collaborator Author

the other failures are unrelated, ModuleNotFoundError: No module named 'rclpy.type_hash'.

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya fujitatomoya force-pushed the fujitatomoya/bugfix-20230427-rclcpp-issue-2147 branch from 91f7580 to 3f706e6 Compare June 19, 2023 18:22
@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

CI(rebase)

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author
  • Windows Build Status

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

windows has been meeting some CI instability, i am not sure what is wrong...

@fujitatomoya

fujitatomoya commented Jun 20, 2023

Copy link
Copy Markdown
Collaborator Author

CI(windows only w/o rclc):

  • Windows Build Status

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

Comment thread rcl/src/rcl/node.c
Comment thread rcl/src/rcl/node.c
@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

either @iuhilnehc-ynos or @Barry-Xu-2018 could you do review on the related PRs?

@iuhilnehc-ynos iuhilnehc-ynos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Two minor comments.

Comment thread rcl/test/rcl/test_graph.cpp
Comment thread rcl/test/rcl/test_logging_rosout.cpp Outdated
Comment thread rcl/test/rcl/test_graph.cpp Outdated
Tomoya Fujita added 4 commits September 20, 2023 11:21
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@fujitatomoya fujitatomoya force-pushed the fujitatomoya/bugfix-20230427-rclcpp-issue-2147 branch from d29753f to cefce8a Compare September 20, 2023 18:22

@fujitatomoya fujitatomoya left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

CC: @iuhilnehc-ynos

because of 7b9c1ec, i needed to rebase but it actually makes it simplified.

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@iuhilnehc-ynos

This comment was marked as off-topic.

@fujitatomoya

fujitatomoya commented Sep 21, 2023

Copy link
Copy Markdown
Collaborator Author

my bad 😓 sorry about that.

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

https://ci.ros2.org/job/ci_windows/20261/ fails with unrelated things in rclc, so for windows i will restart the CI w/o rclc.

CI(windows, w/o rclc):

  • Windows Build Status

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

@clalancette i will go ahead to merge this with @iuhilnehc-ynos 's approval.

@fujitatomoya fujitatomoya merged commit 1260197 into rolling Sep 22, 2023
@delete-merged-branch delete-merged-branch Bot deleted the fujitatomoya/bugfix-20230427-rclcpp-issue-2147 branch September 22, 2023 01:44
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.

3 participants