@@ -27,77 +27,80 @@ message MotionRequest
2727 // The data timestamp of the simulation environment. A reference to \c Timestamp message.
2828 //
2929 optional Timestamp timestamp = 2 ;
30-
30+
3131 // Define the option that is used to specify the motion request.
3232 // This must be set. Additionally, the field corresponding to the specified option must be set.
3333 //
3434 optional OutputOptions output_option = 3 ;
35-
35+
3636 // Defines a desired state.
3737 // If the output option is set to DESIRED_STATE, this field must be set.
3838 //
3939 optional DesiredState desired_state = 4 ;
40-
40+
4141 // Defines a desired trajectory.
4242 // If the output option is set to DESIRED_TRAJECTORY, this field must be set.
4343 //
4444 optional Trajectory desired_trajectory = 5 ;
45-
45+
4646 // Define different options for HAD function ouput.
4747 // Each option is corresponds to a field in the message.
4848 //
4949 enum OutputOptions
5050 {
5151 // Desired state calculated by the HAD function.
52+ //
5253 DESIRED_STATE = 0 ;
54+
5355 // Desired trajectory calculated by the HAD function.
56+ //
5457 TRAJECTORY = 1 ;
5558 }
56-
59+
5760 // \brief The desired state is calculated by the HAD function as a result of the motion planning stack.
5861 //
5962 // The actuator management is supposed to reach the desired state at the specified time.
6063 //
6164 message DesiredState
6265 {
6366 // A reference to \c Timestamp message.
64- //
65- optional Timestamp timestamp = 1 ;
66-
67- // intended position to be reached in x, y, and z direction.
68- //
69- optional Vector3d position = 2 ;
70-
71- // intended orientation to be reached containing yaw, pitch and roll angle.
72- //
73- optional Orientation3d orientation = 3 ;
74-
75- // intended velocity to be reached in x, y, and z direction.
76- //
77- // Unit: m/s
78- //
79- optional Vector3d velocity = 4 ;
80-
81- // intended acceleration to be reached in x, y, and z direction.
82- //
83- // Unit: m/s^2
84- //
85- optional Vector3d acceleration = 5 ;
86- }
87-
88- // \brief Defined trajectory desired by the HAD function.
89- //
90- // This trajectory is the result of the trajectory planning step in the HAD function.
91- // The task of the acutator management is to follow this trajectory as closely as possible.
92- // The timestamps inside the trajecotry must be defined in global simulation time.
93- //
94- // \note Trajectory is kept as a separate message for future extensions.
95- //
96- message Trajectory
97- {
98- // consists of intended position (x, y, and z) and orientation (yaw, pitch and roll) of intended state to be reached.
99- // A reference to \c StatePoint message.
100- //
101- repeated StatePoint trajectory_point = 1 ;
67+ //
68+ optional Timestamp timestamp = 1 ;
69+
70+ // intended position to be reached in x, y, and z direction.
71+ //
72+ optional Vector3d position = 2 ;
73+
74+ // intended orientation to be reached containing yaw, pitch and roll angle.
75+ //
76+ optional Orientation3d orientation = 3 ;
77+
78+ // intended velocity to be reached in x, y, and z direction.
79+ //
80+ // Unit: m/s
81+ //
82+ optional Vector3d velocity = 4 ;
83+
84+ // intended acceleration to be reached in x, y, and z direction.
85+ //
86+ // Unit: m/s^2
87+ //
88+ optional Vector3d acceleration = 5 ;
10289 }
90+
91+ // \brief Defined trajectory desired by the HAD function.
92+ //
93+ // This trajectory is the result of the trajectory planning step in the HAD function.
94+ // The task of the acutator management is to follow this trajectory as closely as possible.
95+ // The timestamps inside the trajecotry must be defined in global simulation time.
96+ //
97+ // \note Trajectory is kept as a separate message for future extensions.
98+ //
99+ message Trajectory
100+ {
101+ // consists of intended position (x, y, and z) and orientation (yaw, pitch and roll) of intended state to be reached.
102+ // A reference to \c StatePoint message.
103+ //
104+ repeated StatePoint trajectory_point = 1 ;
105+ }
103106}
0 commit comments