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(planning_topic_converter): add new package #5484

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Nov 4, 2023

Description

🤖 Generated by Copilot at 36f3579

This pull request adds a new package called planning_topic_converter, which provides a common interface and a concrete implementation for converting planning topics from one type to another. The package consists of a CMakeLists.txt file, a package.xml file, a README.md file, and two header and source files for the base and derived classes. The package also supports composable ROS 2 nodes.

Tests performed

Psim

Effects on system behavior

Nothing

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

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.

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

@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) labels Nov 4, 2023
@satoshi-ota satoshi-ota marked this pull request as ready for review November 6, 2023 00:38
@satoshi-ota satoshi-ota force-pushed the feat/planning-topic-converter branch from 36f3579 to 31c9884 Compare November 6, 2023 01:22
Comment on lines 17 to 18
<param name="input_topic" value="hoge"/>
<param name="output_topic" value="fuga"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

(nits: only Japanese know hoge/fuga)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:tashikani:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

better! thanks

Comment on lines +24 to +32
TrajectoryPoint convertToTrajectoryPoint(const PathPoint & point)
{
TrajectoryPoint traj_point;
traj_point.pose = tier4_autoware_utils::getPose(point);
traj_point.longitudinal_velocity_mps = point.longitudinal_velocity_mps;
traj_point.lateral_velocity_mps = point.lateral_velocity_mps;
traj_point.heading_rate_rps = point.heading_rate_rps;
return traj_point;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

(similar functions exist in other motion planner nodes, so better to use them as utils in the future)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I totally agree with you. Create tickets to remind that task.

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the feat/planning-topic-converter branch from 31c9884 to 0bae12b Compare November 6, 2023 02:29
@satoshi-ota satoshi-ota added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 6, 2023
Copy link

codecov bot commented Nov 6, 2023

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (ee20545) 14.86% compared to head (0bae12b) 14.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5484      +/-   ##
==========================================
- Coverage   14.86%   14.85%   -0.01%     
==========================================
  Files        1666     1668       +2     
  Lines      116258   116286      +28     
  Branches    36266    36266              
==========================================
  Hits        17277    17277              
- Misses      79476    79504      +28     
  Partials    19505    19505              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.86% <ø> (ø) Carriedforward from ee20545

*This pull request uses carry forward flags. Click here to find out more.

Files Coverage Δ
...nclude/planning_topic_converter/converter_base.hpp 0.00% <0.00%> (ø)
...lanning_topic_converter/src/path_to_trajectory.cpp 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@satoshi-ota satoshi-ota merged commit e628971 into autowarefoundation:main Nov 6, 2023
@satoshi-ota satoshi-ota deleted the feat/planning-topic-converter branch November 6, 2023 03:24
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Nov 7, 2023
)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
kosuke55 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 9, 2023
)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
kosuke55 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 30, 2023
)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants