-
Notifications
You must be signed in to change notification settings - Fork 148
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(ad-api): add mrm request #649
Open
isamu-takagi
wants to merge
1
commit into
autowarefoundation:main
Choose a base branch
from
isamu-takagi:feat/adapi-mrm-request
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
18 changes: 18 additions & 0 deletions
18
docs/design/autoware-interfaces/ad-api/list/api/fail_safe/mrm_request/list.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,18 @@ | ||
--- | ||
title: /api/fail_safe/mrm_request/list | ||
status: not released | ||
method: notification | ||
type: | ||
name: autoware_adapi_v1_msgs/msg/MrmRequestList | ||
msg: | ||
- name: requests.user | ||
text: The sender name of the MRM request. | ||
- name: requests.strategy | ||
text: The strategy of the MRM request. | ||
--- | ||
|
||
{% extends 'design/autoware-interfaces/templates/autoware-interface.jinja2' %} | ||
{% block description %} | ||
List the MRM requests from all senders. | ||
For details, see the [fail-safe](../../../../features/fail-safe.md). | ||
{% endblock %} |
21 changes: 21 additions & 0 deletions
21
docs/design/autoware-interfaces/ad-api/list/api/fail_safe/mrm_request/send.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,21 @@ | ||
--- | ||
title: /api/fail_safe/mrm_request/send | ||
status: not released | ||
method: function call | ||
type: | ||
name: autoware_adapi_v1_msgs/srv/SendMrmRequest | ||
req: | ||
- name: request.user | ||
text: The sender name of the MRM request. | ||
- name: request.strategy | ||
text: The strategy of the MRM request. | ||
res: | ||
- name: status | ||
text: response status | ||
--- | ||
|
||
{% extends 'design/autoware-interfaces/templates/autoware-interface.jinja2' %} | ||
{% block description %} | ||
Send the MRM request. | ||
For details, see the [fail-safe](../../../../features/fail-safe.md). | ||
{% 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
21 changes: 21 additions & 0 deletions
21
...esign/autoware-interfaces/ad-api/types/autoware_adapi_v1_msgs/msg/MrmRequest.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,21 @@ | ||
--- | ||
# This file is generated by tools/autoware-interfaces/generate.py | ||
title: autoware_adapi_v1_msgs/msg/MrmRequest | ||
used: | ||
- autoware_adapi_v1_msgs/msg/MrmRequestList | ||
- autoware_adapi_v1_msgs/srv/SendMrmRequest | ||
--- | ||
|
||
{% extends 'design/autoware-interfaces/templates/autoware-data-type.jinja2' %} | ||
{% block definition %} | ||
|
||
```txt | ||
uint16 UNKNOWN = 0 | ||
uint16 CANCEL = 1 # Cancel the MRM request. | ||
uint16 DELEGATE = 2 # Delegate the selection of MRM behavior to Autoware. | ||
|
||
uint16 strategy | ||
string user # The identifier of the request sender. | ||
``` | ||
|
||
{% endblock %} |
16 changes: 16 additions & 0 deletions
16
...n/autoware-interfaces/ad-api/types/autoware_adapi_v1_msgs/msg/MrmRequestList.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,16 @@ | ||
--- | ||
# This file is generated by tools/autoware-interfaces/generate.py | ||
title: autoware_adapi_v1_msgs/msg/MrmRequestList | ||
uses: | ||
- autoware_adapi_v1_msgs/msg/MrmRequest | ||
--- | ||
|
||
{% extends 'design/autoware-interfaces/templates/autoware-data-type.jinja2' %} | ||
{% block definition %} | ||
|
||
```txt | ||
builtin_interfaces/Time stamp | ||
autoware_adapi_v1_msgs/MrmRequest[] requests | ||
``` | ||
|
||
{% 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
18 changes: 18 additions & 0 deletions
18
...n/autoware-interfaces/ad-api/types/autoware_adapi_v1_msgs/srv/SendMrmRequest.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,18 @@ | ||
--- | ||
# This file is generated by tools/autoware-interfaces/generate.py | ||
title: autoware_adapi_v1_msgs/srv/SendMrmRequest | ||
uses: | ||
- autoware_adapi_v1_msgs/msg/MrmRequest | ||
- autoware_adapi_v1_msgs/msg/ResponseStatus | ||
--- | ||
|
||
{% extends 'design/autoware-interfaces/templates/autoware-data-type.jinja2' %} | ||
{% block definition %} | ||
|
||
```txt | ||
autoware_adapi_v1_msgs/MrmRequest[] requests | ||
--- | ||
autoware_adapi_v1_msgs/ResponseStatus status | ||
``` | ||
|
||
{% 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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only have cancel and delegate as startegy.
Were there any considerations about selecting MRM behavior from an application?
In other words, if an application is triggering MRM through this API, then Autoware is not aware of the reason why it should be taking MRM behavior. Is it possible for Autoware to select the appropriate behavior in such situation?
If this is future work, that is okay, but we might want to state that in the description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future, I will consider to add strategies that vehicles achieve MRC as quickly as possible, as comfortable as possible, or etc.