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: add topic relay controller #9979

Conversation

TetsuKawa
Copy link
Contributor

@TetsuKawa TetsuKawa commented Jan 20, 2025

Description

This PR adds topic relay controller node which subscribes to a specified topic, remaps it, and republishes it. Additionally, it has the capability to continue publishing the last received value if the subscription stops.
The motivation for developing this node was to control the release of topics from the Main ECU to the Sub ECUs in a redundant system of Main ECUs and Sub ECUs.

Related links

This node requires the following msg.

How was this PR tested?

  1. build autoware
  2. cp and rebuild https://github.com/TetsuKawa/tier4_autoware_msgs/tree/feat/add-change-topic-relay-control-service and feat: add read me to topic relay controller TetsuKawa/autoware.universe#8.
  3. launch set

$ ros2 launch autoware_topic_relay_controller topic_relay_controller.launch.xml
$ ros2 topic pub /test std_msgs/msg/Int32 "{}"
$ ros2 topic echo /remap_test
$ ros2 service call /system/topic_relay_controller_test/operate tier4_system_msgs/srv/ChangeTopicRelayControl "{relay_on: false}"

Screencast.from.2025.01.19.22.04.31.webm

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:system System design and integration. (auto-assigned) labels Jan 20, 2025
Copy link

github-actions bot commented Jan 20, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@TetsuKawa TetsuKawa added tag:require-cuda-build-and-test component:system System design and integration. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed type:documentation Creating or refining documentation. (auto-assigned) component:system System design and integration. (auto-assigned) labels Jan 20, 2025
@TetsuKawa TetsuKawa changed the title DELETE: CI check test: CI check Jan 20, 2025
@github-actions github-actions bot added the type:documentation Creating or refining documentation. (auto-assigned) label Jan 20, 2025
@TetsuKawa TetsuKawa changed the title test: CI check feat: add topic relay controller Jan 20, 2025
takayuki5168 and others added 19 commits January 20, 2025 12:20
* feat(velocity_smoother): introduce diagnostics

Signed-off-by: Takayuki Murooka <[email protected]>

* fix

Signed-off-by: Takayuki Murooka <[email protected]>

---------

Signed-off-by: Takayuki Murooka <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
…ntroduce planning_factor (autowarefoundation#9927)

Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
Co-authored-by: Satoshi OTA <[email protected]>
Co-authored-by: Ryohsuke Mitsudome <[email protected]>
Co-authored-by: satoshi-ota <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
…undation#9928)

* refactor(lane_change): parameterize incoming object yaw threshold

Signed-off-by: Zulfaqar Azmi <[email protected]>

* Readme

Signed-off-by: Zulfaqar Azmi <[email protected]>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/manager.cpp

Co-authored-by: Maxime CLEMENT <[email protected]>

* Add missing parameters

Signed-off-by: Zulfaqar Azmi <[email protected]>

* missing dot

Signed-off-by: Zulfaqar Azmi <[email protected]>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/README.md

Co-authored-by: mkquda <[email protected]>

* update readme

Signed-off-by: Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Zulfaqar Azmi <[email protected]>
Co-authored-by: Maxime CLEMENT <[email protected]>
Co-authored-by: mkquda <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
…utowarefoundation#9943)

* feat(behavior_velocity_planner)!: remove velocity_factor completely

Signed-off-by: Mamoru Sobue <[email protected]>

* minimize diff

Signed-off-by: Mamoru Sobue <[email protected]>

---------

Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: TetsuKawa <[email protected]>
pre-commit-ci bot and others added 6 commits January 20, 2025 12:20
@TetsuKawa TetsuKawa force-pushed the feat/add-read-me-to-topic-relay-controller branch from 394dfaf to 8695334 Compare January 20, 2025 03:20
@github-actions github-actions bot added component:planning Route planning, decision-making, and navigation. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) labels Jan 20, 2025
@TetsuKawa TetsuKawa closed this Jan 20, 2025
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) component:planning Route planning, decision-making, and navigation. (auto-assigned) component:system System design and integration. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) tag:require-cuda-build-and-test type:documentation Creating or refining documentation. (auto-assigned)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants