Skip to content

Commit e13dfd5

Browse files
Krishna626pmai
authored andcommitted
Restructure MotionRequest message based on review
Now DesiredState and Trajectory messages are part of one top level message MotionRequest. Signed-off-by: Radhakrishna Kothamasu <radhakrishna.kothamasu@astech-auto.de>
1 parent 592981c commit e13dfd5

File tree

1 file changed

+67
-50
lines changed

1 file changed

+67
-50
lines changed

osi_motionrequest.proto

Lines changed: 67 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,72 +17,89 @@ package osi3;
1717
//
1818
message MotionRequest
1919
{
20+
// The interface version used by the sender (simulation environment).
21+
//
22+
optional InterfaceVersion version = 1;
23+
24+
// The data timestamp of the simulation environment. Zero time is arbitrary
25+
// but must be identical for all messages. Zero time does not need to
26+
// coincide with the UNIX epoch. Recommended is the starting time point of
27+
// the simulation.
28+
//
29+
// \note For sensor view data this timestamp coincides both with the
30+
// notional simulation time the data applies to and the time it was sent
31+
// (there is no inherent latency for sensor view data, as opposed to
32+
// sensor data).
33+
//
34+
optional Timestamp timestamp = 2;
2035

21-
//
22-
// Define different options for HAD function ouput.
23-
// Each option is corresponds to a field in the message.
24-
//
25-
enum OutputOptions {
26-
DESIRED_STATE = 0;
27-
TRAJECTORY = 1;
28-
}
29-
3036
//
3137
// Define the option that is used to specify the motion request.
3238
// This must be set. Additionally, the field corresponding to the specified option must be set.
3339
//
34-
optional OutputOptions output_option = 1;
35-
40+
optional OutputOptions output_option = 3;
41+
3642
//
3743
// Defines a desired state.
3844
// If the output option is set to DESIRED_STATE, this must be provided.
3945
//
40-
optional DesiredState desired_state = 2;
41-
46+
optional DesiredState desired_state = 4;
47+
4248
//
4349
// Defines a desired trajectory.
4450
// If the output option is set to DESIRED_TRAJECTORY, this must be set.
4551
//
46-
optional Trajectory desired_trajectory = 3;
47-
}
52+
optional Trajectory desired_trajectory = 5;
4853

49-
//
50-
// \brief Defined the trajectory desired by the HAD function. This trajectory is the result of the trajctory planning step
51-
// in the HAD function. The task of the acutator management is to follow the trajectory as close as possible.
52-
// The timestamps inside the trajecotry must be defined in global simulation time.
53-
//
54-
message Trajectory {
55-
repeated StatePoint trajectory_point = 1;
56-
}
54+
//
55+
// Define different options for HAD function ouput.
56+
// Each option is corresponds to a field in the message.
57+
//
58+
enum OutputOptions
59+
{
60+
DESIRED_STATE = 0;
61+
TRAJECTORY = 1;
62+
}
5763

58-
//
59-
// \brief The desired state calculated by the HAD function as a result of the motion planning stack.
60-
// The actuator management is supposed to reach the desired state at the specified time.
61-
//
62-
message DesiredState
63-
{
64-
//
65-
// The timestamp indicates the point in time the state needs to be reached,
66-
// given in global simulation time.
67-
//
68-
optional Timestamp timestamp = 1;
64+
//
65+
// \brief The desired state is calculated by the HAD function as a result of the motion planning stack.
66+
// The actuator management is supposed to reach the desired state at the specified time.
67+
//
68+
message DesiredState
69+
{
70+
//
71+
// The timestamp indicates the point in time the state needs to be reached,
72+
// given in global simulation time.
73+
//
74+
optional Timestamp timestamp = 1;
6975

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 roll, pitch, and yaw angle
75-
//
76-
optional Orientation3d orientation = 3;
77-
78-
// intended velocity to be reached in x, y, and z direction
79-
//
80-
optional Vector3d velocity = 4;
81-
82-
// intended acceleration to be reached in x, y, and z direction
83-
//
84-
optional Vector3d acceleration = 5;
76+
// intended position to be reached in x, y, and z direction.
77+
//
78+
optional Vector3d position = 2;
8579

86-
}
80+
// intended orientation to be reached containing yaw, pitch and roll angle
81+
//
82+
optional Orientation3d orientation = 3;
83+
84+
// intended velocity to be reached in x, y, and z direction
85+
//
86+
optional Vector3d velocity = 4;
8787

88+
// intended acceleration to be reached in x, y, and z direction
89+
//
90+
optional Vector3d acceleration = 5;
91+
}
8892

93+
//
94+
// \brief Defined trajectory desired by the HAD function. This trajectory is the result of the trajectory planning step
95+
// in the HAD function. The task of the acutator management is to follow this trajectory as closely as possible.
96+
// The timestamps inside the trajecotry must be defined in global simulation time.
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+
//
103+
repeated StatePoint trajectory_point = 1;
104+
}
105+
}

0 commit comments

Comments
 (0)