Skip to content

Commit f5e6992

Browse files
authored
Merge pull request #547 from OpenSimulationInterface/Extension_osi_hostvehicledata_v2
Extension of the hostVehicleData (part 2)
2 parents 3590ea0 + 41946d4 commit f5e6992

File tree

2 files changed

+338
-11
lines changed

2 files changed

+338
-11
lines changed

osi_common.proto

Lines changed: 86 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ package osi3;
1515
//
1616
message Vector3d
1717
{
18-
// The x coordinate.
18+
// The x-coordinate.
1919
//
2020
// Unit: m, m/s, or m/s^2
2121
//
2222
optional double x = 1;
2323

24-
// The y coordinate.
24+
// The y-coordinate.
2525
//
2626
// Unit: m, m/s, or m/s^2
2727
//
2828
optional double y = 2;
2929

30-
// The z coordinate.
30+
// The z-coordinate.
3131
//
3232
// Unit: m, m/s, or m/s^2
3333
//
@@ -43,13 +43,13 @@ message Vector3d
4343
//
4444
message Vector2d
4545
{
46-
// The x coordinate.
46+
// The x-coordinate.
4747
//
4848
// Unit: m, m/s, or m/s^2
4949
//
5050
optional double x = 1;
5151

52-
// The y coordinate.
52+
// The y-coordinate.
5353
//
5454
// Unit: m, m/s, or m/s^2
5555
//
@@ -804,3 +804,84 @@ message ColorCMYK
804804
//
805805
optional double key = 4;
806806
}
807+
808+
//
809+
// \brief A description for the positions of the pedals.
810+
//
811+
message Pedalry
812+
{
813+
// Position of the acceleration pedal.
814+
// Range: 0-1 (Unpressed - fully pressed)
815+
//
816+
optional double pedal_position_acceleration = 1;
817+
818+
// Position of the brake pedal.
819+
// Range: 0-1 (Unpressed - fully pressed)
820+
//
821+
optional double pedal_position_brake = 2;
822+
823+
// Position of the clutch pedal.
824+
// Range: 0-1 (Unpressed - fully pressed)
825+
//
826+
optional double pedal_position_clutch = 3;
827+
}
828+
829+
//
830+
// \brief A description of the steering wheel.
831+
//
832+
message VehicleSteeringWheel
833+
{
834+
// Angle of the steering wheel.
835+
// Zero means the steering wheel is in its center position. A positive value
836+
// means the steering wheel is turned to the left. A negative value
837+
// means the steering wheel is turned to the right of the center position.
838+
//
839+
// Unit: rad
840+
//
841+
optional double angle = 1;
842+
843+
// Angular speed of the steering wheel.
844+
// Zero means the steering wheel stays in its position. A positive value
845+
// means the steering wheel is turned to the left. A negative value
846+
// means the steering wheel is turned to the right.
847+
//
848+
// Unit: rad/s
849+
//
850+
optional double angular_speed = 2;
851+
852+
// Torque of the steering wheel to the hand.
853+
// Zero means there is no force from the steering wheel to the hand of the driver.
854+
// A positive value means that the steering wheel would turn to the left without driver intervention.
855+
// A negative value means that the steering wheel would turn to the right without driver intervention.
856+
//
857+
// Unit: N*m
858+
//
859+
optional double torque = 3;
860+
}
861+
862+
//
863+
// \brief The geodetic position of an object, that is, the center of the 3D bounding box.
864+
//
865+
message GeodeticPosition
866+
{
867+
// Longitude in decimal degrees regarding WGS84.
868+
//
869+
// Unit: Degree
870+
// Range: [-180; 180]
871+
//
872+
optional double longitude = 1;
873+
874+
// Latitude in decimal degrees regarding WGS84.
875+
//
876+
// Unit: Degree
877+
// Range: [-90; 90]
878+
//
879+
optional double latitude = 2;
880+
881+
// Height above sea level regarding EGM96.
882+
//
883+
// Unit: m
884+
// Range: [-300; 10000]
885+
//
886+
optional double altitude = 3;
887+
}

0 commit comments

Comments
 (0)