Add Push message type with vision detect info message

opencv
PgSocks 1 year ago
parent 9de914dfa8
commit 103086b1a4

@ -280,6 +280,42 @@ struct PACKED StreamCtrlResp {
struct Footer footer; 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 { union Request {
struct Header header; struct Header header;
struct SetSdkConnectionReq sdkconn; struct SetSdkConnectionReq sdkconn;
@ -312,10 +348,14 @@ union Response {
struct BlasterFireResp blaster; struct BlasterFireResp blaster;
struct StreamCtrlResp stream; struct StreamCtrlResp stream;
}; };
union Push {
struct VisionDetectInfo vision;
};
union Message { union Message {
struct Header header; struct Header header;
union Request req; union Request req;
union Response resp; union Response resp;
union Push push;
}; };
enum MESSAGEERR { enum MESSAGEERR {

Loading…
Cancel
Save