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

Support TrafficLightGroup in traffic_simulator / simple_sensor_simulator #1357

Merged
merged 24 commits into from
Nov 12, 2024

Conversation

HansRobo
Copy link
Member

@HansRobo HansRobo commented Aug 28, 2024

Description

Abstract

This pull-request supports TrafficLightGroupArrayand add awf/universe/20240605 as architecture_type for it.

Details

supporting TrafficLightGroupArray

Currently, autoware_auto_perception_msgs/TrafficSignalArray and autoware_perception_msgs/TrafficSignalArray are supported for trafffic light in scenario_simulator_v2.
However, I found that this was not enough to keep up with the latest Autoware.

In latest Autoware, autoware_perception_msgs/TrafficSignalArray, the traffic light message supported in scenario_simulator_v2, is not used and autoware_perception_msgs/TrafficLightGroupArray is used instead.

So, this pull-request supports autoware_perception_msgs/TrafficLightGrupArray.

architecture_type design

The architecture_type is designed for switching message type (especially, messages for traffic light) of publishers for various autoware version.

Now, there are 2 architecture_type as below.

  • awf/universe
    • autoware_auto_perception_msgs/TrafficSignalArray for traffic lights
  • awf/universe/20230906
    • autoware_perception_msgs/TrafficSignalArray for traffic lights

In this PR, I added awf/universe/20240605 as below.

  • awf/universe/20240605
    • autoware_perception_msgs/TrafficLightGroupArray for traffic lights

Note

awf/universe will be deleted in near future after dropping support for messages related to Autoware.Auto

References

regression test: OK

Destructive Changes

None

Known Limitations

None

Copy link

github-actions bot commented Aug 28, 2024

Checklist for reviewers ☑️

All references to "You" in the following text refer to the code reviewer.

  • Is this pull request written in a way that is easy to read from a third-party perspective?
  • Is there sufficient information (background, purpose, specification, algorithm description, list of disruptive changes, and migration guide) in the description of this pull request?
  • If this pull request contains a destructive change, does this pull request contain the migration guide?
  • Labels of this pull request are valid?
  • All unit tests/integration tests are included in this pull request? If you think adding test cases is unnecessary, please describe why and cross out this line.
  • The documentation for this pull request is enough? If you think adding documents for this pull request is unnecessary, please describe why and cross out this line.

@HansRobo HansRobo added wait for regression test bump minor If this pull request merged, bump minor version of the scenario_simulator_v2 labels Oct 8, 2024
@HansRobo HansRobo requested a review from yamacir-kit October 9, 2024 07:59
@HansRobo HansRobo marked this pull request as ready for review October 9, 2024 07:59
@HansRobo
Copy link
Member Author

HansRobo commented Nov 5, 2024

Note

This pull-request is waiting for #1406 to be merged

Copy link
Collaborator

@yamacir-kit yamacir-kit left a comment

Choose a reason for hiding this comment

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

Since TrafficLightPublisher<>::publish now receives rclcpp::Time, please delete the data member TrafficLightPublisher<>::clock_ptr_ which is no longer necessary.

@HansRobo
Copy link
Member Author

Since TrafficLightPublisher<>::publish now receives rclcpp::Time, please delete the data member TrafficLightPublisher<>::clock_ptr_ which is no longer necessary.

I fixed in 7e1b4ad (#1357)

@HansRobo HansRobo merged commit 3d63236 into master Nov 12, 2024
13 checks passed
@github-actions github-actions bot deleted the feature/traffic_light_group branch November 12, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump minor If this pull request merged, bump minor version of the scenario_simulator_v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants