Add Push message type with vision detect info message
This commit is contained in:
@@ -280,6 +280,42 @@ struct PACKED StreamCtrlResp {
|
||||
struct Footer footer;
|
||||
};
|
||||
|
||||
struct PACKED VisionRect {
|
||||
union {
|
||||
struct {
|
||||
float x;
|
||||
float y;
|
||||
float w;
|
||||
float h;
|
||||
uint32_t info;
|
||||
} rect;
|
||||
struct {
|
||||
float x;
|
||||
float y;
|
||||
float theta;
|
||||
float c;
|
||||
uint32_t info;
|
||||
} line;
|
||||
struct {
|
||||
float x;
|
||||
float y;
|
||||
float w;
|
||||
float h;
|
||||
uint16_t info;
|
||||
uint16_t distance;
|
||||
} marker;
|
||||
};
|
||||
};
|
||||
|
||||
struct PACKED VisionDetectInfo {
|
||||
struct Header header;
|
||||
uint8_t type;
|
||||
uint8_t status;
|
||||
uint16_t errcode;
|
||||
uint8_t count;
|
||||
struct VisionRect rects[];
|
||||
};
|
||||
|
||||
union Request {
|
||||
struct Header header;
|
||||
struct SetSdkConnectionReq sdkconn;
|
||||
@@ -312,10 +348,14 @@ union Response {
|
||||
struct BlasterFireResp blaster;
|
||||
struct StreamCtrlResp stream;
|
||||
};
|
||||
union Push {
|
||||
struct VisionDetectInfo vision;
|
||||
};
|
||||
union Message {
|
||||
struct Header header;
|
||||
union Request req;
|
||||
union Response resp;
|
||||
union Push push;
|
||||
};
|
||||
|
||||
enum MESSAGEERR {
|
||||
|
||||
Reference in New Issue
Block a user