-
Notifications
You must be signed in to change notification settings - Fork 682
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_traffic_light_rviz_plugin): add traffic light publish panel #640
feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel #640
Conversation
e62f7ae
to
7502201
Compare
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
27a3d36
to
8761979
Compare
Codecov Report
@@ Coverage Diff @@
## main #640 +/- ##
==========================================
- Coverage 10.66% 10.62% -0.04%
==========================================
Files 729 730 +1
Lines 51075 51244 +169
Branches 6572 6572
==========================================
Hits 5445 5445
- Misses 41223 41392 +169
Partials 4407 4407
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
@satoshi-ota Good! I have one question 🙏 |
Yes. it does.
It has already been designed that plugin continues to publish signals while |
@satoshi-ota In the video, it seems to not publish when the button is released. |
Oh, I misunderstood your comment 🙏 As you said, it stops publishing when |
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@yukkysaito please check behavior of the panel 🙏 simplescreenrecorder-2022-04-07_08.53.06.mp4 |
LGTM 👍 |
common/tier4_traffic_light_rviz_plugin/src/traffic_light_publish_panel.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
common/tier4_traffic_light_rviz_plugin/src/traffic_light_publish_panel.hpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
if (color == "RED") { | ||
traffic_light.color = TrafficLight::RED; | ||
} else if (color == "AMBER") { | ||
traffic_light.color = TrafficLight::AMBER; | ||
} else if (color == "GREEN") { | ||
traffic_light.color = TrafficLight::GREEN; | ||
} else if (color == "WHITE") { | ||
traffic_light.color = TrafficLight::WHITE; | ||
} else if (color == "LEFT_ARROW") { | ||
traffic_light.color = TrafficLight::LEFT_ARROW; | ||
} else if (color == "RIGHT_ARROW") { | ||
traffic_light.color = TrafficLight::RIGHT_ARROW; | ||
} else if (color == "UP_ARROW") { | ||
traffic_light.color = TrafficLight::UP_ARROW; | ||
} else if (color == "DOWN_ARROW") { | ||
traffic_light.color = TrafficLight::DOWN_ARROW; | ||
} else if (color == "DOWN_LEFT_ARROW") { | ||
traffic_light.color = TrafficLight::DOWN_LEFT_ARROW; | ||
} else if (color == "DOWN_RIGHT_ARROW") { | ||
traffic_light.color = TrafficLight::DOWN_RIGHT_ARROW; | ||
} else if (color == "FLASHING") { | ||
traffic_light.color = TrafficLight::FLASHING; | ||
} else if (color == "UNKNOWN") { | ||
traffic_light.color = TrafficLight::UNKNOWN; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the correspondence is:
color = {UNKNOWN, RED, AMBER, AMBER, WHITE}
shape = {UNKNOWN, CIRCLE, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW, DOWN_LEFT_ARROW, DOWN_RIGHT_ARROW, CROSS}
status = {UNKNOWN, SOLID_OFF, SOLID_ON, FLASHING}
* split as into pacmod_interface and ssc_interface (autowarefoundation#640) * split as into pacmod_interface and ssc_interface * remove as and move config Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp> * update to support velocity report header (autowarefoundation#655) * update to support velocity report header Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp> * use maybe_unused Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix precommit Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp> * adapt to actuation cmd/status as control msg (autowarefoundation#646) * adapt to actuation cmd/status as control msg * fix readme * fix topics * fix remaing topics * as to pacmod interface * fix vehicle status * add header to twist * revert gyro_odometer_change * revert twist topic change * revert unchanged package * [pacmod_interface]fix topic name (autowarefoundation#651) * fix topic name * fix ns * fix * auto/revert cmd converter (autowarefoundation#680) * Revert "move cmd converters to control pkg (autowarefoundation#642)" This reverts commit 9f733b5. * fix topic * add as doc (autowarefoundation#616) * add as doc * pacmod_msgs -> pacmod3_msgs * fix typo * update topic names of README.md * update README.md Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp> * Auto/steering wheel status (autowarefoundation#719) * unused * add stering wheel status * fix current steer * publish turn cmd (autowarefoundation#749) * fix typo Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com> Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
autowarefoundation#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
tier4#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
tier4#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
tier4#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
tier4#640) * feat(tier4_traffic_light_rviz_plugin): add traffic light publish panel Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_traffic_light_rviz_plugin): fix behavior Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix: lisense description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> * fix: lisence description Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com> Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
…tion#640) Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
chore: sync awf-latest
Description
Related links
Tests performed
/perception/traffic_light_recognition/traffic_signals
simplescreenrecorder-2022-04-06_13.42.59.mp4
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.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.