Skip to content

Commit

Permalink
Update osi_motionrequest.proto
Browse files Browse the repository at this point in the history
- added version and timestamp fields
- tried to remove the empty tabs etc. for correct formatting.
  • Loading branch information
Krishna626 authored Feb 1, 2021
1 parent db64e17 commit c1c3182
Showing 1 changed file with 31 additions and 18 deletions.
49 changes: 31 additions & 18 deletions osi_motionrequest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,49 @@ package osi3;
//
message MotionRequest
{
// The interface version used by the sender (simulation environment).
//
optional InterfaceVersion version = 1;

// The data timestamp of the simulation environment. Zero time is arbitrary
// but must be identical for all messages. Zero time does not need to
// coincide with the UNIX epoch. Recommended is the starting time point of
// the simulation.
//
// \note For sensor view data this timestamp coincides both with the
// notional simulation time the data applies to and the time it was sent
// (there is no inherent latency for sensor view data, as opposed to
// sensor data).
//
optional Timestamp timestamp = 2;

//
// Define different options for HAD function ouput.
// Each option is corresponds to a field in the message.
//
enum OutputOptions
{
DESIRED_STATE = 0;
TRAJECTORY = 1;
}

//
// Define the option that is used to specify the motion request.
// This must be set. Additionally, the field corresponding to the specified option must be set.
//
optional OutputOptions output_option = 1;
optional OutputOptions output_option = 3;

//
// Defines a desired state.
// If the output option is set to DESIRED_STATE, this must be provided.
//
optional DesiredState desired_state = 2;
optional DesiredState desired_state = 4;

//
// Defines a desired trajectory.
// If the output option is set to DESIRED_TRAJECTORY, this must be set.
//
optional Trajectory desired_trajectory = 3;
optional Trajectory desired_trajectory = 5;

//
// Define different options for HAD function ouput.
// Each option is corresponds to a field in the message.
//
enum OutputOptions
{
DESIRED_STATE = 0;
TRAJECTORY = 1;
}

//
// \brief The desired state is calculated by the HAD function as a result of the motion planning stack.
Expand Down Expand Up @@ -73,9 +88,8 @@ message MotionRequest
// intended acceleration to be reached in x, y, and z direction
//
optional Vector3d acceleration = 5;

}

//
// \brief Defined trajectory desired by the HAD function. This trajectory is the result of the trajectory planning step
// in the HAD function. The task of the acutator management is to follow this trajectory as closely as possible.
Expand All @@ -88,5 +102,4 @@ message MotionRequest
//
repeated StatePoint trajectory_point = 1;
}

}

0 comments on commit c1c3182

Please sign in to comment.