-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: TetsuKawa <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
# redundancy_relay_manger | ||
|
||
## Purpose | ||
|
||
The `redundancy_relay_manager` node subscribes to the election status topics from both the Main ECU and Sub ECU. It manages topic relays between these ECUs, ensuring that when the control path changes, the topic relay from the Main ECU to the Sub ECU stops. | ||
|
||
## Inputs / Outputs | ||
|
||
### Input | ||
|
||
| Name | Type | Description | | ||
| ----------------------------------- | ----------------------------------------- | ----------------------------------------------- | | ||
| `~/input/main/election/status` | `tier4_system_msgs::msg::ElectionStatus` | Election status topic from the Main ECU. | | ||
| `~/input/sub/election/status` | `tier4_system_msgs::msg::ElectionStatus` | Election status topic from the Sub ECU. | | ||
| `~/input/operation_mode/state` | `autoware_adapi_v1_msgs::msg::OperationModeState` | Current operation mode of the system. | | ||
|
||
### Output | ||
|
||
| Name | Type | Description | | ||
| ------------------------------------------------ | ----------------------------------------------- | ------------------------------------------- | | ||
| `~/output/topic_relay_controller_trajectory/operate` | `tier4_system_msgs::srv::ChangeTopicRelayControl` | Service to control trajectory topic relay. | | ||
| `~/output/topic_relay_controller_pose_with_covariance/operate` | `tier4_system_msgs::srv::ChangeTopicRelayControl` | Service to control pose topic relay. | | ||
|
||
## Parameters | ||
|
||
| Name | Type | Default Value | Description | | ||
| --------------------- | ------ | ---------------------------------------- | --------------------------------------------------------------------------- | | ||
| `service_timeout_ms` | `int` | `1000` | Timeout duration (in milliseconds) for service calls. | | ||
|
||
## Assumptions / Known limits | ||
|
||
TBD. | ||
- The node assumes the availability of the election status topics (`~/input/main/election/status` and `~/input/sub/election/status`) and the operation mode state (`~/input/operation_mode/state`). | ||
- The node dynamically enables or disables topic relays based on the `path_info` field in the election status messages. | ||
- The system relies on proper remapping and configuration of input and output topics through the launch file. | ||
- Relay behavior is controlled through service calls, which are subject to timeout if the service server does not respond in time. |