tracelet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TraceletToServer_Location_Direction_name = map[int32]string{
		0: "NO_DIRECTION",
		1: "CAB_A_DIRECTION",
		2: "CAB_B_DIRECTION",
	}
	TraceletToServer_Location_Direction_value = map[string]int32{
		"NO_DIRECTION":    0,
		"CAB_A_DIRECTION": 1,
		"CAB_B_DIRECTION": 2,
	}
)

Enum value maps for TraceletToServer_Location_Direction.

View Source
var File_tracelet_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ServerToTracelet

type ServerToTracelet struct {

	// id of the request, will be echoed in StatusResponse
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Type:
	//
	//	*ServerToTracelet_Location
	//	*ServerToTracelet_Status
	Type isServerToTracelet_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*ServerToTracelet) Descriptor deprecated

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

Deprecated: Use ServerToTracelet.ProtoReflect.Descriptor instead.

func (*ServerToTracelet) GetId

func (x *ServerToTracelet) GetId() int32

func (*ServerToTracelet) GetLocation

func (*ServerToTracelet) GetStatus

func (*ServerToTracelet) GetType

func (m *ServerToTracelet) GetType() isServerToTracelet_Type

func (*ServerToTracelet) ProtoMessage

func (*ServerToTracelet) ProtoMessage()

func (*ServerToTracelet) ProtoReflect

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

func (*ServerToTracelet) Reset

func (x *ServerToTracelet) Reset()

func (*ServerToTracelet) String

func (x *ServerToTracelet) String() string

type ServerToTracelet_Location

type ServerToTracelet_Location struct {
	// request the location of the tracelet
	Location *ServerToTracelet_LocationRequest `protobuf:"bytes,2,opt,name=location,proto3,oneof"`
}

type ServerToTracelet_LocationRequest

type ServerToTracelet_LocationRequest struct {
	// contains filtered or unexported fields
}

func (*ServerToTracelet_LocationRequest) Descriptor deprecated

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

Deprecated: Use ServerToTracelet_LocationRequest.ProtoReflect.Descriptor instead.

func (*ServerToTracelet_LocationRequest) ProtoMessage

func (*ServerToTracelet_LocationRequest) ProtoMessage()

func (*ServerToTracelet_LocationRequest) ProtoReflect

func (*ServerToTracelet_LocationRequest) Reset

func (*ServerToTracelet_LocationRequest) String

type ServerToTracelet_Status

type ServerToTracelet_Status struct {
	// request the status of the tracelet
	Status *ServerToTracelet_StatusRequest `protobuf:"bytes,3,opt,name=status,proto3,oneof"`
}

type ServerToTracelet_StatusRequest

type ServerToTracelet_StatusRequest struct {
	// contains filtered or unexported fields
}

func (*ServerToTracelet_StatusRequest) Descriptor deprecated

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

Deprecated: Use ServerToTracelet_StatusRequest.ProtoReflect.Descriptor instead.

func (*ServerToTracelet_StatusRequest) ProtoMessage

func (*ServerToTracelet_StatusRequest) ProtoMessage()

func (*ServerToTracelet_StatusRequest) ProtoReflect

func (*ServerToTracelet_StatusRequest) Reset

func (x *ServerToTracelet_StatusRequest) Reset()

func (*ServerToTracelet_StatusRequest) String

type TraceletToServer

type TraceletToServer struct {

	// Tracelet will echo the ID of the request here.
	// For messages sent without a request, the ID is 0
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// timestamp when the message was sent by the tracelet
	// If the Tracelet has no valid time, receive_ts is set to 1970-Jan-1 00:00
	// UTC
	DeliveryTs *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=delivery_ts,json=deliveryTs,proto3" json:"delivery_ts,omitempty"`
	// tracelet ID as provisioned in tracelet. Could be a vehicle ID
	TraceletId string `protobuf:"bytes,3,opt,name=tracelet_id,json=traceletId,proto3" json:"tracelet_id,omitempty"`
	// status of the tracelet ignition signal
	Ignition bool `protobuf:"varint,4,opt,name=ignition,proto3" json:"ignition,omitempty"`
	// Types that are assignable to Type:
	//
	//	*TraceletToServer_Location_
	//	*TraceletToServer_Status
	Type isTraceletToServer_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*TraceletToServer) Descriptor deprecated

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

