pixhawk.proto 2.49 KB
Newer Older
1 2
package px;

hengli's avatar
hengli committed
3 4 5 6 7 8
message HeaderInfo {
    required int32 source_sysid = 1;
    required int32 source_compid = 2;
    required double timestamp = 3; // in seconds
}

9 10 11 12 13 14 15 16
message PointCloudXYZI {
    message PointXYZI {
        required float x = 1;
        required float y = 2;
        required float z = 3;
        required float intensity = 4;
    }

hengli's avatar
hengli committed
17 18
    required HeaderInfo header = 1;
    repeated PointXYZI points = 2;
19 20 21 22 23 24 25 26 27 28
}

message PointCloudXYZRGB {
    message PointXYZRGB {
        required float x = 1;
        required float y = 2;
        required float z = 3;
        required float rgb = 4;
    }

hengli's avatar
hengli committed
29 30
    required HeaderInfo header = 1;
    repeated PointXYZRGB points = 2;
31 32 33 34
}

message RGBDImage
{
hengli's avatar
hengli committed
35 36 37 38 39 40 41 42 43 44 45 46
    required HeaderInfo header = 1;

    required uint32 cols = 2;		///< Number of columns in image(s)
    required uint32 rows = 3;		///< Number of rows in image(s)
    required uint32 step1 = 4;		///< Step (stride) of image 1
    required uint32 type1 = 5;		///< Type of image 1
    required bytes imageData1 = 6;
    required uint32 step2 = 7;		///< Step (stride) of image 2
    required uint32 type2 = 8;		///< Type of image 2
    required bytes imageData2 = 9;
    optional uint32 camera_config = 10;	///< PxSHM::Camera enumeration
    optional uint32 camera_type = 11;	///< PxSHM::CameraType enumeration
47 48 49 50 51 52 53 54 55 56 57 58
    optional float roll = 12;
    optional float pitch = 13;
    optional float yaw = 14;
    optional float lon = 15;
    optional float lat = 16;
    optional float alt = 17;
    optional float ground_x = 18;
    optional float ground_y = 19;
    optional float ground_z = 20;
    repeated float camera_matrix = 21;
}

hengli's avatar
hengli committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
message Obstacle
{
    optional float x = 1;
    optional float y = 2;
    optional float z = 3;
    optional float length = 4;
    optional float width = 5;
    optional float height = 6;
}

message ObstacleList
{
    required HeaderInfo header = 1;

    repeated Obstacle obstacles = 2;
}

message ObstacleMap
{
    required HeaderInfo header = 1;

    required int32 type = 2;

    optional float resolution = 3;
    optional int32 rows = 4;
    optional int32 cols = 5;
    optional int32 mapR0 = 6;
    optional int32 mapC0 = 7;
    optional int32 arrayR0 = 8;
    optional int32 arrayC0 = 9;
    
    optional bytes data = 10;
}

message Waypoint
{
    required double x = 1;
    required double y = 2;
    optional double z = 3;
    optional double roll = 4;
    optional double pitch = 5;
    optional double yaw = 6;
}

message Path
{
    required HeaderInfo header = 1;

    repeated Waypoint waypoints = 2;
}