-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(autoware_adapi_v1_msgs): add cooperation (#41)
* feat: add cooperation messages Signed-off-by: Takagi, Isamu <[email protected]> * feat: add cooperation service Signed-off-by: Takagi, Isamu <[email protected]> * feat: merge planning factors Signed-off-by: Takagi, Isamu <[email protected]> * feat: modify constant names Signed-off-by: Takagi, Isamu <[email protected]> * feat: add cooperation default Signed-off-by: Takagi, Isamu <[email protected]> * update fields Signed-off-by: Takagi, Isamu <[email protected]> * upfate default decision service Signed-off-by: Takagi, Isamu <[email protected]> * rename service Signed-off-by: Takagi, Isamu <[email protected]> * update message name Signed-off-by: Takagi, Isamu <[email protected]> * fix constants Signed-off-by: Takagi, Isamu <[email protected]> * add constants for behavior and sequence Signed-off-by: Takagi, Isamu <[email protected]> * update field Signed-off-by: Takagi, Isamu <[email protected]> * fix order Signed-off-by: Takagi, Isamu <[email protected]> * add comment Signed-off-by: Takagi, Isamu <[email protected]> --------- Signed-off-by: Takagi, Isamu <[email protected]>
- Loading branch information
1 parent
fcdd3d0
commit ece0399
Showing
12 changed files
with
99 additions
and
25 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
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,2 @@ | ||
unique_identifier_msgs/UUID uuid | ||
autoware_adapi_v1_msgs/CooperationDecision cooperator |
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,7 @@ | ||
uint8 UNKNOWN = 0 | ||
uint8 DEACTIVATE = 1 | ||
uint8 ACTIVATE = 2 | ||
uint8 AUTONOMOUS = 3 | ||
uint8 UNDECIDED = 4 | ||
|
||
uint8 decision |
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,6 @@ | ||
uint8 OPTIONAL = 1 | ||
uint8 REQUIRED = 2 | ||
|
||
string behavior | ||
string sequence | ||
uint8 policy |
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,4 @@ | ||
unique_identifier_msgs/UUID uuid | ||
autoware_adapi_v1_msgs/CooperationDecision autonomous | ||
autoware_adapi_v1_msgs/CooperationDecision cooperator | ||
bool cancellable |
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 @@ | ||
# These constants are used in the behavior field of the SteeringFactor/VelocityFactor. | ||
string AVOIDANCE = "avoidance" | ||
string CROSSWALK = "crosswalk" | ||
string EMERGENCY_OPERATION = "emergency-operation" | ||
string INTERSECTION = "intersection" | ||
string LANE_CHANGE = "lane-change" | ||
string MERGE = "merge" | ||
string NO_DRIVABLE_LANE = "no-drivable-lane" | ||
string NO_STOPPING_AREA = "no-stopping-area" | ||
string REAR_CHECK = "rear-check" | ||
string ROUTE_OBSTACLE = "route-obstacle" | ||
string SIDEWALK = "sidewalk" | ||
string STOP_SIGN = "stop-sign" | ||
string SURROUNDING_OBSTACLE = "surrounding-obstacle" | ||
string TRAFFIC_SIGNAL = "traffic-signal" | ||
string USER_DEFINED_DETECTION_AREA = "user-defined-attention-area" |
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 @@ | ||
# These constants are used in the sequence field of the SteeringFactor/VelocityFactor. | ||
|
||
# for avoidance behavior | ||
string CHANGE = "change" | ||
string RETURN = "return" |
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,32 +1,41 @@ | ||
# constants for common use | ||
uint16 UNKNOWN = 0 | ||
|
||
# constants for type | ||
uint16 INTERSECTION = 1 | ||
uint16 LANE_CHANGE = 2 | ||
uint16 AVOIDANCE_PATH_CHANGE = 3 | ||
uint16 AVOIDANCE_PATH_RETURN = 4 | ||
uint16 STATION = 5 | ||
uint16 PULL_OUT = 6 # Deprecated. Use START_PLANNER. | ||
uint16 START_PLANNER = 6 | ||
uint16 PULL_OVER = 7 # Deprecated. Use GOAL_PLANNER. | ||
uint16 GOAL_PLANNER = 7 | ||
uint16 EMERGENCY_OPERATION = 8 | ||
|
||
# constants for direction | ||
uint16 LEFT = 1 | ||
uint16 RIGHT = 2 | ||
uint16 STRAIGHT = 3 | ||
|
||
# constants for status | ||
uint16 APPROACHING = 1 | ||
uint16 TRYING = 2 | ||
uint16 TURNING = 3 | ||
|
||
# variables | ||
geometry_msgs/Pose[2] pose | ||
float32[2] distance | ||
uint16 type | ||
uint16 direction | ||
uint16 status | ||
string behavior | ||
string sequence | ||
string detail | ||
autoware_adapi_v1_msgs/CooperationStatus[<=1] cooperation | ||
|
||
|
||
|
||
# deprecated constants for type | ||
uint16 INTERSECTION = 1 | ||
uint16 LANE_CHANGE = 2 | ||
uint16 AVOIDANCE_PATH_CHANGE = 3 | ||
uint16 AVOIDANCE_PATH_RETURN = 4 | ||
uint16 STATION = 5 | ||
uint16 PULL_OUT = 6 # Deprecated. Use START_PLANNER. | ||
uint16 START_PLANNER = 6 | ||
uint16 PULL_OVER = 7 # Deprecated. Use GOAL_PLANNER. | ||
uint16 GOAL_PLANNER = 7 | ||
uint16 EMERGENCY_OPERATION = 8 | ||
|
||
# deprecated constants for status | ||
uint16 TRYING = 2 | ||
|
||
# deprecated variables | ||
uint16 type |
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
3 changes: 3 additions & 0 deletions
3
autoware_adapi_v1_msgs/planning/srv/GetCooperationPolicies.srv
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,3 @@ | ||
--- | ||
autoware_adapi_v1_msgs/ResponseStatus status | ||
autoware_adapi_v1_msgs/CooperationPolicy[] policies |
3 changes: 3 additions & 0 deletions
3
autoware_adapi_v1_msgs/planning/srv/SetCooperationCommands.srv
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,3 @@ | ||
autoware_adapi_v1_msgs/CooperationCommand[] commands | ||
--- | ||
autoware_adapi_v1_msgs/ResponseStatus status |
3 changes: 3 additions & 0 deletions
3
autoware_adapi_v1_msgs/planning/srv/SetCooperationPolicies.srv
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,3 @@ | ||
autoware_adapi_v1_msgs/CooperationPolicy[] policies | ||
--- | ||
autoware_adapi_v1_msgs/ResponseStatus status |