Skip to content

ros2log new package introduction#1217

Open
fujitatomoya wants to merge 13 commits intoros2:rollingfrom
fujitatomoya:ros2log-rolling
Open

ros2log new package introduction#1217
fujitatomoya wants to merge 13 commits intoros2:rollingfrom
fujitatomoya:ros2log-rolling

Conversation

@fujitatomoya
Copy link
Copy Markdown
Collaborator

Description

part of #1148 for Node Granurality

Fixes # (issue)

Is this user-facing behavior change?

Yes, new package is introduced ros2log

Did you use Generative AI?

Yes we did during the development. Claude Sonnet 4.6.

Additional Information

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

CC: @decwest

@fujitatomoya fujitatomoya force-pushed the ros2log-rolling branch 2 times, most recently from 9fed13e to 0122cc2 Compare March 29, 2026 05:02
Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

clean up the package and implementation.

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

fix ros2log test_watch.py.

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

support QoS configuration argument for ros2 log watch.

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

Call content filtering API for logger name and level if available.

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

add test_cli.py to test "ros2 log watch".

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

remove ros2log/README.md.

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

:construction: add list subcommand

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

bug: fix test

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

:recycle: delete non-necessary fixture node for test

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

:bug: fix to print one by one

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

support "ros2 log levels".

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>

:zap: add get and set subcommand

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

:bug: align logger's initial state during test

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

FIX: add sleep to reduce cpu consumption

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

FIX: rewrite waiting acync process

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

:FIX: delete --include-hidden-nodes option

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

FIX: import from api

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>

FIX: add ValueError when empty string is inputted in get_absolute_node_name

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
Signed-off-by: Tomoya.Fujita <tomoya.fujita825@gmail.com>
Copy link
Copy Markdown
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

@Barry-Xu-2018

this is major enhancement for ros2log command that has been developed by ROS Japan Dev team. can you take a 1st look and review this?

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

@decwest i will start the CI for ros2log. this is gonna be the 1st time for other platforms like RHEL and window, i would expect that there are going to be several fixes to pass.

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

Pulls: #1217
Gist: https://gist.githubusercontent.com/fujitatomoya/56b5badffe7e633cceecafd22bf7230f/raw/2aa772334eb4fd9e80c78070cc7708c9e3e908dd/ros2.repos
BUILD args: --packages-up-to ros2log
TEST args: --packages-select ros2log
ROS Distro: humble
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18692

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

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

Pulls: #1217
Gist: https://gist.githubusercontent.com/fujitatomoya/d4d623a2ac8a7ba8a901274ee598172e/raw/6e539e43c41889088e02ba07135dd567298f1f70/ros2.repos
BUILD args: --packages-up-to ros2log
TEST args: --packages-select ros2log
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18694

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

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

Pulls: #1217
Gist: https://gist.githubusercontent.com/fujitatomoya/8c77c69338fdae4ee6dae5eb8a61f8e1/raw/6e539e43c41889088e02ba07135dd567298f1f70/ros2.repos
BUILD args: --packages-up-to ros2log
TEST args: --packages-select ros2log
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18695

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

Comment thread ros2log/ros2log/verb/__init__.py Outdated
Comment thread ros2log/ros2log/api/__init__.py
Comment thread ros2log/ros2log/api/__init__.py Outdated
Comment thread ros2log/package.xml Outdated
decwest added 4 commits March 30, 2026 22:41
Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
@decwest
Copy link
Copy Markdown

decwest commented Mar 30, 2026

@fujitatomoya
Regarding the CI build failure, the following report suggests that the cause is ModuleNotFoundError: No module named 'ros2node'.
https://ci.ros2.org/job/ci_linux/28369/testReport/%28root%29/ros2log/___/

To address this, I added ros2node as an exec_depend in the following commit.
2254ca5

Also, since test_cli.py imports launch-related modules, I added the corresponding test_depend entries as well.

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

Pulls: #1217
Gist: https://gist.githubusercontent.com/fujitatomoya/13bac608e7f568daece4dc4e371e52b5/raw/6e539e43c41889088e02ba07135dd567298f1f70/ros2.repos
BUILD args: --packages-up-to ros2log
TEST args: --packages-select ros2log
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18736

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

Copy link
Copy Markdown
Contributor

@Barry-Xu-2018 Barry-Xu-2018 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
@decwest
Copy link
Copy Markdown

decwest commented Mar 31, 2026

I addressed the following build error by this commit: d5bdf97

https://ci.ros2.org/job/ci_linux-rhel/8273/testReport/(root)/ros2log/___/

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

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

Comment thread ros2log/ros2log/api/__init__.py
Comment thread ros2log/ros2log/api/__init__.py Outdated
Comment thread ros2log/ros2log/api/__init__.py Outdated
Comment thread ros2log/ros2log/api/__init__.py Outdated
Comment thread ros2log/ros2log/api/__init__.py Outdated
Comment thread ros2log/ros2log/verb/watch.py Outdated
Comment thread ros2log/ros2log/verb/watch.py Outdated
Comment thread ros2log/ros2log/verb/watch.py Outdated
Comment thread ros2log/ros2log/api/__init__.py
Comment thread ros2log/ros2log/api/__init__.py
decwest and others added 4 commits April 3, 2026 20:53
Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Fumiya Ohnishi <fumiyaonishi1016@gmail.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Fumiya Ohnishi <fumiyaonishi1016@gmail.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Fumiya Ohnishi <fumiyaonishi1016@gmail.com>
decwest and others added 3 commits April 3, 2026 20:59
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Fumiya Ohnishi <fumiyaonishi1016@gmail.com>
Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
@fujitatomoya fujitatomoya requested a review from ahcorde April 13, 2026 11:51
@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

@decwest as you may know, everyone is busy with Lyrical Luth release (feature freeze, branching and so on), so it will be hard to get this in the mainline source code right at this moment. we could probably come back on this to get more review before merge after lyrical luth release.

in the mean time, i will start the CI for ros2log package. we can expect that there should be (will be) no conflicts since this is new whole package to the mainline.

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

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

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.

4 participants