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

chore(freespace_planning_algorithms): update for A* python wrapper #8890

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TakumIto
Copy link
Contributor

@TakumIto TakumIto commented Sep 17, 2024

Description

Update for A* python wrapper to use the getDistanceToObstacle() function.

Related links

This PR is initially prepared for A* parameter tuning tool autoware_tools PR#120. But, not only for it but also for other applications using python wrapper.

How was this PR tested?

Evaluator: https://evaluation.tier4.jp/evaluation/reports/733ee4d0-e5fc-5308-8520-fdbaf61526f8?project_id=prd_jt

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Sep 17, 2024
Copy link

github-actions bot commented Sep 17, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@TakumIto TakumIto force-pushed the feat/astar_wrapper_distance_function branch 3 times, most recently from 333efc0 to 1e25b48 Compare September 20, 2024 01:44
@TakumIto TakumIto marked this pull request as ready for review October 9, 2024 11:52
double getDistanceToObstacle(const std::string & pose_byte)
{
rclcpp::SerializedMessage serialized_msg;
static constexpr size_t message_header_length = 8u;
Copy link
Contributor

Choose a reason for hiding this comment

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

how to know this value 8u?

Copy link
Contributor Author

@TakumIto TakumIto Oct 10, 2024

Choose a reason for hiding this comment

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

I imitated the code of another feature.
https://github.com/autowarefoundation/autoware_common/blob/7c55915cb435c17f24f78dd9b9f28fa269609671/tmp/lanelet2_extension_python/src/utility.cpp#L136
It uses the same header length 8u for all messages. But I'm sorry, I have no idea how it has been decided.

@kosuke55 kosuke55 force-pushed the feat/astar_wrapper_distance_function branch from 521f76e to d2226de Compare October 16, 2024 07:07
@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 17, 2024
Copy link

stale bot commented Dec 18, 2024

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Dec 18, 2024
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) status:stale Inactive or outdated issues. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants