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(ad-api): add restrictions and options #602

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/design/autoware-interfaces/ad-api/features/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ See the sections below for supported options and details.
### allow_goal_modification

**[v1.1.0]** Autoware tries to look for an alternate goal when goal is unreachable (e.g., when there is an obstacle on the given goal). When setting a route from the API, applications can choose whether they allow Autoware to adjust goal pose in such situation. When set false, Autoware may get stuck until the given goal becomes reachable.

### allow_while_using_route

**[v1.6.0]** This option only affects the route change APIs. Autoware accepts new route even while the vehicle is using the current route. The APIs fail if it cannot safely transition to new route. When set false, the APIs always fail when the vehicle is using the route.
Copy link
Member

@youtalk youtalk Sep 5, 2024

Choose a reason for hiding this comment

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

The current autoware_adapi_msgs version is v1.3.0. https://github.com/autowarefoundation/autoware_adapi_msgs/tags
So v1.4.0 seems to be better to bump up, doesn't it?

Suggested change
**[v1.6.0]** This option only affects the route change APIs. Autoware accepts new route even while the vehicle is using the current route. The APIs fail if it cannot safely transition to new route. When set false, the APIs always fail when the vehicle is using the route.
**[v1.4.0]** This option only affects the route change APIs. Autoware accepts new route even while the vehicle is using the current route. The APIs fail if it cannot safely transition to new route. When set false, the APIs always fail when the vehicle is using the route.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@youtalk
Your comment made me realize that there are two versions of the AD API: specification and messages. Since we are talking about the specification version here, v1.6.0 is correct. Because the specification version v1.5.0 has already been released.

I think it's necessary to create a correspondence table between specification and message versions, or to update the message version to match the specifications version even if there are no message changes. Which do you think is better?

Copy link
Member

@youtalk youtalk Sep 6, 2024

Choose a reason for hiding this comment

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

update the message version to match the specifications version even if there are no message changes.

I think it is more clear. Please update package.xml to bump version to 1.6.0 even there is no actual updates by next PR.

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ type:

{% extends 'design/autoware-interfaces/templates/autoware-interface.jinja2' %}
{% block description %}
Clear the route.
Clear the route. This API fails when the vehicle is using the route.
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ type:
{% extends 'design/autoware-interfaces/templates/autoware-interface.jinja2' %}
{% block description %}
Set the door command. This API is only available if the vehicle supports software door control.
This API fails if the doors cannot be opened or closed safely.
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: /api/vehicle/status
status: v1.4.0
method: notification
method: realtime stream
type:
name: autoware_adapi_v1_msgs/msg/VehicleStatus
msg:
Expand Down
7 changes: 7 additions & 0 deletions docs/design/autoware-interfaces/ad-api/release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release notes

## v1.6.0 (Not released)

- [Change] Fix communication method of {{ link_ad_api('/api/vehicle/status') }}
- [Change] Add options to [the routing API](./features/routing.md)
- [Change] Add restrictions to {{ link_ad_api('/api/routing/clear_route') }}
- [Change] Add restrictions to {{ link_ad_api('/api/vehicle/doors/command') }}

## v1.5.0

- [New] Add {{ link_ad_api('/api/routing/change_route_points') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ used:
{% block definition %}

```txt
# Please refer to the following pages for details on each option.
# https://autowarefoundation.github.io/autoware-documentation/main/design/autoware-interfaces/ad-api/features/routing/

bool allow_goal_modification
bool allow_while_using_route
```

{% endblock %}
1 change: 1 addition & 0 deletions yaml/autoware-interfaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ types:
autoware_adapi_v1_msgs/msg/RouteOption:
msg:
allow_goal_modification: bool
allow_while_using_route: bool
autoware_adapi_v1_msgs/msg/RoutePrimitive:
msg:
id: int64
Expand Down
Loading