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

feat: ignore rcl_timer_init() from ros2 launch command #129

Merged
merged 18 commits into from
Jul 20, 2023

Conversation

miyakoshi-dev
Copy link
Contributor

@miyakoshi-dev miyakoshi-dev commented Jun 29, 2023

Description

Some of the processes started with python3 had a process that issued rcl_timer_init() not associated with a node in a short cycle.
As a result, the information acquired by CARET_trace increases with the passage of time, and a phenomenon occurs in which it takes time to complete measurement.
For this reason, restrict rcl_timer_init() to be excluded when invoked by the python3 command.
(memo)Currently, measurement via python3 (rclpy) is not supported.

Related links

https://tier4.atlassian.net/browse/RT2-591

Notes for reviewers

Pre-review checklist for the PR author

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR has been properly tested.
  • The PR has been reviewed.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@miyakoshi-dev miyakoshi-dev changed the title Ignore rcl_timer_init() from ros2 launch command feat: Ignore rcl_timer_init() from ros2 launch command Jun 29, 2023
@miyakoshi-dev miyakoshi-dev changed the title feat: Ignore rcl_timer_init() from ros2 launch command feat: ignore rcl_timer_init() from ros2 launch command Jun 29, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jun 29, 2023

Codecov Report

Patch coverage: 24.13% and project coverage change: +13.53 🎉

Comparison is base (8efaffe) 26.23% compared to head (735fbdf) 39.77%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #129       +/-   ##
===========================================
+ Coverage   26.23%   39.77%   +13.53%     
===========================================
  Files          58       28       -30     
  Lines        3106     1878     -1228     
  Branches      978      981        +3     
===========================================
- Hits          815      747       -68     
+ Misses       1574      407     -1167     
- Partials      717      724        +7     
Flag Coverage Δ
differential 39.77% <24.13%> (?)
total ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
CARET_trace/src/ros_trace_points.cpp 39.94% <24.13%> (-1.58%) ⬇️

... and 30 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

CARET_trace/src/ros_trace_points.cpp Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
isp-uetsuki
isp-uetsuki previously approved these changes Jul 4, 2023
Copy link
Contributor

@isp-uetsuki isp-uetsuki left a comment

Choose a reason for hiding this comment

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

LGTM

CARET_trace/src/ros_trace_points.cpp Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
isp-uetsuki
isp-uetsuki previously approved these changes Jul 18, 2023
Copy link
Contributor

@isp-uetsuki isp-uetsuki left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@takeshi-iwanari takeshi-iwanari left a comment

Choose a reason for hiding this comment

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

  • I confirmed this PR fixes the original issue
  • Please consider to fix the followings
    • comments in the code as I reviewed
    • description of this PR
      • this change is not only for "ros2 launch" but for any "python3" command
      • add explanation WHY rcl_timer_init() from python3 command needs to be ignored

CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Outdated Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Show resolved Hide resolved
CARET_trace/src/ros_trace_points.cpp Show resolved Hide resolved
nabetetsu
nabetetsu previously approved these changes Jul 19, 2023
Copy link
Collaborator

@nabetetsu nabetetsu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@miyakoshi-dev miyakoshi-dev merged commit 6315bfa into tier4:main Jul 20, 2023
10 of 11 checks passed
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.

5 participants