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_traffic_light_rviz_plugin): add traffic light publish panel #640

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Apr 6, 2022

Description

Related links

Tests performed

  • please check traffic light signals are published correctly.
  • topic name: /perception/traffic_light_recognition/traffic_signals
  • See the following video for instruction on how to use this.
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.

  • 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.

@satoshi-ota satoshi-ota force-pushed the feature/traffic_light_rviz_plugin branch from e62f7ae to 7502201 Compare April 6, 2022 04:56
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the feature/traffic_light_rviz_plugin branch from 27a3d36 to 8761979 Compare April 6, 2022 05:01
@codecov
Copy link

codecov bot commented Apr 6, 2022

Codecov Report

Merging #640 (77438da) into main (b1e10da) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

❗ Current head 77438da differs from pull request most recent head ccf061a. Consider uploading reports for the commit ccf061a to get more accurate results

@@            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              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.66% <ø> (ø) Carriedforward from 8761979

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

Impacted Files Coverage Δ
...ht_rviz_plugin/src/traffic_light_publish_panel.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1e10da...ccf061a. Read the comment docs.

@satoshi-ota satoshi-ota requested a review from TakaHoribe April 6, 2022 05:02
@yukkysaito
Copy link
Contributor

@satoshi-ota Good!

I have one question 🙏
Does it publish as long as the publish button is held down?
If there is a reset button, I think it is better to continue to publish button when clicked.

@yukkysaito yukkysaito requested review from aohsato and miursh April 6, 2022 06:36
@yukkysaito
Copy link
Contributor

cc @aohsato @miursh

@satoshi-ota
Copy link
Contributor Author

@yukkysaito

Does it publish as long as the publish button is held down?

Yes. it does.

If there is a reset button, I think it is better to continue to publish button when clicked.

It has already been designed that plugin continues to publish signals while PUBLISH button is pushed, and the button is checkable (Keep clicked state until click once more).

@yukkysaito
Copy link
Contributor

@satoshi-ota In the video, it seems to not publish when the button is released.
is it different now?

@satoshi-ota
Copy link
Contributor Author

satoshi-ota commented Apr 6, 2022

@satoshi-ota In the video, it seems to not publish when the button is released. is it different now?

Oh, I misunderstood your comment 🙏 As you said, it stops publishing when PUBLISH button is released. On the other hand, I designed RESET button not to stop publishing but to clear traffic light signal array.

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota
Copy link
Contributor Author

@yukkysaito please check behavior of the panel 🙏

simplescreenrecorder-2022-04-07_08.53.06.mp4

@yukkysaito
Copy link
Contributor

LGTM 👍

yukkysaito
yukkysaito previously approved these changes Apr 7, 2022
Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
Co-authored-by: Yukihiro Saito <yukky.saito@gmail.com>
@satoshi-ota satoshi-ota enabled auto-merge (squash) April 7, 2022 07:39
@yukkysaito yukkysaito self-requested a review April 7, 2022 07:43
@satoshi-ota satoshi-ota merged commit 7ee98f4 into autowarefoundation:main Apr 7, 2022
@satoshi-ota satoshi-ota deleted the feature/traffic_light_rviz_plugin branch April 7, 2022 07:45
Comment on lines +109 to +133
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;
}
Copy link
Contributor

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}

13304490790 pushed a commit to 13304490790/autoware.universe that referenced this pull request Apr 12, 2022
* 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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Apr 25, 2022
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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request May 20, 2022
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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request May 20, 2022
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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request May 30, 2022
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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request May 31, 2022
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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request May 31, 2022
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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request May 31, 2022
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>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Jun 1, 2022
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>
taikitanaka3 referenced this pull request in tier4/autoware.universe Jun 27, 2022
#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>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
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>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
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>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
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>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
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>
iwatake2222 pushed a commit to iwatake2222/autoware.universe that referenced this pull request Jan 17, 2025
…tion#640)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Kazunori-Nakajima pushed a commit to Kazunori-Nakajima/autoware.universe that referenced this pull request Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants