sensorpb

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package sensorpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var DataType_name = map[int32]string{
	0: "UNKNOWN",
	1: "OBS",
	2: "AGV",
	4: "TOUCH",
}
View Source
var DataType_value = map[string]int32{
	"UNKNOWN": 0,
	"OBS":     1,
	"AGV":     2,
	"TOUCH":   4,
}
View Source
var DetectDirection_name = map[int32]string{
	0: "_ZERO_DIR",
	1: "RELEASE_DIR",
	2: "LEFT",
	3: "CENTER",
	4: "RIGHT",
}
View Source
var DetectDirection_value = map[string]int32{
	"_ZERO_DIR":   0,
	"RELEASE_DIR": 1,
	"LEFT":        2,
	"CENTER":      3,
	"RIGHT":       4,
}
View Source
var DetectDistance_name = map[int32]string{
	0: "_ZERO_DIS",
	1: "RELEASE_DIS",
	2: "CLOSE",
	3: "MEDIUM",
	4: "LONG",
}
View Source
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) Descriptor() ([]byte, []int)

func (*DataAgv) GetCardId

func (m *DataAgv) GetCardId() string

func (*DataAgv) GetData

func (m *DataAgv) GetData() []bool

func (*DataAgv) ProtoMessage

func (*DataAgv) ProtoMessage()

func (*DataAgv) Reset

func (m *DataAgv) Reset()

func (*DataAgv) String

func (m *DataAgv) String() string

func (*DataAgv) XXX_DiscardUnknown

func (m *DataAgv) XXX_DiscardUnknown()

func (*DataAgv) XXX_Marshal

func (m *DataAgv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataAgv) XXX_Merge

func (m *DataAgv) XXX_Merge(src proto.Message)

func (*DataAgv) XXX_Size

func (m *DataAgv) XXX_Size() int

func (*DataAgv) XXX_Unmarshal

func (m *DataAgv) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*DataObs) GetData

func (m *DataObs) GetData() map[string]int32

func (*DataObs) ProtoMessage

func (*DataObs) ProtoMessage()

func (*DataObs) Reset

func (m *DataObs) Reset()

func (*DataObs) String

func (m *DataObs) String() string

func (*DataObs) XXX_DiscardUnknown

func (m *DataObs) XXX_DiscardUnknown()

func (*DataObs) XXX_Marshal

func (m *DataObs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataObs) XXX_Merge

func (m *DataObs) XXX_Merge(src proto.Message)

func (*DataObs) XXX_Size

func (m *DataObs) XXX_Size() int

func (*DataObs) XXX_Unmarshal

func (m *DataObs) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*DataTouch) GetTouched

func (m *DataTouch) GetTouched() map[string]bool

func (*DataTouch) ProtoMessage

func (*DataTouch) ProtoMessage()

func (*DataTouch) Reset

func (m *DataTouch) Reset()

func (*DataTouch) String

func (m *DataTouch) String() string

func (*DataTouch) XXX_DiscardUnknown

func (m *DataTouch) XXX_DiscardUnknown()

func (*DataTouch) XXX_Marshal

func (m *DataTouch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataTouch) XXX_Merge

func (m *DataTouch) XXX_Merge(src proto.Message)

func (*DataTouch) XXX_Size

func (m *DataTouch) XXX_Size() int

func (*DataTouch) XXX_Unmarshal

func (m *DataTouch) XXX_Unmarshal(b []byte) error

type DataType

type DataType int32
const (
	DataType_UNKNOWN DataType = 0
	DataType_OBS     DataType = 1
	DataType_AGV     DataType = 2
	DataType_TOUCH   DataType = 4
)

func (DataType) EnumDescriptor

func (DataType) EnumDescriptor() ([]byte, []int)

func (DataType) String

func (x DataType) String() string

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.

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) GetMotionInduction

func (*UnimplementedSensorServiceServer) GetTouch

func (*UnimplementedSensorServiceServer) Raw

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) Descriptor() ([]byte, []int)

func (*UpdateReq) GetAgv

func (m *UpdateReq) GetAgv() *DataAgv

func (*UpdateReq) GetDtype

func (m *UpdateReq) GetDtype() DataType

func (*UpdateReq) GetObs

func (m *UpdateReq) GetObs() *DataObs

func (*UpdateReq) GetTouch

func (m *UpdateReq) GetTouch() *DataTouch

func (*UpdateReq) ProtoMessage

func (*UpdateReq) ProtoMessage()

func (*UpdateReq) Reset

func (m *UpdateReq) Reset()

func (*UpdateReq) String

func (m *UpdateReq) String() string

func (*UpdateReq) XXX_DiscardUnknown

func (m *UpdateReq) XXX_DiscardUnknown()

func (*UpdateReq) XXX_Marshal

func (m *UpdateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateReq) XXX_Merge

func (m *UpdateReq) XXX_Merge(src proto.Message)

func (*UpdateReq) XXX_Size

func (m *UpdateReq) XXX_Size() int

func (*UpdateReq) XXX_Unmarshal

func (m *UpdateReq) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL