forked from autowarefoundation/autoware-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(adapi): add heartbeat api (autowarefoundation#536)
* feat(ad-api): update planning factor types Signed-off-by: Takagi, Isamu <[email protected]> * feat(ad-api): add heartbeat api Signed-off-by: Takagi, Isamu <[email protected]> --------- Signed-off-by: Takagi, Isamu <[email protected]>
- Loading branch information
1 parent
749668a
commit a1beccb
Showing
8 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
docs/design/autoware-interfaces/ad-api/features/heartbeat.md
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Heartbeat | ||
|
||
## Related API | ||
|
||
- {{ link_ad_api('/api/system/heartbeat') }} | ||
|
||
## Description | ||
|
||
This API is used to check whether applications and Autoware are communicating properly. | ||
The message contains timestamp and sequence number to check for communication delays, order, and losses. |
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
17 changes: 17 additions & 0 deletions
17
docs/design/autoware-interfaces/ad-api/list/api/system/heartbeat.md
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: /api/system/heartbeat | ||
status: not released | ||
method: realtime stream | ||
type: | ||
name: autoware_adapi_v1_msgs/msg/Heartbeat | ||
msg: | ||
- name: stamp | ||
text: Timestamp in Autoware for delay checking. | ||
- name: seq | ||
text: Sequence number for order verification, wraps at 65535. | ||
--- | ||
|
||
{% extends 'design/autoware-interfaces/templates/autoware-interface.jinja2' %} | ||
{% block description %} | ||
The heartbeat frequency is 10 Hz. | ||
{% endblock %} |
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
17 changes: 17 additions & 0 deletions
17
...design/autoware-interfaces/ad-api/types/autoware_adapi_v1_msgs/msg/Heartbeat.md
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
# This file is generated by tools/autoware-interfaces/generate.py | ||
title: autoware_adapi_v1_msgs/msg/Heartbeat | ||
--- | ||
|
||
{% extends 'design/autoware-interfaces/templates/autoware-data-type.jinja2' %} | ||
{% block definition %} | ||
|
||
```txt | ||
# Timestamp in Autoware for delay checking. | ||
builtin_interfaces/Time stamp | ||
# Sequence number for order verification, wraps at 65535. | ||
uint16 seq | ||
``` | ||
|
||
{% endblock %} |
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
5 changes: 5 additions & 0 deletions
5
docs/design/autoware-interfaces/ad-api/use-cases/system-monitoring.md
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# System monitoring | ||
|
||
## Heartbeat | ||
|
||
[Heartbeat](../features/heartbeat.md) is a reference for checking whether communication with Autoware is being performed properly. |
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