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(control_data_collecting_tool): add trajectory inside circle and lanelet2 trajectory #156

Conversation

YoshihiroKogure
Copy link
Contributor

@YoshihiroKogure YoshihiroKogure commented Nov 20, 2024

Description

  • Add a trajectory where the car moves around inside a circle for efficient data collection.
    push_LOCAL

  • Add a trajectory generation method that creates trajectories along the roads on the map.
    Set_Trajectory_along_Load

For more instructions please follow the instructions in README.md(here).

Related links

Tests performed

Notes for reviewers

Interface changes

Effects on system behavior

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.

Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
@YoshihiroKogure YoshihiroKogure changed the title Feat/trajectory inside circle and lanelet2 trajectory feat(control_data_collecting_tool): add trajectory inside circle and lanelet2 trajectory Nov 20, 2024
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Comment on lines 39 to 44
# Define the argument for map_path
DeclareLaunchArgument("map_path", description="Path to the map directory")
# Use the map_path argument in parameters
map_path = LaunchConfiguration("map_path")

# Get the path to the common param file
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I forgot but we can get map with /map/vector_map but it is ok for now.
Currently, a map must be specified even when using something other than along_road.

Copy link
Contributor Author

@YoshihiroKogure YoshihiroKogure Nov 26, 2024

Choose a reason for hiding this comment

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

In ef6afa9, I modified it so that it works without reading the map_path when the along_road feature is not used.

(I had the wrong URL, so I have replaced it with the correct one.)

@kosuke55
Copy link
Contributor

reversal_loop_circle works!
image

ros__parameters:
# Course Specific Parameters
trajectory_radius: 35.0
enclosing_radius: 40.0
Copy link
Contributor

@kosuke55 kosuke55 Nov 22, 2024

Choose a reason for hiding this comment

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

memo: the data collection area only indicates the center, currently need to set in params.
better to specify radius from area in the future

Signed-off-by: Yoshihiro Kogure <[email protected]>
@kosuke55
Copy link
Contributor

kosuke55 commented Nov 26, 2024

works with along_road!

image

image

Signed-off-by: Yoshihiro Kogure <[email protected]>
@kosuke55
Copy link
Contributor

@YoshihiroKogure
could you please fix pre-commit
image

@YoshihiroKogure
Copy link
Contributor Author

YoshihiroKogure commented Nov 27, 2024

@kosuke55
I've made some changes to the README, but it seems there's a conflict with the pre-commit modifications, and the fixes keep repeating every time I run pre-commit.

Screenshot from 2024-11-27 23-14-48

@kosuke55 kosuke55 force-pushed the feat/trajectory_inside_circle_and_lanelet2_trajectory branch from 57e9a5b to 42e524e Compare November 28, 2024 07:51
Signed-off-by: kosuke55 <[email protected]>
Signed-off-by: kosuke55 <[email protected]>
@kosuke55 kosuke55 force-pushed the feat/trajectory_inside_circle_and_lanelet2_trajectory branch from 452be86 to b5a4630 Compare November 28, 2024 09:20
@kosuke55
Copy link
Contributor

@YoshihiroKogure
please pass spell check too 🙏

YoshihiroKogure and others added 3 commits November 29, 2024 13:08
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
@YoshihiroKogure
Copy link
Contributor Author

YoshihiroKogure commented Nov 29, 2024

@kosuke55
In 57856fa and 31449f9, I've made the changes so that the spell check passes.

Screenshot from 2024-11-29 13-52-41

Signed-off-by: Yoshihiro Kogure <[email protected]>
Copy link
Contributor

@kosuke55 kosuke55 left a comment

Choose a reason for hiding this comment

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

LGTM

@YoshihiroKogure
Copy link
Contributor Author

@kosuke55
I have merged the main branch, so could you please rerun the tests?

@kosuke55
Copy link
Contributor

kosuke55 commented Dec 2, 2024

@YoshihiroKogure
oh, pre-commits fails again.

This reverts commit 1cdbd05.

Signed-off-by: Yoshihiro Kogure <[email protected]>
…circle_and_lanelet2_trajectory"

This reverts commit d372051, reversing
changes made to 50f46bd.

Signed-off-by: Yoshihiro Kogure <[email protected]>
@YoshihiroKogure
Copy link
Contributor Author

@kosuke55
It seems I accidentally merged the working branch. I have reverted it.

@kosuke55 kosuke55 enabled auto-merge (squash) December 2, 2024 15:58
@kosuke55 kosuke55 merged commit f3e9313 into autowarefoundation:main Dec 2, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants