Skip to content

Commit 34f89d0

Browse files
authored
docs: add documentation to remaining msg/srv fields (#108)
* add comments Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp> * Apply suggestion from @youtalk * Update autoware_adapi_v1_msgs/perception/msg/ObjectClassification.msg --------- Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
1 parent 4b7f543 commit 34f89d0

17 files changed

Lines changed: 86 additions & 31 deletions
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
# Initial pose for localization.
2+
# Empty array: request auto-initialization using GNSS.
3+
# Single element: use as initial guess for localization.
14
geometry_msgs/PoseWithCovarianceStamped[<=1] pose
25
---
3-
uint16 ERROR_UNSAFE = 1
4-
uint16 ERROR_GNSS_SUPPORT = 2
5-
uint16 ERROR_GNSS = 3
6-
uint16 ERROR_ESTIMATION = 4
6+
uint16 ERROR_UNSAFE = 1 # Initialization rejected due to unsafe conditions
7+
uint16 ERROR_GNSS_SUPPORT = 2 # GNSS-based initialization not supported
8+
uint16 ERROR_GNSS = 3 # GNSS initialization failed
9+
uint16 ERROR_ESTIMATION = 4 # Pose estimation failed
710
autoware_adapi_v1_msgs/ResponseStatus status
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
builtin_interfaces/Time stamp
2+
# [m/s^2]. Positive is acceleration, negative is deceleration.
23
float32 acceleration
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
builtin_interfaces/Time stamp
2+
# [m/s]. Negative value is backward.
23
float32 velocity
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Manual control mode to select (e.g., direct control, velocity control)
12
autoware_adapi_v1_msgs/ManualControlMode mode
23
---
34
autoware_adapi_v1_msgs/ResponseStatus status
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Accept vehicle start after motion state becomes STARTING.
2+
# Call this service to confirm that the vehicle should begin moving.
13
---
2-
uint16 ERROR_NOT_STARTING = 1
4+
uint16 ERROR_NOT_STARTING = 1 # Vehicle is not in STARTING state
35
autoware_adapi_v1_msgs/ResponseStatus status
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# Request to change operation mode.
2+
# The target mode is implicit from the service name
3+
# (e.g., /api/operation_mode/change_to_autonomous).
14
---
2-
uint16 ERROR_NOT_AVAILABLE = 1
3-
uint16 ERROR_IN_TRANSITION = 2
5+
uint16 ERROR_NOT_AVAILABLE = 1 # Requested mode is not available
6+
uint16 ERROR_IN_TRANSITION = 2 # Already transitioning to another mode
47
autoware_adapi_v1_msgs/ResponseStatus status
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
uint8 UNKNOWN=0
2-
uint8 CAR=1
3-
uint8 TRUCK=2
4-
uint8 BUS=3
5-
uint8 TRAILER = 4
6-
uint8 MOTORCYCLE = 5
7-
uint8 BICYCLE = 6
8-
uint8 PEDESTRIAN = 7
1+
# Object classification labels
2+
uint8 UNKNOWN = 0 # Unknown or unclassified object
3+
uint8 CAR = 1 # Passenger car
4+
uint8 TRUCK = 2 # Truck or large vehicle
5+
uint8 BUS = 3 # Bus
6+
uint8 TRAILER = 4 # Trailer
7+
uint8 MOTORCYCLE = 5 # Motorcycle
8+
uint8 BICYCLE = 6 # Bicycle
9+
uint8 PEDESTRIAN = 7 # Pedestrian
910

11+
# Classification label (one of the constants above)
1012
uint8 label
13+
# Classification probability. Range: 0.0 to 1.0
1114
float64 probability

autoware_adapi_v1_msgs/planning/msg/SteeringFactor.msg

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,38 @@
22
uint16 UNKNOWN = 0
33

44
# constants for direction
5-
uint16 LEFT = 1
6-
uint16 RIGHT = 2
7-
uint16 STRAIGHT = 3
5+
uint16 LEFT = 1 # Steering or turning left
6+
uint16 RIGHT = 2 # Steering or turning right
7+
uint16 STRAIGHT = 3 # Going straight
88

99
# constants for status
10-
uint16 APPROACHING = 1
11-
uint16 TURNING = 3
10+
uint16 APPROACHING = 1 # Approaching the steering point
11+
uint16 TURNING = 3 # Currently turning/steering
1212

13-
# variables
13+
# Poses defining the steering segment
14+
# pose[0]: start pose of the steering action
15+
# pose[1]: end pose of the steering action
1416
geometry_msgs/Pose[2] pose
17+
18+
# Distances to the steering segment [m]
19+
# distance[0]: distance to start pose
20+
# distance[1]: distance to end pose
1521
float32[2] distance
22+
23+
# Direction of the steering action (LEFT, RIGHT, or STRAIGHT)
1624
uint16 direction
25+
26+
# Current status (APPROACHING or TURNING)
1727
uint16 status
28+
29+
# Behavior type (see PlanningBehavior.msg for typical values, any name is available for user extensions)
1830
string behavior
31+
32+
# Planning sequence identifier
1933
string sequence
34+
35+
# Detailed description of the factor
2036
string detail
37+
38+
# Cooperation status (optional, max 1 element)
2139
autoware_adapi_v1_msgs/CooperationStatus[<=1] cooperation
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Get the current cooperation policies for planning modules.
12
---
23
autoware_adapi_v1_msgs/ResponseStatus status
4+
# List of current cooperation policies
35
autoware_adapi_v1_msgs/CooperationPolicy[] policies
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# List of cooperation commands to apply to planning modules
12
autoware_adapi_v1_msgs/CooperationCommand[] commands
23
---
34
autoware_adapi_v1_msgs/ResponseStatus status

0 commit comments

Comments
 (0)