Skip to content

feat(trajectory): add pretty_build() function for Planning/Control component node #332

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

Merged

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Mar 27, 2025

Description

Added pretty_trajectory function that will be used in most of the Planning/Control component's node entry point.

Related links

#322

How was this PR tested?

test passes and coverage is 89.8%

image

Notes for reviewers

None.

Interface changes

Add following functions

  • pretty_trajectory

Topic changes

Additions and removals

Change type Topic Type Topic Name Message Type Description
Added/Removed Pub/Sub/Srv/Cli /topic_name std_msgs/String Topic description

Modifications

Version Topic Type Topic Name Message Type Description
Old Pub/Sub/Srv/Cli /old_topic_name sensor_msgs/Image Topic description
New Pub/Sub/Srv/Cli /new_topic_name sensor_msgs/Image Topic description

ROS Parameter Changes

Additions and removals

Change type Parameter Name Type Default Value Description
Added/Removed param_name double 1.0 Param description

Modifications

Version Parameter Name Type Default Value Description
Old old_param_name double 1.0 Param description
New new_param_name double 1.0 Param description

🔴⬆️ -->

Effects on system behavior

None.

Copy link

github-actions bot commented Mar 27, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@soblin soblin force-pushed the feat/trajectory-add-populate-function branch 4 times, most recently from 42f5eb6 to 3a4a3e6 Compare March 28, 2025 03:57
@soblin soblin force-pushed the feat/trajectory-add-populate-function branch 8 times, most recently from b6f194e to d830a10 Compare April 11, 2025 05:49
@soblin soblin force-pushed the feat/trajectory-add-populate-function branch 4 times, most recently from 11f4623 to 4f7cc92 Compare April 14, 2025 02:48
@soblin soblin changed the title feat(trajectory): add populate function for behavior_velocity_planner feat(trajectory): add pretty_trajectory() function for Planning/Control component node Apr 14, 2025
@soblin soblin marked this pull request as ready for review April 14, 2025 02:52
@soblin soblin requested review from takayuki5168, yhisaki and a team as code owners April 14, 2025 02:52
@soblin soblin added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) labels Apr 14, 2025
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin force-pushed the feat/trajectory-add-populate-function branch from 4f7cc92 to 576f31f Compare April 14, 2025 03:05
@soblin soblin enabled auto-merge (squash) April 14, 2025 04:08
@soblin soblin disabled auto-merge April 14, 2025 08:01
Copy link
Member

@youtalk youtalk left a comment

Choose a reason for hiding this comment

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

Only hpp interface addition. LGTM

// limitations under the License.

#include "autoware/trajectory/utils/pretty_trajectory.hpp"
#include "autoware_utils_geometry/geometry.hpp"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#include "autoware_utils_geometry/geometry.hpp"
#include <autoware_utils_geometry/geometry.hpp>

#include "autoware/trajectory/interpolator/spherical_linear.hpp"
#include "autoware/trajectory/path_point_with_lane_id.hpp"
#include "autoware/trajectory/trajectory_point.hpp"
#include "autoware_utils_geometry/geometry.hpp"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#include "autoware_utils_geometry/geometry.hpp"
#include <autoware_utils_geometry/geometry.hpp>

@@ -15,6 +15,8 @@
#include "autoware/trajectory/utils/closest.hpp"
#include "autoware/trajectory/utils/crossed.hpp"
#include "autoware/trajectory/utils/curvature_utils.hpp"
#include "autoware/trajectory/utils/pretty_trajectory.hpp"
#include "autoware_utils_geometry/geometry.hpp"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#include "autoware_utils_geometry/geometry.hpp"
#include <autoware_utils_geometry/geometry.hpp>


const auto & interpolation = input3_interpolation_result.value();

const auto new_bases = insert_middle_into_largest_interval(interpolation.get_internal_bases());
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const auto new_bases = insert_middle_into_largest_interval(interpolation.get_internal_bases());
const auto new_bases = insert_middle_into_largest_interval(interpolation.get_underlying_bases());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's right 👍

@soblin soblin changed the title feat(trajectory): add pretty_trajectory() function for Planning/Control component node feat(trajectory): add pretty_build() function for Planning/Control component node Apr 14, 2025
soblin added 3 commits April 15, 2025 10:05
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin enabled auto-merge (squash) April 15, 2025 01:17
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Copy link

codecov bot commented Apr 15, 2025

Codecov Report

Attention: Patch coverage is 30.12048% with 174 lines in your changes missing coverage. Please review.

Project coverage is 22.15%. Comparing base (4cb18f5) to head (1cdaef5).
Report is 165 commits behind head on main.

Files with missing lines Patch % Lines
...oware_trajectory/examples/example_pretty_build.cpp 0.00% 144 Missing ⚠️
...mon/autoware_trajectory/src/utils/pretty_build.cpp 64.61% 21 Missing and 2 partials ⚠️
...include/autoware/trajectory/utils/pretty_build.hpp 82.50% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #332       +/-   ##
===========================================
- Coverage   78.75%   22.15%   -56.61%     
===========================================
  Files          11      150      +139     
  Lines         193     9399     +9206     
  Branches       73     2137     +2064     
===========================================
+ Hits          152     2082     +1930     
- Misses         11     7074     +7063     
- Partials       30      243      +213     
Flag Coverage Δ
differential 22.15% <30.12%> (?)
total ?

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@soblin soblin merged commit 19090a2 into autowarefoundation:main Apr 15, 2025
23 of 26 checks passed
@soblin soblin deleted the feat/trajectory-add-populate-function branch April 15, 2025 03:48
PanConChicharron pushed a commit to tier4/autoware_core that referenced this pull request Apr 16, 2025
…mponent node (autowarefoundation#332)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) run:deploy-docs Mark for deploy-docs action generation. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants