pb

package
v0.0.0-...-1fd3cb0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tracelet_location_proto protoreflect.FileDescriptor
View Source
var File_tracelet_status_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LocationReport

type LocationReport struct {

	// timestamp when location data was received from easylocate system
	// resolution of tracelet: ms
	ReceiveTs *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=receive_ts,json=receiveTs,proto3" json:"receive_ts,omitempty"`
	// tracelet ID as provisioned in tracelet. Could be a vehicle ID
	TraceletId string `protobuf:"bytes,2,opt,name=tracelet_id,json=traceletId,proto3" json:"tracelet_id,omitempty"`
	// location of tracelet in space
	// Units: [m], can be negative. Resolution 0.1m
	X float64 `protobuf:"fixed64,3,opt,name=x,proto3" json:"x,omitempty"`
	Y float64 `protobuf:"fixed64,4,opt,name=y,proto3" json:"y,omitempty"`
	Z float64 `protobuf:"fixed64,5,opt,name=z,proto3" json:"z,omitempty"`
	// Site ID
	// a 16 bit unsigned value
	SiteId uint32 `protobuf:"varint,6,opt,name=site_id,json=siteId,proto3" json:"site_id,omitempty"`
	// Location signature
	// can be used to validate the received location
	LocationSignature uint64 `protobuf:"fixed64,7,opt,name=location_signature,json=locationSignature,proto3" json:"location_signature,omitempty"`
	// Covariance. See Easylocate Specification for details
	CovXx float64 `protobuf:"fixed64,8,opt,name=cov_xx,json=covXx,proto3" json:"cov_xx,omitempty"`
	CovXy float64 `protobuf:"fixed64,9,opt,name=cov_xy,json=covXy,proto3" json:"cov_xy,omitempty"`
	CovYy float64 `protobuf:"fixed64,10,opt,name=cov_yy,json=covYy,proto3" json:"cov_yy,omitempty"`
	// contains filtered or unexported fields
}

Location Report Sent from Tracelet to the consuming system (consumer) via TCP port - Tracelet is TCP client - Consumer is TCP server

Format of a TCP message: - Byte 0: 0xFE - Byte 1: 0xED - Byte 2..5: Length of marshalled protobuf data (Byte 2=LSB) - Byte 6..n: Marshalled Protobuf Data (LocationReport Message)

func (*LocationReport) Descriptor deprecated

func (*LocationReport) Descriptor() ([]byte, []int)

Deprecated: Use LocationReport.ProtoReflect.Descriptor instead.

func (*LocationReport) GetCovXx

func (x *LocationReport) GetCovXx() float64

func (*LocationReport) GetCovXy

func (x *LocationReport) GetCovXy() float64

func (*LocationReport) GetCovYy

func (x *LocationReport) GetCovYy() float64

func (*LocationReport) GetLocationSignature

func (x *LocationReport) GetLocationSignature() uint64

func (*LocationReport) GetReceiveTs

func (x *LocationReport) GetReceiveTs() *timestamppb.Timestamp

func (*LocationReport) GetSiteId

func (x *LocationReport) GetSiteId() uint32

func (*LocationReport) GetTraceletId

func (x *LocationReport) GetTraceletId() string

func (*LocationReport) GetX

func (x *LocationReport) GetX() float64

func (*LocationReport) GetY

func (x *LocationReport) GetY() float64

func (*LocationReport) GetZ

func (x *LocationReport) GetZ() float64

func (*LocationReport) ProtoMessage

func (*LocationReport) ProtoMessage()

func (*LocationReport) ProtoReflect

func (x *LocationReport) ProtoReflect() protoreflect.Message

func (*LocationReport) Reset

func (x *LocationReport) Reset()

func (*LocationReport) String

func (x *LocationReport) String() string

type StatusRequest

type StatusRequest struct {

	// id of the request, will be echoed in StatusResponse
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

StatusRequest is sent from the monitoring system (consumer) to Tracelet via TCP port

func (*StatusRequest) Descriptor deprecated

func (*StatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.

func (*StatusRequest) GetId

func (x *StatusRequest) GetId() int32

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) ProtoReflect

func (x *StatusRequest) ProtoReflect() protoreflect.Message

func (*StatusRequest) Reset

func (x *StatusRequest) Reset()

func (*StatusRequest) String

func (x *StatusRequest) String() string

type StatusResponse

type StatusResponse struct {

	// id from StatusRequest
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// number of tracelet power Ups
	PowerUpCount int32 `protobuf:"varint,2,opt,name=power_up_count,json=powerUpCount,proto3" json:"power_up_count,omitempty"`
	// Tracelet has a valid position within easylocate system
	HasPosition bool `protobuf:"varint,3,opt,name=has_position,json=hasPosition,proto3" json:"has_position,omitempty"`
	// Tracelet has connection to location server
	HasServerConnection bool `protobuf:"varint,4,opt,name=has_server_connection,json=hasServerConnection,proto3" json:"has_server_connection,omitempty"`
	// Tracelet has a valid time
	HasTime bool `protobuf:"varint,5,opt,name=has_time,json=hasTime,proto3" json:"has_time,omitempty"`
	// Easylocate module up and running
	ElocModuleStatusOk bool `protobuf:"varint,6,opt,name=eloc_module_status_ok,json=elocModuleStatusOk,proto3" json:"eloc_module_status_ok,omitempty"`
	// contains filtered or unexported fields
}

StatusResponse is sent from Tracelet to the monitoring system (consumer) via TCP port in response to StatusRequest

func (*StatusResponse) Descriptor deprecated

func (*StatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetElocModuleStatusOk

func (x *StatusResponse) GetElocModuleStatusOk() bool

func (*StatusResponse) GetHasPosition

func (x *StatusResponse) GetHasPosition() bool

func (*StatusResponse) GetHasServerConnection

func (x *StatusResponse) GetHasServerConnection() bool

func (*StatusResponse) GetHasTime

func (x *StatusResponse) GetHasTime() bool

func (*StatusResponse) GetId

func (x *StatusResponse) GetId() int32

func (*StatusResponse) GetPowerUpCount

func (x *StatusResponse) GetPowerUpCount() int32

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect

func (x *StatusResponse) ProtoReflect() protoreflect.Message

func (*StatusResponse) Reset

func (x *StatusResponse) Reset()

func (*StatusResponse) String

func (x *StatusResponse) String() string

Jump to

Keyboard shortcuts

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