Skip to content

Commit

Permalink
feat(ad-api): add restrictions and options
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <[email protected]>
  • Loading branch information
isamu-takagi committed Aug 29, 2024
1 parent fb1fc8e commit 36917de
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 2 deletions.
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 route is only changed if it is safe to transition to the new route. When set false, the APIs always fail when the using the route.
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 door 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

0 comments on commit 36917de

Please sign in to comment.