Deprecated: Use TraceletToServer.ProtoReflect.Descriptor instead.

func (*TraceletToServer) GetDeliveryTs

func (x *TraceletToServer) GetDeliveryTs() *timestamppb.Timestamp

func (*TraceletToServer) GetId

func (x *TraceletToServer) GetId() int32

func (*TraceletToServer) GetIgnition

func (x *TraceletToServer) GetIgnition() bool

func (*TraceletToServer) GetLocation

func (x *TraceletToServer) GetLocation() *TraceletToServer_Location

func (*TraceletToServer) GetStatus

func (*TraceletToServer) GetTraceletId

func (x *TraceletToServer) GetTraceletId() string

func (*TraceletToServer) GetType

func (m *TraceletToServer) GetType() isTraceletToServer_Type

func (*TraceletToServer) ProtoMessage

func (*TraceletToServer) ProtoMessage()

func (*TraceletToServer) ProtoReflect

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

func (*TraceletToServer) Reset

func (x *TraceletToServer) Reset()

func (*TraceletToServer) String

func (x *TraceletToServer) String() string

type TraceletToServer_Location

type TraceletToServer_Location struct {

	// Data from GNSS subsystem
	Gnss *TraceletToServer_Location_Gnss `protobuf:"bytes,1,opt,name=gnss,proto3" json:"gnss,omitempty"`
	// Data from UWB subsystem
	Uwb *TraceletToServer_Location_Uwb `protobuf:"bytes,2,opt,name=uwb,proto3" json:"uwb,omitempty"`
	// Driving direction of the vehicle
	Direction TraceletToServer_Location_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=tracelet.TraceletToServer_Location_Direction" json:"direction,omitempty"`
	// Vehicle Speed in [m/s]
	Speed float64 `protobuf:"fixed64,4,opt,name=speed,proto3" json:"speed,omitempty"`
	// Vehicle Mileage in [km]
	Mileage int32 `protobuf:"varint,5,opt,name=mileage,proto3" json:"mileage,omitempty"`
	// Current Tracelet Temperature in [°C]
	Temperature float64 `protobuf:"fixed64,6,opt,name=temperature,proto3" json:"temperature,omitempty"`
	// contains filtered or unexported fields
}

Sub-message sent in response to a location request OR periodically sent by the tracelet

func (*TraceletToServer_Location) Descriptor deprecated

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

Deprecated: Use TraceletToServer_Location.ProtoReflect.Descriptor instead.

func (*TraceletToServer_Location) GetDirection

func (*TraceletToServer_Location) GetGnss

func (*TraceletToServer_Location) GetMileage

func (x *TraceletToServer_Location) GetMileage() int32

func (*TraceletToServer_Location) GetSpeed

func (x *TraceletToServer_Location) GetSpeed() float64

func (*TraceletToServer_Location) GetTemperature

func (x *TraceletToServer_Location) GetTemperature() float64

func (*TraceletToServer_Location) GetUwb

func (*TraceletToServer_Location) ProtoMessage

func (*TraceletToServer_Location) ProtoMessage()

func (*TraceletToServer_Location) ProtoReflect

func (*TraceletToServer_Location) Reset

func (x *TraceletToServer_Location) Reset()

func (*TraceletToServer_Location) String

func (x *TraceletToServer_Location) String() string

type TraceletToServer_Location_

type TraceletToServer_Location_ struct {
	Location *TraceletToServer_Location `protobuf:"bytes,5,opt,name=location,proto3,oneof"` // periodically sent by the tracelet or in
}

type TraceletToServer_Location_Direction

type TraceletToServer_Location_Direction int32
const (
	// Invalid direction
	TraceletToServer_Location_NO_DIRECTION TraceletToServer_Location_Direction = 0
	// CAB A
	TraceletToServer_Location_CAB_A_DIRECTION TraceletToServer_Location_Direction = 1
	// CAB B
	TraceletToServer_Location_CAB_B_DIRECTION TraceletToServer_Location_Direction = 2
)

func (TraceletToServer_Location_Direction) Descriptor

func (TraceletToServer_Location_Direction) Enum

func (TraceletToServer_Location_Direction) EnumDescriptor deprecated

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

Deprecated: Use TraceletToServer_Location_Direction.Descriptor instead.

func (TraceletToServer_Location_Direction) Number

func (TraceletToServer_Location_Direction) String

func (TraceletToServer_Location_Direction) Type

type TraceletToServer_Location_Gnss

type TraceletToServer_Location_Gnss struct {

	// GNSS location valid. If false, the other fields are not valid
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// WGS84 coordinates
	// latitude in [deg]
	Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// longitude in [deg]
	Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// altitude in [m]
	Altitude float64 `protobuf:"fixed64,4,opt,name=altitude,proto3" json:"altitude,omitempty"`
	// horizontal accuracy in [m]
	Eph float64 `protobuf:"fixed64,5,opt,name=eph,proto3" json:"eph,omitempty"`
	// vertical accuracy in [m]
	Epv float64 `protobuf:"fixed64,6,opt,name=epv,proto3" json:"epv,omitempty"`
	// type of fix
	// 0 = invalid, 1 = GPS fix, 2 = DGPS fix, 3 = PPS fix, 4 = Real Time Kinematic,
	// 5 = Float RTK, 6 = estimated, 7 = Manual input mode, 8 = Simulation mode
	FixType int32 `protobuf:"varint,7,opt,name=fix_type,json=fixType,proto3" json:"fix_type,omitempty"`
	// contains filtered or unexported fields
}

func (*TraceletToServer_Location_Gnss) Descriptor deprecated

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

Deprecated: Use TraceletToServer_Location_Gnss.ProtoReflect.Descriptor instead.

func (*TraceletToServer_Location_Gnss) GetAltitude

func (x *TraceletToServer_Location_Gnss) GetAltitude() float64

func (*TraceletToServer_Location_Gnss) GetEph

func (*TraceletToServer_Location_Gnss) GetEpv

func (*TraceletToServer_Location_Gnss) GetFixType

func (x *TraceletToServer_Location_Gnss) GetFixType() int32

func (*TraceletToServer_Location_Gnss) GetLatitude

func (x *TraceletToServer_Location_Gnss) GetLatitude() float64

func (*TraceletToServer_Location_Gnss) GetLongitude

func (x *TraceletToServer_Location_Gnss) GetLongitude() float64

func (*TraceletToServer_Location_Gnss) GetValid

func (x *TraceletToServer_Location_Gnss) GetValid() bool

func (*TraceletToServer_Location_Gnss) ProtoMessage

func (*TraceletToServer_Location_Gnss) ProtoMessage()

func (*TraceletToServer_Location_Gnss) ProtoReflect

func (*TraceletToServer_Location_Gnss) Reset

func (x *TraceletToServer_Location_Gnss) Reset()

func (*TraceletToServer_Location_Gnss) String

type TraceletToServer_Location_Uwb

type TraceletToServer_Location_Uwb struct {

	// UWB location valid. If false, the other fields are not valid
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// location of tracelet in space
	// Units: [m], can be negative. Resolution 0.1m
	X float64 `protobuf:"fixed64,2,opt,name=x,proto3" json:"x,omitempty"`
	Y float64 `protobuf:"fixed64,3,opt,name=y,proto3" json:"y,omitempty"`
	Z float64 `protobuf:"fixed64,4,opt,name=z,proto3" json:"z,omitempty"`
	// Site ID
	// a 16 bit unsigned value
	SiteId uint32 `protobuf:"varint,5,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,6,opt,name=location_signature,json=locationSignature,proto3" json:"location_signature,omitempty"`
	// horizontal accuracy in [m]
	Eph float64 `protobuf:"fixed64,7,opt,name=eph,proto3" json:"eph,omitempty"`
	// contains filtered or unexported fields
}

func (*TraceletToServer_Location_Uwb) Descriptor deprecated

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

Deprecated: Use TraceletToServer_Location_Uwb.ProtoReflect.Descriptor instead.

func (*TraceletToServer_Location_Uwb) GetEph

func (*TraceletToServer_Location_Uwb) GetLocationSignature

func (x *TraceletToServer_Location_Uwb) GetLocationSignature() uint64

func (*TraceletToServer_Location_Uwb) GetSiteId

func (x *TraceletToServer_Location_Uwb) GetSiteId() uint32

func (*TraceletToServer_Location_Uwb) GetValid

func (x *TraceletToServer_Location_Uwb) GetValid() bool

func (*TraceletToServer_Location_Uwb) GetX

func (*TraceletToServer_Location_Uwb) GetY

func (*TraceletToServer_Location_Uwb) GetZ

func (*TraceletToServer_Location_Uwb) ProtoMessage

func (*TraceletToServer_Location_Uwb) ProtoMessage()

func (*TraceletToServer_Location_Uwb) ProtoReflect

func (*TraceletToServer_Location_Uwb) Reset

func (x *TraceletToServer_Location_Uwb) Reset()

func (*TraceletToServer_Location_Uwb) String

type TraceletToServer_Status

type TraceletToServer_Status struct {
	// response to a location request
	Status *TraceletToServer_StatusResponse `protobuf:"bytes,6,opt,name=status,proto3,oneof"` // sent in response to the status request
}

type TraceletToServer_StatusResponse

type TraceletToServer_StatusResponse struct {

	// number of tracelet power Ups
	PowerUpCount int32 `protobuf:"varint,1,opt,name=power_up_count,json=powerUpCount,proto3" json:"power_up_count,omitempty"`
	// Tracelet has a valid time
	HasTime bool `protobuf:"varint,2,opt,name=has_time,json=hasTime,proto3" json:"has_time,omitempty"`
	// Status of the UWB module (0=OK, error code otherwise)
	UwbModuleStatus int32 `protobuf:"varint,3,opt,name=uwb_module_status,json=uwbModuleStatus,proto3" json:"uwb_module_status,omitempty"`
	// Status of the GNSS module (0=OK, error code otherwise)
	GnssModuleStatus int32 `protobuf:"varint,4,opt,name=gnss_module_status,json=gnssModuleStatus,proto3" json:"gnss_module_status,omitempty"`
	// Status of Main processor IMU (0=OK, error code otherwise)
	Imu1Status int32 `protobuf:"varint,5,opt,name=imu1_status,json=imu1Status,proto3" json:"imu1_status,omitempty"`
	// Status of tachometer signal (0=OK, error code otherwise)
	TachoStatus int32 `protobuf:"varint,6,opt,name=tacho_status,json=tachoStatus,proto3" json:"tacho_status,omitempty"`
	// contains filtered or unexported fields
}

Sub-message sent in response to a status request

func (*TraceletToServer_StatusResponse) Descriptor deprecated

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

Deprecated: Use TraceletToServer_StatusResponse.ProtoReflect.Descriptor instead.

func (*TraceletToServer_StatusResponse) GetGnssModuleStatus

func (x *TraceletToServer_StatusResponse) GetGnssModuleStatus() int32

func (*TraceletToServer_StatusResponse) GetHasTime

func (x *TraceletToServer_StatusResponse) GetHasTime() bool

func (*TraceletToServer_StatusResponse) GetImu1Status

func (x *TraceletToServer_StatusResponse) GetImu1Status() int32

func (*TraceletToServer_StatusResponse) GetPowerUpCount

func (x *TraceletToServer_StatusResponse) GetPowerUpCount() int32

func (*TraceletToServer_StatusResponse) GetTachoStatus

func (x *TraceletToServer_StatusResponse) GetTachoStatus() int32

func (*TraceletToServer_StatusResponse) GetUwbModuleStatus

func (x *TraceletToServer_StatusResponse) GetUwbModuleStatus() int32

func (*TraceletToServer_StatusResponse) ProtoMessage

func (*TraceletToServer_StatusResponse) ProtoMessage()

func (*TraceletToServer_StatusResponse) ProtoReflect

func (*TraceletToServer_StatusResponse) Reset

func (*TraceletToServer_StatusResponse) String

Jump to

Keyboard shortcuts

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