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(tier4_planning_rviz_plugin): add drivable area plugin #2868

Merged

Conversation

purewater0901
Copy link
Contributor

@purewater0901 purewater0901 commented Feb 10, 2023

Signed-off-by: yutaka purewater0901@gmail.com

Description

Since the drivable area format changes a few months ago, I add a new planning path plugin for visualizing the new drivable area. The image of this new feature can be seen in the following video.

drivable_area_rviz_plugin-2023-02-10_23.00.03.mp4

Related links

Tests performed

PSim

Notes for reviewers

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: yutaka <purewater0901@gmail.com>
@github-actions github-actions bot added the component:common Common packages from the autoware-common repository. (auto-assigned) label Feb 10, 2023
Signed-off-by: yutaka <purewater0901@gmail.com>
@purewater0901
Copy link
Contributor Author

image

Default Color and size

Comment on lines 68 to 69
rviz_rendering::BillboardLine * left_bound_line_{nullptr};
rviz_rendering::BillboardLine * right_bound_line_{nullptr};
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please create it in TRIANGLE instead of BILLBOARD? The billboard would rotate with the viewpoint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comment, but if I use TRIANGLE I have to compute the angle and orthogonal vectors for changing the width of the line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it is possible, I would like to use BILLBOARD. (I intentionally use Billboard insteadd of TRIANGLE)

Copy link
Contributor

@yukkysaito yukkysaito Feb 10, 2023

Choose a reason for hiding this comment

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

I do not want to use billboard if it is possible.
Especially, it looks bad with billboard when the viewpoint goes straight to the billboard.
We also avoid the use of billboard for trajectory, path, lane(linestring) and etc., and use triangles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image (2)

This is the result when I use triangle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yukkysaito I changed it to use triangle

@takayuki5168
Copy link
Contributor

@yukkysaito Is it okay to visualize the drivable area line string on Rviz by default?

@yukkysaito
Copy link
Contributor

@yukkysaito Is it okay to visualize the drivable area line string on Rviz by default?

@takayuki5168 I think it's okay 👍

Signed-off-by: yutaka <purewater0901@gmail.com>
Signed-off-by: yutaka <purewater0901@gmail.com>
Signed-off-by: yutaka <purewater0901@gmail.com>
Signed-off-by: yutaka <purewater0901@gmail.com>
@purewater0901
Copy link
Contributor Author

@takayuki5168 I used your base class to extend the visualization class. Could you check the code again?

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Base: 11.70% // Head: 11.69% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (19dc42d) compared to base (b850b25).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2868      +/-   ##
==========================================
- Coverage   11.70%   11.69%   -0.01%     
==========================================
  Files        1314     1314              
  Lines       91624    91696      +72     
  Branches    24489    24489              
==========================================
  Hits        10726    10726              
- Misses      69710    69782      +72     
  Partials    11188    11188              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 11.70% <ø> (+<0.01%) ⬆️ Carriedforward from b850b25

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

Impacted Files Coverage Δ
...ier4_planning_rviz_plugin/include/path/display.hpp 0.00% <0.00%> (ø)
...planning_rviz_plugin/include/path/display_base.hpp 0.00% <0.00%> (ø)
...on/tier4_planning_rviz_plugin/src/path/display.cpp 0.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

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

LGTM

@purewater0901 purewater0901 merged commit 8761266 into autowarefoundation:main Feb 15, 2023
@purewater0901 purewater0901 deleted the feat/add-drivable-area-plugin branch February 15, 2023 08:01
nabetetsu pushed a commit to xygyo77/autoware.universe that referenced this pull request Mar 1, 2023
…oundation#2868)

* feat(tier4_planning_rviz_plugin): add drivable area plugin

Signed-off-by: yutaka <purewater0901@gmail.com>

* change default size and color

Signed-off-by: yutaka <purewater0901@gmail.com>

* update

Signed-off-by: yutaka <purewater0901@gmail.com>

* add drivable area to path

Signed-off-by: yutaka <purewater0901@gmail.com>

* update

Signed-off-by: yutaka <purewater0901@gmail.com>

---------

Signed-off-by: yutaka <purewater0901@gmail.com>
1222-takeshi pushed a commit to 1222-takeshi/autoware.universe that referenced this pull request Mar 6, 2023
…oundation#2868)

* feat(tier4_planning_rviz_plugin): add drivable area plugin

Signed-off-by: yutaka <purewater0901@gmail.com>

* change default size and color

Signed-off-by: yutaka <purewater0901@gmail.com>

* update

Signed-off-by: yutaka <purewater0901@gmail.com>

* add drivable area to path

Signed-off-by: yutaka <purewater0901@gmail.com>

* update

Signed-off-by: yutaka <purewater0901@gmail.com>

---------

Signed-off-by: yutaka <purewater0901@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants