Documentation ¶
Index ¶
- Variables
- func RegisterAIServer(s grpc.ServiceRegistrar, srv AIServer)
- type AIClient
- type AIServer
- type AI_GetMsgClient
- type AI_GetMsgServer
- type AI_SetupClient
- type AI_SetupServer
- type AI_StitchAppClient
- type AI_StitchAppServer
- type AI_StitchClient
- type AI_StitchServer
- type Device
- type DeviceReq
- type Devices
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)deprecated
- func (x *Msg) GetCloudpoint() []byte
- func (x *Msg) GetFrameNumber() uint32
- func (x *Msg) GetPeople() []*People
- func (x *Msg) GetTimestamp() uint64
- func (*Msg) ProtoMessage()
- func (x *Msg) ProtoReflect() protoreflect.Message
- func (x *Msg) Reset()
- func (x *Msg) String() string
- type People
- func (*People) Descriptor() ([]byte, []int)deprecated
- func (x *People) GetPosX() float32
- func (x *People) GetPosY() float32
- func (x *People) GetPosZ() float32
- func (x *People) GetStance() People_Stance
- func (x *People) GetState() People_State
- func (x *People) GetTid() uint32
- func (*People) ProtoMessage()
- func (x *People) ProtoReflect() protoreflect.Message
- func (x *People) Reset()
- func (x *People) String() string
- type People_Stance
- func (People_Stance) Descriptor() protoreflect.EnumDescriptor
- func (x People_Stance) Enum() *People_Stance
- func (People_Stance) EnumDescriptor() ([]byte, []int)deprecated
- func (x People_Stance) Number() protoreflect.EnumNumber
- func (x People_Stance) String() string
- func (People_Stance) Type() protoreflect.EnumType
- type People_State
- func (People_State) Descriptor() protoreflect.EnumDescriptor
- func (x People_State) Enum() *People_State
- func (People_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x People_State) Number() protoreflect.EnumNumber
- func (x People_State) String() string
- func (People_State) Type() protoreflect.EnumType
- type SetupInput
- func (*SetupInput) Descriptor() ([]byte, []int)deprecated
- func (x *SetupInput) GetCloudpoint() []byte
- func (x *SetupInput) GetFrameNumber() uint32
- func (x *SetupInput) GetStitchID() uint32
- func (x *SetupInput) GetTimestamp() uint64
- func (*SetupInput) ProtoMessage()
- func (x *SetupInput) ProtoReflect() protoreflect.Message
- func (x *SetupInput) Reset()
- func (x *SetupInput) String() string
- type SetupOutput
- func (*SetupOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SetupOutput) GetBackgroundChart() []byte
- func (x *SetupOutput) GetFrameNumber() uint32
- func (x *SetupOutput) GetPeople() []*People
- func (x *SetupOutput) GetStitchParam() *StitchParam
- func (x *SetupOutput) GetTimestamp() uint64
- func (*SetupOutput) ProtoMessage()
- func (x *SetupOutput) ProtoReflect() protoreflect.Message
- func (x *SetupOutput) Reset()
- func (x *SetupOutput) String() string
- type StitchInput
- func (*StitchInput) Descriptor() ([]byte, []int)deprecated
- func (x *StitchInput) GetFrameNumber() uint32
- func (x *StitchInput) GetPeople() []*People
- func (x *StitchInput) GetStitchID() uint32
- func (x *StitchInput) GetStitchParam() *StitchParam
- func (x *StitchInput) GetTimestamp() uint64
- func (*StitchInput) ProtoMessage()
- func (x *StitchInput) ProtoReflect() protoreflect.Message
- func (x *StitchInput) Reset()
- func (x *StitchInput) String() string
- type StitchOutput
- func (*StitchOutput) Descriptor() ([]byte, []int)deprecated
- func (x *StitchOutput) GetBackgroundChart() []byte
- func (x *StitchOutput) GetFrameNumber() uint32
- func (x *StitchOutput) GetParameters() []byte
- func (x *StitchOutput) GetPeople() []*People
- func (x *StitchOutput) GetTimestamp() uint64
- func (*StitchOutput) ProtoMessage()
- func (x *StitchOutput) ProtoReflect() protoreflect.Message
- func (x *StitchOutput) Reset()
- func (x *StitchOutput) String() string
- type StitchParam
- func (*StitchParam) Descriptor() ([]byte, []int)deprecated
- func (x *StitchParam) GetHeight() float32
- func (x *StitchParam) GetShiftX() float32
- func (x *StitchParam) GetShiftZ() float32
- func (x *StitchParam) GetTheta() float32
- func (*StitchParam) ProtoMessage()
- func (x *StitchParam) ProtoReflect() protoreflect.Message
- func (x *StitchParam) Reset()
- func (x *StitchParam) String() string
- type UnimplementedAIServer
- func (UnimplementedAIServer) Echo(context.Context, *Msg) (*Msg, error)
- func (UnimplementedAIServer) GetMsg(*DeviceReq, AI_GetMsgServer) error
- func (UnimplementedAIServer) Setup(AI_SetupServer) error
- func (UnimplementedAIServer) Stitch(AI_StitchServer) error
- func (UnimplementedAIServer) StitchApp(*Devices, AI_StitchAppServer) error
- type UnsafeAIServer
Constants ¶
This section is empty.
Variables ¶
var ( People_State_name = map[int32]string{ 0: "NONE", 1: "ACTIVE", 2: "STATIC", } People_State_value = map[string]int32{ "NONE": 0, "ACTIVE": 1, "STATIC": 2, } )
Enum value maps for People_State.
var ( People_Stance_name = map[int32]string{ 0: "UNKNOWN", 1: "STAND", 2: "SIT", 3: "LAY", 4: "SUSFALL", 5: "COUNTDOWN", 6: "DETFALL", } People_Stance_value = map[string]int32{ "UNKNOWN": 0, "STAND": 1, "SIT": 2, "LAY": 3, "SUSFALL": 4, "COUNTDOWN": 5, "DETFALL": 6, } )
Enum value maps for People_Stance.
var AI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Peopletrack.AI", HandlerType: (*AIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _AI_Echo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Setup", Handler: _AI_Setup_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Stitch", Handler: _AI_Stitch_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "StitchApp", Handler: _AI_StitchApp_Handler, ServerStreams: true, }, { StreamName: "GetMsg", Handler: _AI_GetMsg_Handler, ServerStreams: true, }, }, Metadata: "peopletrack.proto", }
AI_ServiceDesc is the grpc.ServiceDesc for AI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_peopletrack_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAIServer ¶
func RegisterAIServer(s grpc.ServiceRegistrar, srv AIServer)
Types ¶
type AIClient ¶
type AIClient interface { Echo(ctx context.Context, in *Msg, opts ...grpc.CallOption) (*Msg, error) Setup(ctx context.Context, opts ...grpc.CallOption) (AI_SetupClient, error) Stitch(ctx context.Context, opts ...grpc.CallOption) (AI_StitchClient, error) StitchApp(ctx context.Context, in *Devices, opts ...grpc.CallOption) (AI_StitchAppClient, error) GetMsg(ctx context.Context, in *DeviceReq, opts ...grpc.CallOption) (AI_GetMsgClient, error) }
AIClient is the client API for AI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAIClient ¶
func NewAIClient(cc grpc.ClientConnInterface) AIClient
type AIServer ¶
type AIServer interface { Echo(context.Context, *Msg) (*Msg, error) Setup(AI_SetupServer) error Stitch(AI_StitchServer) error StitchApp(*Devices, AI_StitchAppServer) error GetMsg(*DeviceReq, AI_GetMsgServer) error // contains filtered or unexported methods }
AIServer is the server API for AI service. All implementations must embed UnimplementedAIServer for forward compatibility
type AI_GetMsgClient ¶
type AI_GetMsgClient interface { Recv() (*Msg, error) grpc.ClientStream }
type AI_GetMsgServer ¶
type AI_GetMsgServer interface { Send(*Msg) error grpc.ServerStream }
type AI_SetupClient ¶
type AI_SetupClient interface { Send(*SetupInput) error Recv() (*SetupOutput, error) grpc.ClientStream }
type AI_SetupServer ¶
type AI_SetupServer interface { Send(*SetupOutput) error Recv() (*SetupInput, error) grpc.ServerStream }
type AI_StitchAppClient ¶
type AI_StitchAppClient interface { Recv() (*StitchOutput, error) grpc.ClientStream }
type AI_StitchAppServer ¶
type AI_StitchAppServer interface { Send(*StitchOutput) error grpc.ServerStream }
type AI_StitchClient ¶
type AI_StitchClient interface { Send(*StitchInput) error Recv() (*StitchOutput, error) grpc.ClientStream }
type AI_StitchServer ¶
type AI_StitchServer interface { Send(*StitchOutput) error Recv() (*StitchInput, error) grpc.ServerStream }
type Device ¶
type Device struct { StitchID uint32 `protobuf:"varint,1,opt,name=stitchID,proto3" json:"stitchID,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetStitchID ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type DeviceReq ¶
type DeviceReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*DeviceReq) Descriptor
deprecated
func (*DeviceReq) ProtoMessage ¶
func (*DeviceReq) ProtoMessage()
func (*DeviceReq) ProtoReflect ¶
func (x *DeviceReq) ProtoReflect() protoreflect.Message
type Devices ¶
type Devices struct { Device []*Device `protobuf:"bytes,1,rep,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*Devices) Descriptor
deprecated
func (*Devices) ProtoMessage ¶
func (*Devices) ProtoMessage()
func (*Devices) ProtoReflect ¶
func (x *Devices) ProtoReflect() protoreflect.Message
type Msg ¶
type Msg struct { FrameNumber uint32 `protobuf:"varint,1,opt,name=frameNumber,proto3" json:"frameNumber,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` People []*People `protobuf:"bytes,3,rep,name=people,proto3" json:"people,omitempty"` Cloudpoint []byte `protobuf:"bytes,4,opt,name=cloudpoint,proto3" json:"cloudpoint,omitempty"` // contains filtered or unexported fields }
func (*Msg) Descriptor
deprecated
func (*Msg) GetCloudpoint ¶
func (*Msg) GetFrameNumber ¶
func (*Msg) GetTimestamp ¶
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶
func (x *Msg) ProtoReflect() protoreflect.Message
type People ¶
type People struct { Tid uint32 `protobuf:"varint,1,opt,name=tid,proto3" json:"tid,omitempty"` PosX float32 `protobuf:"fixed32,2,opt,name=posX,proto3" json:"posX,omitempty"` PosY float32 `protobuf:"fixed32,3,opt,name=posY,proto3" json:"posY,omitempty"` PosZ float32 `protobuf:"fixed32,4,opt,name=posZ,proto3" json:"posZ,omitempty"` State People_State `protobuf:"varint,5,opt,name=state,proto3,enum=Peopletrack.People_State" json:"state,omitempty"` Stance People_Stance `protobuf:"varint,6,opt,name=stance,proto3,enum=Peopletrack.People_Stance" json:"stance,omitempty"` // contains filtered or unexported fields }
func (*People) Descriptor
deprecated
func (*People) GetStance ¶
func (x *People) GetStance() People_Stance
func (*People) GetState ¶
func (x *People) GetState() People_State
func (*People) ProtoMessage ¶
func (*People) ProtoMessage()
func (*People) ProtoReflect ¶
func (x *People) ProtoReflect() protoreflect.Message
type People_Stance ¶
type People_Stance int32
const ( People_UNKNOWN People_Stance = 0 People_STAND People_Stance = 1 People_SIT People_Stance = 2 People_LAY People_Stance = 3 People_SUSFALL People_Stance = 4 People_COUNTDOWN People_Stance = 5 People_DETFALL People_Stance = 6 )
func (People_Stance) Descriptor ¶
func (People_Stance) Descriptor() protoreflect.EnumDescriptor
func (People_Stance) Enum ¶
func (x People_Stance) Enum() *People_Stance
func (People_Stance) EnumDescriptor
deprecated
func (People_Stance) EnumDescriptor() ([]byte, []int)
Deprecated: Use People_Stance.Descriptor instead.
func (People_Stance) Number ¶
func (x People_Stance) Number() protoreflect.EnumNumber
func (People_Stance) String ¶
func (x People_Stance) String() string
func (People_Stance) Type ¶
func (People_Stance) Type() protoreflect.EnumType
type People_State ¶
type People_State int32
const ( People_NONE People_State = 0 People_ACTIVE People_State = 1 People_STATIC People_State = 2 )
func (People_State) Descriptor ¶
func (People_State) Descriptor() protoreflect.EnumDescriptor
func (People_State) Enum ¶
func (x People_State) Enum() *People_State
func (People_State) EnumDescriptor
deprecated
func (People_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use People_State.Descriptor instead.
func (People_State) Number ¶
func (x People_State) Number() protoreflect.EnumNumber
func (People_State) String ¶
func (x People_State) String() string
func (People_State) Type ¶
func (People_State) Type() protoreflect.EnumType
type SetupInput ¶
type SetupInput struct { StitchID uint32 `protobuf:"varint,1,opt,name=stitchID,proto3" json:"stitchID,omitempty"` FrameNumber uint32 `protobuf:"varint,2,opt,name=frameNumber,proto3" json:"frameNumber,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Cloudpoint []byte `protobuf:"bytes,4,opt,name=cloudpoint,proto3" json:"cloudpoint,omitempty"` // contains filtered or unexported fields }
func (*SetupInput) Descriptor
deprecated
func (*SetupInput) Descriptor() ([]byte, []int)
Deprecated: Use SetupInput.ProtoReflect.Descriptor instead.
func (*SetupInput) GetCloudpoint ¶
func (x *SetupInput) GetCloudpoint() []byte
func (*SetupInput) GetFrameNumber ¶
func (x *SetupInput) GetFrameNumber() uint32
func (*SetupInput) GetStitchID ¶
func (x *SetupInput) GetStitchID() uint32
func (*SetupInput) GetTimestamp ¶
func (x *SetupInput) GetTimestamp() uint64
func (*SetupInput) ProtoMessage ¶
func (*SetupInput) ProtoMessage()
func (*SetupInput) ProtoReflect ¶
func (x *SetupInput) ProtoReflect() protoreflect.Message
func (*SetupInput) Reset ¶
func (x *SetupInput) Reset()
func (*SetupInput) String ¶
func (x *SetupInput) String() string
type SetupOutput ¶
type SetupOutput struct { FrameNumber uint32 `protobuf:"varint,1,opt,name=frameNumber,proto3" json:"frameNumber,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` People []*People `protobuf:"bytes,3,rep,name=people,proto3" json:"people,omitempty"` BackgroundChart []byte `protobuf:"bytes,4,opt,name=backgroundChart,proto3" json:"backgroundChart,omitempty"` StitchParam *StitchParam `protobuf:"bytes,5,opt,name=stitchParam,proto3" json:"stitchParam,omitempty"` // contains filtered or unexported fields }
func (*SetupOutput) Descriptor
deprecated
func (*SetupOutput) Descriptor() ([]byte, []int)
Deprecated: Use SetupOutput.ProtoReflect.Descriptor instead.
func (*SetupOutput) GetBackgroundChart ¶
func (x *SetupOutput) GetBackgroundChart() []byte
func (*SetupOutput) GetFrameNumber ¶
func (x *SetupOutput) GetFrameNumber() uint32
func (*SetupOutput) GetPeople ¶
func (x *SetupOutput) GetPeople() []*People
func (*SetupOutput) GetStitchParam ¶
func (x *SetupOutput) GetStitchParam() *StitchParam
func (*SetupOutput) GetTimestamp ¶
func (x *SetupOutput) GetTimestamp() uint64
func (*SetupOutput) ProtoMessage ¶
func (*SetupOutput) ProtoMessage()
func (*SetupOutput) ProtoReflect ¶
func (x *SetupOutput) ProtoReflect() protoreflect.Message
func (*SetupOutput) Reset ¶
func (x *SetupOutput) Reset()
func (*SetupOutput) String ¶
func (x *SetupOutput) String() string
type StitchInput ¶
type StitchInput struct { StitchID uint32 `protobuf:"varint,1,opt,name=stitchID,proto3" json:"stitchID,omitempty"` FrameNumber uint32 `protobuf:"varint,2,opt,name=frameNumber,proto3" json:"frameNumber,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` People []*People `protobuf:"bytes,4,rep,name=people,proto3" json:"people,omitempty"` StitchParam *StitchParam `protobuf:"bytes,5,opt,name=stitchParam,proto3" json:"stitchParam,omitempty"` // contains filtered or unexported fields }
func (*StitchInput) Descriptor
deprecated
func (*StitchInput) Descriptor() ([]byte, []int)
Deprecated: Use StitchInput.ProtoReflect.Descriptor instead.
func (*StitchInput) GetFrameNumber ¶
func (x *StitchInput) GetFrameNumber() uint32
func (*StitchInput) GetPeople ¶
func (x *StitchInput) GetPeople() []*People
func (*StitchInput) GetStitchID ¶
func (x *StitchInput) GetStitchID() uint32
func (*StitchInput) GetStitchParam ¶
func (x *StitchInput) GetStitchParam() *StitchParam
func (*StitchInput) GetTimestamp ¶
func (x *StitchInput) GetTimestamp() uint64
func (*StitchInput) ProtoMessage ¶
func (*StitchInput) ProtoMessage()
func (*StitchInput) ProtoReflect ¶
func (x *StitchInput) ProtoReflect() protoreflect.Message
func (*StitchInput) Reset ¶
func (x *StitchInput) Reset()
func (*StitchInput) String ¶
func (x *StitchInput) String() string
type StitchOutput ¶
type StitchOutput struct { FrameNumber uint32 `protobuf:"varint,1,opt,name=frameNumber,proto3" json:"frameNumber,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` People []*People `protobuf:"bytes,3,rep,name=people,proto3" json:"people,omitempty"` BackgroundChart []byte `protobuf:"bytes,4,opt,name=backgroundChart,proto3" json:"backgroundChart,omitempty"` Parameters []byte `protobuf:"bytes,5,opt,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
func (*StitchOutput) Descriptor
deprecated
func (*StitchOutput) Descriptor() ([]byte, []int)
Deprecated: Use StitchOutput.ProtoReflect.Descriptor instead.
func (*StitchOutput) GetBackgroundChart ¶
func (x *StitchOutput) GetBackgroundChart() []byte
func (*StitchOutput) GetFrameNumber ¶
func (x *StitchOutput) GetFrameNumber() uint32
func (*StitchOutput) GetParameters ¶
func (x *StitchOutput) GetParameters() []byte
func (*StitchOutput) GetPeople ¶
func (x *StitchOutput) GetPeople() []*People
func (*StitchOutput) GetTimestamp ¶
func (x *StitchOutput) GetTimestamp() uint64
func (*StitchOutput) ProtoMessage ¶
func (*StitchOutput) ProtoMessage()
func (*StitchOutput) ProtoReflect ¶
func (x *StitchOutput) ProtoReflect() protoreflect.Message
func (*StitchOutput) Reset ¶
func (x *StitchOutput) Reset()
func (*StitchOutput) String ¶
func (x *StitchOutput) String() string
type StitchParam ¶
type StitchParam struct { Height float32 `protobuf:"fixed32,1,opt,name=height,proto3" json:"height,omitempty"` Theta float32 `protobuf:"fixed32,2,opt,name=theta,proto3" json:"theta,omitempty"` ShiftX float32 `protobuf:"fixed32,3,opt,name=shiftX,proto3" json:"shiftX,omitempty"` ShiftZ float32 `protobuf:"fixed32,4,opt,name=shiftZ,proto3" json:"shiftZ,omitempty"` // contains filtered or unexported fields }
func (*StitchParam) Descriptor
deprecated
func (*StitchParam) Descriptor() ([]byte, []int)
Deprecated: Use StitchParam.ProtoReflect.Descriptor instead.
func (*StitchParam) GetHeight ¶
func (x *StitchParam) GetHeight() float32
func (*StitchParam) GetShiftX ¶
func (x *StitchParam) GetShiftX() float32
func (*StitchParam) GetShiftZ ¶
func (x *StitchParam) GetShiftZ() float32
func (*StitchParam) GetTheta ¶
func (x *StitchParam) GetTheta() float32
func (*StitchParam) ProtoMessage ¶
func (*StitchParam) ProtoMessage()
func (*StitchParam) ProtoReflect ¶
func (x *StitchParam) ProtoReflect() protoreflect.Message
func (*StitchParam) Reset ¶
func (x *StitchParam) Reset()
func (*StitchParam) String ¶
func (x *StitchParam) String() string
type UnimplementedAIServer ¶
type UnimplementedAIServer struct { }
UnimplementedAIServer must be embedded to have forward compatible implementations.
func (UnimplementedAIServer) GetMsg ¶
func (UnimplementedAIServer) GetMsg(*DeviceReq, AI_GetMsgServer) error
func (UnimplementedAIServer) Setup ¶
func (UnimplementedAIServer) Setup(AI_SetupServer) error
func (UnimplementedAIServer) Stitch ¶
func (UnimplementedAIServer) Stitch(AI_StitchServer) error
func (UnimplementedAIServer) StitchApp ¶
func (UnimplementedAIServer) StitchApp(*Devices, AI_StitchAppServer) error
type UnsafeAIServer ¶
type UnsafeAIServer interface {
// contains filtered or unexported methods
}
UnsafeAIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AIServer will result in compilation errors.