Documentation ¶
Overview ¶
Package sensorpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterSensorServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSensorServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SensorServiceClient) error
- func RegisterSensorServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSensorServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SensorServiceServer) error
- func RegisterSensorServiceServer(s *grpc.Server, srv SensorServiceServer)
- type DataAgv
- func (*DataAgv) Descriptor() ([]byte, []int)
- func (m *DataAgv) GetCardId() string
- func (m *DataAgv) GetData() []bool
- func (*DataAgv) ProtoMessage()
- func (m *DataAgv) Reset()
- func (m *DataAgv) String() string
- func (m *DataAgv) XXX_DiscardUnknown()
- func (m *DataAgv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataAgv) XXX_Merge(src proto.Message)
- func (m *DataAgv) XXX_Size() int
- func (m *DataAgv) XXX_Unmarshal(b []byte) error
- type DataObs
- func (*DataObs) Descriptor() ([]byte, []int)
- func (m *DataObs) GetData() map[string]int32
- func (*DataObs) ProtoMessage()
- func (m *DataObs) Reset()
- func (m *DataObs) String() string
- func (m *DataObs) XXX_DiscardUnknown()
- func (m *DataObs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataObs) XXX_Merge(src proto.Message)
- func (m *DataObs) XXX_Size() int
- func (m *DataObs) XXX_Unmarshal(b []byte) error
- type DataTouch
- func (*DataTouch) Descriptor() ([]byte, []int)
- func (m *DataTouch) GetTouched() map[string]bool
- func (*DataTouch) ProtoMessage()
- func (m *DataTouch) Reset()
- func (m *DataTouch) String() string
- func (m *DataTouch) XXX_DiscardUnknown()
- func (m *DataTouch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataTouch) XXX_Merge(src proto.Message)
- func (m *DataTouch) XXX_Size() int
- func (m *DataTouch) XXX_Unmarshal(b []byte) error
- type DataType
- type DetectDirection
- type DetectDistance
- type GetDetectRequest
- func (*GetDetectRequest) Descriptor() ([]byte, []int)
- func (*GetDetectRequest) ProtoMessage()
- func (m *GetDetectRequest) Reset()
- func (m *GetDetectRequest) String() string
- func (m *GetDetectRequest) XXX_DiscardUnknown()
- func (m *GetDetectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDetectRequest) XXX_Merge(src proto.Message)
- func (m *GetDetectRequest) XXX_Size() int
- func (m *GetDetectRequest) XXX_Unmarshal(b []byte) error
- type GetDetectResponse
- func (*GetDetectResponse) Descriptor() ([]byte, []int)
- func (m *GetDetectResponse) GetDirection() DetectDirection
- func (m *GetDetectResponse) GetDistance() DetectDistance
- func (*GetDetectResponse) ProtoMessage()
- func (m *GetDetectResponse) Reset()
- func (m *GetDetectResponse) String() string
- func (m *GetDetectResponse) XXX_DiscardUnknown()
- func (m *GetDetectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDetectResponse) XXX_Merge(src proto.Message)
- func (m *GetDetectResponse) XXX_Size() int
- func (m *GetDetectResponse) XXX_Unmarshal(b []byte) error
- type GetMotionInductionRequest
- func (*GetMotionInductionRequest) Descriptor() ([]byte, []int)
- func (*GetMotionInductionRequest) ProtoMessage()
- func (m *GetMotionInductionRequest) Reset()
- func (m *GetMotionInductionRequest) String() string
- func (m *GetMotionInductionRequest) XXX_DiscardUnknown()
- func (m *GetMotionInductionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetMotionInductionRequest) XXX_Merge(src proto.Message)
- func (m *GetMotionInductionRequest) XXX_Size() int
- func (m *GetMotionInductionRequest) XXX_Unmarshal(b []byte) error
- type GetMotionInductionResponse
- func (*GetMotionInductionResponse) Descriptor() ([]byte, []int)
- func (m *GetMotionInductionResponse) GetLeft() bool
- func (m *GetMotionInductionResponse) GetRight() bool
- func (*GetMotionInductionResponse) ProtoMessage()
- func (m *GetMotionInductionResponse) Reset()
- func (m *GetMotionInductionResponse) String() string
- func (m *GetMotionInductionResponse) XXX_DiscardUnknown()
- func (m *GetMotionInductionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetMotionInductionResponse) XXX_Merge(src proto.Message)
- func (m *GetMotionInductionResponse) XXX_Size() int
- func (m *GetMotionInductionResponse) XXX_Unmarshal(b []byte) error
- type GetTouchRequest
- func (*GetTouchRequest) Descriptor() ([]byte, []int)
- func (*GetTouchRequest) ProtoMessage()
- func (m *GetTouchRequest) Reset()
- func (m *GetTouchRequest) String() string
- func (m *GetTouchRequest) XXX_DiscardUnknown()
- func (m *GetTouchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTouchRequest) XXX_Merge(src proto.Message)
- func (m *GetTouchRequest) XXX_Size() int
- func (m *GetTouchRequest) XXX_Unmarshal(b []byte) error
- type GetTouchResponse
- func (*GetTouchResponse) Descriptor() ([]byte, []int)
- func (m *GetTouchResponse) GetHandLeft() bool
- func (m *GetTouchResponse) GetHandRight() bool
- func (m *GetTouchResponse) GetHead() bool
- func (*GetTouchResponse) ProtoMessage()
- func (m *GetTouchResponse) Reset()
- func (m *GetTouchResponse) String() string
- func (m *GetTouchResponse) XXX_DiscardUnknown()
- func (m *GetTouchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTouchResponse) XXX_Merge(src proto.Message)
- func (m *GetTouchResponse) XXX_Size() int
- func (m *GetTouchResponse) XXX_Unmarshal(b []byte) error
- type RawRequest
- func (*RawRequest) Descriptor() ([]byte, []int)
- func (*RawRequest) ProtoMessage()
- func (m *RawRequest) Reset()
- func (m *RawRequest) String() string
- func (m *RawRequest) XXX_DiscardUnknown()
- func (m *RawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RawRequest) XXX_Merge(src proto.Message)
- func (m *RawRequest) XXX_Size() int
- func (m *RawRequest) XXX_Unmarshal(b []byte) error
- type RawResponse
- func (*RawResponse) Descriptor() ([]byte, []int)
- func (m *RawResponse) GetAgv() *DataAgv
- func (m *RawResponse) GetDtype() DataType
- func (m *RawResponse) GetObs() *DataObs
- func (m *RawResponse) GetTouch() *DataTouch
- func (*RawResponse) ProtoMessage()
- func (m *RawResponse) Reset()
- func (m *RawResponse) String() string
- func (m *RawResponse) XXX_DiscardUnknown()
- func (m *RawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RawResponse) XXX_Merge(src proto.Message)
- func (m *RawResponse) XXX_Size() int
- func (m *RawResponse) XXX_Unmarshal(b []byte) error
- type SensorServiceClient
- type SensorServiceServer
- type SensorService_GetDetectClient
- type SensorService_GetDetectServer
- type SensorService_GetMotionInductionClient
- type SensorService_GetMotionInductionServer
- type SensorService_GetTouchClient
- type SensorService_GetTouchServer
- type SensorService_RawClient
- type SensorService_RawServer
- type UnimplementedSensorServiceServer
- func (*UnimplementedSensorServiceServer) GetDetect(req *GetDetectRequest, srv SensorService_GetDetectServer) error
- func (*UnimplementedSensorServiceServer) GetMotionInduction(req *GetMotionInductionRequest, srv SensorService_GetMotionInductionServer) error
- func (*UnimplementedSensorServiceServer) GetTouch(req *GetTouchRequest, srv SensorService_GetTouchServer) error
- func (*UnimplementedSensorServiceServer) Raw(req *RawRequest, srv SensorService_RawServer) error
- type UpdateReq
- func (*UpdateReq) Descriptor() ([]byte, []int)
- func (m *UpdateReq) GetAgv() *DataAgv
- func (m *UpdateReq) GetDtype() DataType
- func (m *UpdateReq) GetObs() *DataObs
- func (m *UpdateReq) GetTouch() *DataTouch
- func (*UpdateReq) ProtoMessage()
- func (m *UpdateReq) Reset()
- func (m *UpdateReq) String() string
- func (m *UpdateReq) XXX_DiscardUnknown()
- func (m *UpdateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateReq) XXX_Merge(src proto.Message)
- func (m *UpdateReq) XXX_Size() int
- func (m *UpdateReq) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var DataType_name = map[int32]string{
0: "UNKNOWN",
1: "OBS",
2: "AGV",
4: "TOUCH",
}
var DataType_value = map[string]int32{
"UNKNOWN": 0,
"OBS": 1,
"AGV": 2,
"TOUCH": 4,
}
var DetectDirection_name = map[int32]string{
0: "_ZERO_DIR",
1: "RELEASE_DIR",
2: "LEFT",
3: "CENTER",
4: "RIGHT",
}
var DetectDirection_value = map[string]int32{
"_ZERO_DIR": 0,
"RELEASE_DIR": 1,
"LEFT": 2,
"CENTER": 3,
"RIGHT": 4,
}
var DetectDistance_name = map[int32]string{
0: "_ZERO_DIS",
1: "RELEASE_DIS",
2: "CLOSE",
3: "MEDIUM",
4: "LONG",
}
var DetectDistance_value = map[string]int32{
"_ZERO_DIS": 0,
"RELEASE_DIS": 1,
"CLOSE": 2,
"MEDIUM": 3,
"LONG": 4,
}
Functions ¶
func RegisterSensorServiceHandler ¶
func RegisterSensorServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSensorServiceHandler registers the http handlers for service SensorService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSensorServiceHandlerClient ¶
func RegisterSensorServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SensorServiceClient) error
RegisterSensorServiceHandlerClient registers the http handlers for service SensorService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SensorServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SensorServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SensorServiceClient" to call the correct interceptors.
func RegisterSensorServiceHandlerFromEndpoint ¶
func RegisterSensorServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSensorServiceHandlerFromEndpoint is same as RegisterSensorServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSensorServiceHandlerServer ¶
func RegisterSensorServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SensorServiceServer) error
RegisterSensorServiceHandlerServer registers the http handlers for service SensorService to "mux". UnaryRPC :call SensorServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterSensorServiceServer ¶
func RegisterSensorServiceServer(s *grpc.Server, srv SensorServiceServer)
Types ¶
type DataAgv ¶
type DataAgv struct { CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"` Data []bool `protobuf:"varint,2,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
agv数据 card_id: 感应卡点id data: 是否为激活状态列表
func (*DataAgv) Descriptor ¶
func (*DataAgv) ProtoMessage ¶
func (*DataAgv) ProtoMessage()
func (*DataAgv) XXX_DiscardUnknown ¶
func (m *DataAgv) XXX_DiscardUnknown()
func (*DataAgv) XXX_Marshal ¶
func (*DataAgv) XXX_Unmarshal ¶
type DataObs ¶
type DataObs struct { Data map[string]int32 `` /* 150-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
避障传感器数据 e.g. {"topRight: 30", "bottomMiddle": 10} *topRight等key非最终使用, 仅作为示例
func (*DataObs) Descriptor ¶
func (*DataObs) ProtoMessage ¶
func (*DataObs) ProtoMessage()
func (*DataObs) XXX_DiscardUnknown ¶
func (m *DataObs) XXX_DiscardUnknown()
func (*DataObs) XXX_Marshal ¶
func (*DataObs) XXX_Unmarshal ¶
type DataTouch ¶
type DataTouch struct { Touched map[string]bool `` /* 156-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
触摸数据 e.g. {hand_left: false, hand_right: true, head: true}
func (*DataTouch) Descriptor ¶
func (*DataTouch) GetTouched ¶
func (*DataTouch) ProtoMessage ¶
func (*DataTouch) ProtoMessage()
func (*DataTouch) XXX_DiscardUnknown ¶
func (m *DataTouch) XXX_DiscardUnknown()
func (*DataTouch) XXX_Marshal ¶
func (*DataTouch) XXX_Unmarshal ¶
type DetectDirection ¶
type DetectDirection int32
检测方向
const ( DetectDirection__ZERO_DIR DetectDirection = 0 DetectDirection_RELEASE_DIR DetectDirection = 1 DetectDirection_LEFT DetectDirection = 2 DetectDirection_CENTER DetectDirection = 3 DetectDirection_RIGHT DetectDirection = 4 )
func (DetectDirection) EnumDescriptor ¶
func (DetectDirection) EnumDescriptor() ([]byte, []int)
func (DetectDirection) String ¶
func (x DetectDirection) String() string
type DetectDistance ¶
type DetectDistance int32
检测距离
const ( DetectDistance__ZERO_DIS DetectDistance = 0 DetectDistance_RELEASE_DIS DetectDistance = 1 DetectDistance_CLOSE DetectDistance = 2 DetectDistance_MEDIUM DetectDistance = 3 DetectDistance_LONG DetectDistance = 4 )
func (DetectDistance) EnumDescriptor ¶
func (DetectDistance) EnumDescriptor() ([]byte, []int)
func (DetectDistance) String ¶
func (x DetectDistance) String() string
type GetDetectRequest ¶
type GetDetectRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetDetectRequest) Descriptor ¶
func (*GetDetectRequest) Descriptor() ([]byte, []int)
func (*GetDetectRequest) ProtoMessage ¶
func (*GetDetectRequest) ProtoMessage()
func (*GetDetectRequest) Reset ¶
func (m *GetDetectRequest) Reset()
func (*GetDetectRequest) String ¶
func (m *GetDetectRequest) String() string
func (*GetDetectRequest) XXX_DiscardUnknown ¶
func (m *GetDetectRequest) XXX_DiscardUnknown()
func (*GetDetectRequest) XXX_Marshal ¶
func (m *GetDetectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDetectRequest) XXX_Merge ¶
func (m *GetDetectRequest) XXX_Merge(src proto.Message)
func (*GetDetectRequest) XXX_Size ¶
func (m *GetDetectRequest) XXX_Size() int
func (*GetDetectRequest) XXX_Unmarshal ¶
func (m *GetDetectRequest) XXX_Unmarshal(b []byte) error
type GetDetectResponse ¶
type GetDetectResponse struct { Direction DetectDirection `protobuf:"varint,1,opt,name=direction,proto3,enum=sensorService.DetectDirection" json:"direction,omitempty"` Distance DetectDistance `protobuf:"varint,2,opt,name=distance,proto3,enum=sensorService.DetectDistance" json:"distance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
传感器状态流数据 stype: 数据类型
func (*GetDetectResponse) Descriptor ¶
func (*GetDetectResponse) Descriptor() ([]byte, []int)
func (*GetDetectResponse) GetDirection ¶
func (m *GetDetectResponse) GetDirection() DetectDirection
func (*GetDetectResponse) GetDistance ¶
func (m *GetDetectResponse) GetDistance() DetectDistance
func (*GetDetectResponse) ProtoMessage ¶
func (*GetDetectResponse) ProtoMessage()
func (*GetDetectResponse) Reset ¶
func (m *GetDetectResponse) Reset()
func (*GetDetectResponse) String ¶
func (m *GetDetectResponse) String() string
func (*GetDetectResponse) XXX_DiscardUnknown ¶
func (m *GetDetectResponse) XXX_DiscardUnknown()
func (*GetDetectResponse) XXX_Marshal ¶
func (m *GetDetectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDetectResponse) XXX_Merge ¶
func (m *GetDetectResponse) XXX_Merge(src proto.Message)
func (*GetDetectResponse) XXX_Size ¶
func (m *GetDetectResponse) XXX_Size() int
func (*GetDetectResponse) XXX_Unmarshal ¶
func (m *GetDetectResponse) XXX_Unmarshal(b []byte) error
type GetMotionInductionRequest ¶
type GetMotionInductionRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetMotionInductionRequest) Descriptor ¶
func (*GetMotionInductionRequest) Descriptor() ([]byte, []int)
func (*GetMotionInductionRequest) ProtoMessage ¶
func (*GetMotionInductionRequest) ProtoMessage()
func (*GetMotionInductionRequest) Reset ¶
func (m *GetMotionInductionRequest) Reset()
func (*GetMotionInductionRequest) String ¶
func (m *GetMotionInductionRequest) String() string
func (*GetMotionInductionRequest) XXX_DiscardUnknown ¶
func (m *GetMotionInductionRequest) XXX_DiscardUnknown()
func (*GetMotionInductionRequest) XXX_Marshal ¶
func (m *GetMotionInductionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMotionInductionRequest) XXX_Merge ¶
func (m *GetMotionInductionRequest) XXX_Merge(src proto.Message)
func (*GetMotionInductionRequest) XXX_Size ¶
func (m *GetMotionInductionRequest) XXX_Size() int
func (*GetMotionInductionRequest) XXX_Unmarshal ¶
func (m *GetMotionInductionRequest) XXX_Unmarshal(b []byte) error
type GetMotionInductionResponse ¶
type GetMotionInductionResponse struct { Left bool `protobuf:"varint,1,opt,name=left,proto3" json:"left,omitempty"` Right bool `protobuf:"varint,2,opt,name=right,proto3" json:"right,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetMotionInductionResponse) Descriptor ¶
func (*GetMotionInductionResponse) Descriptor() ([]byte, []int)
func (*GetMotionInductionResponse) GetLeft ¶
func (m *GetMotionInductionResponse) GetLeft() bool
func (*GetMotionInductionResponse) GetRight ¶
func (m *GetMotionInductionResponse) GetRight() bool
func (*GetMotionInductionResponse) ProtoMessage ¶
func (*GetMotionInductionResponse) ProtoMessage()
func (*GetMotionInductionResponse) Reset ¶
func (m *GetMotionInductionResponse) Reset()
func (*GetMotionInductionResponse) String ¶
func (m *GetMotionInductionResponse) String() string
func (*GetMotionInductionResponse) XXX_DiscardUnknown ¶
func (m *GetMotionInductionResponse) XXX_DiscardUnknown()
func (*GetMotionInductionResponse) XXX_Marshal ¶
func (m *GetMotionInductionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMotionInductionResponse) XXX_Merge ¶
func (m *GetMotionInductionResponse) XXX_Merge(src proto.Message)
func (*GetMotionInductionResponse) XXX_Size ¶
func (m *GetMotionInductionResponse) XXX_Size() int
func (*GetMotionInductionResponse) XXX_Unmarshal ¶
func (m *GetMotionInductionResponse) XXX_Unmarshal(b []byte) error
type GetTouchRequest ¶
type GetTouchRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTouchRequest) Descriptor ¶
func (*GetTouchRequest) Descriptor() ([]byte, []int)
func (*GetTouchRequest) ProtoMessage ¶
func (*GetTouchRequest) ProtoMessage()
func (*GetTouchRequest) Reset ¶
func (m *GetTouchRequest) Reset()
func (*GetTouchRequest) String ¶
func (m *GetTouchRequest) String() string
func (*GetTouchRequest) XXX_DiscardUnknown ¶
func (m *GetTouchRequest) XXX_DiscardUnknown()
func (*GetTouchRequest) XXX_Marshal ¶
func (m *GetTouchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTouchRequest) XXX_Merge ¶
func (m *GetTouchRequest) XXX_Merge(src proto.Message)
func (*GetTouchRequest) XXX_Size ¶
func (m *GetTouchRequest) XXX_Size() int
func (*GetTouchRequest) XXX_Unmarshal ¶
func (m *GetTouchRequest) XXX_Unmarshal(b []byte) error
type GetTouchResponse ¶
type GetTouchResponse struct { HandLeft bool `protobuf:"varint,1,opt,name=hand_left,json=handLeft,proto3" json:"hand_left,omitempty"` HandRight bool `protobuf:"varint,2,opt,name=hand_right,json=handRight,proto3" json:"hand_right,omitempty"` Head bool `protobuf:"varint,3,opt,name=head,proto3" json:"head,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
触摸状态流数据
func (*GetTouchResponse) Descriptor ¶
func (*GetTouchResponse) Descriptor() ([]byte, []int)
func (*GetTouchResponse) GetHandLeft ¶
func (m *GetTouchResponse) GetHandLeft() bool
func (*GetTouchResponse) GetHandRight ¶
func (m *GetTouchResponse) GetHandRight() bool
func (*GetTouchResponse) GetHead ¶
func (m *GetTouchResponse) GetHead() bool
func (*GetTouchResponse) ProtoMessage ¶
func (*GetTouchResponse) ProtoMessage()
func (*GetTouchResponse) Reset ¶
func (m *GetTouchResponse) Reset()
func (*GetTouchResponse) String ¶
func (m *GetTouchResponse) String() string
func (*GetTouchResponse) XXX_DiscardUnknown ¶
func (m *GetTouchResponse) XXX_DiscardUnknown()
func (*GetTouchResponse) XXX_Marshal ¶
func (m *GetTouchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTouchResponse) XXX_Merge ¶
func (m *GetTouchResponse) XXX_Merge(src proto.Message)
func (*GetTouchResponse) XXX_Size ¶
func (m *GetTouchResponse) XXX_Size() int
func (*GetTouchResponse) XXX_Unmarshal ¶
func (m *GetTouchResponse) XXX_Unmarshal(b []byte) error
type RawRequest ¶
type RawRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RawRequest) Descriptor ¶
func (*RawRequest) Descriptor() ([]byte, []int)
func (*RawRequest) ProtoMessage ¶
func (*RawRequest) ProtoMessage()
func (*RawRequest) Reset ¶
func (m *RawRequest) Reset()
func (*RawRequest) String ¶
func (m *RawRequest) String() string
func (*RawRequest) XXX_DiscardUnknown ¶
func (m *RawRequest) XXX_DiscardUnknown()
func (*RawRequest) XXX_Marshal ¶
func (m *RawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RawRequest) XXX_Merge ¶
func (m *RawRequest) XXX_Merge(src proto.Message)
func (*RawRequest) XXX_Size ¶
func (m *RawRequest) XXX_Size() int
func (*RawRequest) XXX_Unmarshal ¶
func (m *RawRequest) XXX_Unmarshal(b []byte) error
type RawResponse ¶
type RawResponse struct { Dtype DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=sensorService.DataType" json:"dtype,omitempty"` Obs *DataObs `protobuf:"bytes,2,opt,name=obs,proto3" json:"obs,omitempty"` Agv *DataAgv `protobuf:"bytes,3,opt,name=agv,proto3" json:"agv,omitempty"` Touch *DataTouch `protobuf:"bytes,5,opt,name=touch,proto3" json:"touch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
原始数据返回 dtype: 传感器更新数据类型
func (*RawResponse) Descriptor ¶
func (*RawResponse) Descriptor() ([]byte, []int)
func (*RawResponse) GetAgv ¶
func (m *RawResponse) GetAgv() *DataAgv
func (*RawResponse) GetDtype ¶
func (m *RawResponse) GetDtype() DataType
func (*RawResponse) GetObs ¶
func (m *RawResponse) GetObs() *DataObs
func (*RawResponse) GetTouch ¶
func (m *RawResponse) GetTouch() *DataTouch
func (*RawResponse) ProtoMessage ¶
func (*RawResponse) ProtoMessage()
func (*RawResponse) Reset ¶
func (m *RawResponse) Reset()
func (*RawResponse) String ¶
func (m *RawResponse) String() string
func (*RawResponse) XXX_DiscardUnknown ¶
func (m *RawResponse) XXX_DiscardUnknown()
func (*RawResponse) XXX_Marshal ¶
func (m *RawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RawResponse) XXX_Merge ¶
func (m *RawResponse) XXX_Merge(src proto.Message)
func (*RawResponse) XXX_Size ¶
func (m *RawResponse) XXX_Size() int
func (*RawResponse) XXX_Unmarshal ¶
func (m *RawResponse) XXX_Unmarshal(b []byte) error
type SensorServiceClient ¶
type SensorServiceClient interface { // GetDetect 计算前方障碍的距离与方法 // // 此计算方法受GetMotionInduction数据影响 GetDetect(ctx context.Context, in *GetDetectRequest, opts ...grpc.CallOption) (SensorService_GetDetectClient, error) // GetMotionInduction 获取动态感应数据 GetMotionInduction(ctx context.Context, in *GetMotionInductionRequest, opts ...grpc.CallOption) (SensorService_GetMotionInductionClient, error) // GetTouch 获取触摸感应数据 // // 目前支持头部与手部的触摸 GetTouch(ctx context.Context, in *GetTouchRequest, opts ...grpc.CallOption) (SensorService_GetTouchClient, error) // Raw 内部传感器数据 // // 此方法为底层数据方法,用于上层的计算与调试,通常开发用户不应使用此方法 Raw(ctx context.Context, in *RawRequest, opts ...grpc.CallOption) (SensorService_RawClient, error) }
SensorServiceClient is the client API for SensorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSensorServiceClient ¶
func NewSensorServiceClient(cc grpc.ClientConnInterface) SensorServiceClient
type SensorServiceServer ¶
type SensorServiceServer interface { // GetDetect 计算前方障碍的距离与方法 // // 此计算方法受GetMotionInduction数据影响 GetDetect(*GetDetectRequest, SensorService_GetDetectServer) error // GetMotionInduction 获取动态感应数据 GetMotionInduction(*GetMotionInductionRequest, SensorService_GetMotionInductionServer) error // GetTouch 获取触摸感应数据 // // 目前支持头部与手部的触摸 GetTouch(*GetTouchRequest, SensorService_GetTouchServer) error // Raw 内部传感器数据 // // 此方法为底层数据方法,用于上层的计算与调试,通常开发用户不应使用此方法 Raw(*RawRequest, SensorService_RawServer) error }
SensorServiceServer is the server API for SensorService service.
type SensorService_GetDetectClient ¶
type SensorService_GetDetectClient interface { Recv() (*GetDetectResponse, error) grpc.ClientStream }
type SensorService_GetDetectServer ¶
type SensorService_GetDetectServer interface { Send(*GetDetectResponse) error grpc.ServerStream }
type SensorService_GetMotionInductionClient ¶
type SensorService_GetMotionInductionClient interface { Recv() (*GetMotionInductionResponse, error) grpc.ClientStream }
type SensorService_GetMotionInductionServer ¶
type SensorService_GetMotionInductionServer interface { Send(*GetMotionInductionResponse) error grpc.ServerStream }
type SensorService_GetTouchClient ¶
type SensorService_GetTouchClient interface { Recv() (*GetTouchResponse, error) grpc.ClientStream }
type SensorService_GetTouchServer ¶
type SensorService_GetTouchServer interface { Send(*GetTouchResponse) error grpc.ServerStream }
type SensorService_RawClient ¶
type SensorService_RawClient interface { Recv() (*RawResponse, error) grpc.ClientStream }
type SensorService_RawServer ¶
type SensorService_RawServer interface { Send(*RawResponse) error grpc.ServerStream }
type UnimplementedSensorServiceServer ¶
type UnimplementedSensorServiceServer struct { }
UnimplementedSensorServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedSensorServiceServer) GetDetect ¶
func (*UnimplementedSensorServiceServer) GetDetect(req *GetDetectRequest, srv SensorService_GetDetectServer) error
func (*UnimplementedSensorServiceServer) GetMotionInduction ¶
func (*UnimplementedSensorServiceServer) GetMotionInduction(req *GetMotionInductionRequest, srv SensorService_GetMotionInductionServer) error
func (*UnimplementedSensorServiceServer) GetTouch ¶
func (*UnimplementedSensorServiceServer) GetTouch(req *GetTouchRequest, srv SensorService_GetTouchServer) error
func (*UnimplementedSensorServiceServer) Raw ¶
func (*UnimplementedSensorServiceServer) Raw(req *RawRequest, srv SensorService_RawServer) error
type UpdateReq ¶
type UpdateReq struct { Dtype DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=sensorService.DataType" json:"dtype,omitempty"` Obs *DataObs `protobuf:"bytes,2,opt,name=obs,proto3" json:"obs,omitempty"` Agv *DataAgv `protobuf:"bytes,3,opt,name=agv,proto3" json:"agv,omitempty"` Touch *DataTouch `protobuf:"bytes,5,opt,name=touch,proto3" json:"touch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
使用器数据更新请求 dtype: 传感器更新数据类型
func (*UpdateReq) Descriptor ¶
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) XXX_DiscardUnknown ¶
func (m *UpdateReq) XXX_DiscardUnknown()