navpb

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 navpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package navpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var ChargeStatusCode_name = map[int32]string{
	0: "CHARGE_STATUS_UNKNOWN",
	1: "CHARGE_STATUS_PREPARING",
	2: "CHARGE_STATUS_RELEASED",
	3: "CHARGE_STATUS_CONNECTING",
	4: "CHARGE_STATUS_CHARGING",
	5: "CHARGE_STATUS_DISCONNECTING",
	6: "CHARGE_CONNECT_FAIL",
	7: "CHARGE_STATUS_NAV_OBSTACLE",
}
View Source
var ChargeStatusCode_value = map[string]int32{
	"CHARGE_STATUS_UNKNOWN":       0,
	"CHARGE_STATUS_PREPARING":     1,
	"CHARGE_STATUS_RELEASED":      2,
	"CHARGE_STATUS_CONNECTING":    3,
	"CHARGE_STATUS_CHARGING":      4,
	"CHARGE_STATUS_DISCONNECTING": 5,
	"CHARGE_CONNECT_FAIL":         6,
	"CHARGE_STATUS_NAV_OBSTACLE":  7,
}
View Source
var MoveDirection_name = map[int32]string{
	0: "RELEASE",
	1: "FORWARD",
	2: "BACKWARD",
	3: "LEFT",
	4: "RIGHT",
	5: "LEFT_FORWARD",
	6: "RIGHT_FORWARD",
	7: "LEFT_BACKWARD",
	8: "RIGHT_BACKWARD",
}
View Source
var MoveDirection_value = map[string]int32{
	"RELEASE":        0,
	"FORWARD":        1,
	"BACKWARD":       2,
	"LEFT":           3,
	"RIGHT":          4,
	"LEFT_FORWARD":   5,
	"RIGHT_FORWARD":  6,
	"LEFT_BACKWARD":  7,
	"RIGHT_BACKWARD": 8,
}
View Source
var NavEventType_name = map[int32]string{
	0: "NAV_EVENT_REVERSED",
	1: "MOVE_EVENT",
	2: "NAV_EVENT",
	3: "AUTO_CHARGE_EVENT",
	4: "ROTATE_EVENT",
}
View Source
var NavEventType_value = map[string]int32{
	"NAV_EVENT_REVERSED": 0,
	"MOVE_EVENT":         1,
	"NAV_EVENT":          2,
	"AUTO_CHARGE_EVENT":  3,
	"ROTATE_EVENT":       4,
}
View Source
var RoamingType_name = map[int32]string{
	0: "ROAMING_TYPE_CONTINUE",
	1: "ROAMING_TYPE_ORDER",
	2: "ROAMING_TYPE_RANDOM",
}
View Source
var RoamingType_value = map[string]int32{
	"ROAMING_TYPE_CONTINUE": 0,
	"ROAMING_TYPE_ORDER":    1,
	"ROAMING_TYPE_RANDOM":   2,
}
View Source
var StatusCode_name = map[int32]string{
	0:  "UNKNOWN",
	1:  "STOPPED",
	2:  "MOVING",
	3:  "PREPARING",
	4:  "CANCEL",
	5:  "RELEASED",
	10: "ERR_OBSTACLE",
	11: "ERR_NOT_READY",
	12: "ERR_MOTOR_FAIL",
	13: "ERR_WRONG_TARGET",
	20: "REJ_MOVING",
	21: "REJ_NAVING",
	22: "REJ_CHARGING",
	23: "REJ_ROTATING",
}
View Source
var StatusCode_value = map[string]int32{
	"UNKNOWN":          0,
	"STOPPED":          1,
	"MOVING":           2,
	"PREPARING":        3,
	"CANCEL":           4,
	"RELEASED":         5,
	"ERR_OBSTACLE":     10,
	"ERR_NOT_READY":    11,
	"ERR_MOTOR_FAIL":   12,
	"ERR_WRONG_TARGET": 13,
	"REJ_MOVING":       20,
	"REJ_NAVING":       21,
	"REJ_CHARGING":     22,
	"REJ_ROTATING":     23,
}

Functions

func RegisterMapHandler

func RegisterMapHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMapHandler registers the http handlers for service Map to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMapHandlerClient

func RegisterMapHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MapClient) error

RegisterMapHandlerClient registers the http handlers for service Map to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MapClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MapClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MapClient" to call the correct interceptors.

func RegisterMapHandlerFromEndpoint

func RegisterMapHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMapHandlerFromEndpoint is same as RegisterMapHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMapHandlerServer

func RegisterMapHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MapServer) error

RegisterMapHandlerServer registers the http handlers for service Map to "mux". UnaryRPC :call MapServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterMapServer

func RegisterMapServer(s *grpc.Server, srv MapServer)

func RegisterNavControllerHandler

func RegisterNavControllerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNavControllerHandler registers the http handlers for service NavController to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNavControllerHandlerClient

func RegisterNavControllerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NavControllerClient) error

RegisterNavControllerHandlerClient registers the http handlers for service NavController to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NavControllerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NavControllerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NavControllerClient" to call the correct interceptors.

func RegisterNavControllerHandlerFromEndpoint

func RegisterNavControllerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNavControllerHandlerFromEndpoint is same as RegisterNavControllerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNavControllerHandlerServer

func RegisterNavControllerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NavControllerServer) error

RegisterNavControllerHandlerServer registers the http handlers for service NavController to "mux". UnaryRPC :call NavControllerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterNavControllerServer

func RegisterNavControllerServer(s *grpc.Server, srv NavControllerServer)

Types

type AutoChargeEvent

type AutoChargeEvent struct {
	ChargeStatusCode     ChargeStatusCode `` /* 145-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

自动充电事件

func (*AutoChargeEvent) Descriptor

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

func (*AutoChargeEvent) GetChargeStatusCode

func (m *AutoChargeEvent) GetChargeStatusCode() ChargeStatusCode

func (*AutoChargeEvent) ProtoMessage

func (*AutoChargeEvent) ProtoMessage()

func (*AutoChargeEvent) Reset

func (m *AutoChargeEvent) Reset()

func (*AutoChargeEvent) String

func (m *AutoChargeEvent) String() string

func (*AutoChargeEvent) XXX_DiscardUnknown

func (m *AutoChargeEvent) XXX_DiscardUnknown()

func (*AutoChargeEvent) XXX_Marshal

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

func (*AutoChargeEvent) XXX_Merge

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

func (*AutoChargeEvent) XXX_Size

func (m *AutoChargeEvent) XXX_Size() int

func (*AutoChargeEvent) XXX_Unmarshal

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

type AutoChargeRequest

type AutoChargeRequest struct {
	// Types that are valid to be assigned to ChargeOptionOneof:
	//	*AutoChargeRequest_Charge
	//	*AutoChargeRequest_Cancel
	//	*AutoChargeRequest_ChargePreset
	ChargeOptionOneof isAutoChargeRequest_ChargeOptionOneof `protobuf_oneof:"charge_option_oneof"`
	// 等待充电状态为CHARGE_STATUS_CHARGING的超时配置(秒), 默认60s
	TimeoutSec           uint32   `protobuf:"varint,4,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

充电请求

func (*AutoChargeRequest) Descriptor

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

func (*AutoChargeRequest) GetCancel

func (m *AutoChargeRequest) GetCancel() bool

func (*AutoChargeRequest) GetCharge

func (m *AutoChargeRequest) GetCharge() bool

func (*AutoChargeRequest) GetChargeOptionOneof

func (m *AutoChargeRequest) GetChargeOptionOneof() isAutoChargeRequest_ChargeOptionOneof

func (*AutoChargeRequest) GetChargePreset

func (m *AutoChargeRequest) GetChargePreset() bool

func (*AutoChargeRequest) GetTimeoutSec

func (m *AutoChargeRequest) GetTimeoutSec() uint32

func (*AutoChargeRequest) ProtoMessage

func (*AutoChargeRequest) ProtoMessage()

func (*AutoChargeRequest) Reset

func (m *AutoChargeRequest) Reset()

func (*AutoChargeRequest) String

func (m *AutoChargeRequest) String() string

func (*AutoChargeRequest) XXX_DiscardUnknown

func (m *AutoChargeRequest) XXX_DiscardUnknown()

func (*AutoChargeRequest) XXX_Marshal

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

func (*AutoChargeRequest) XXX_Merge

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

func (*AutoChargeRequest) XXX_OneofWrappers

func (*AutoChargeRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AutoChargeRequest) XXX_Size

func (m *AutoChargeRequest) XXX_Size() int

func (*AutoChargeRequest) XXX_Unmarshal

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

type AutoChargeRequest_Cancel

type AutoChargeRequest_Cancel struct {
	Cancel bool `protobuf:"varint,2,opt,name=cancel,proto3,oneof"`
}

type AutoChargeRequest_Charge

type AutoChargeRequest_Charge struct {
	Charge bool `protobuf:"varint,1,opt,name=charge,proto3,oneof"`
}

type AutoChargeRequest_ChargePreset

type AutoChargeRequest_ChargePreset struct {
	ChargePreset bool `protobuf:"varint,3,opt,name=charge_preset,json=chargePreset,proto3,oneof"`
}

type AutoChargeResponse

type AutoChargeResponse struct {
	ChargeStatusCode     ChargeStatusCode `` /* 145-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

充电状态反馈

func (*AutoChargeResponse) Descriptor

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

func (*AutoChargeResponse) GetChargeStatusCode

func (m *AutoChargeResponse) GetChargeStatusCode() ChargeStatusCode

func (*AutoChargeResponse) ProtoMessage

func (*AutoChargeResponse) ProtoMessage()

func (*AutoChargeResponse) Reset

func (m *AutoChargeResponse) Reset()

func (*AutoChargeResponse) String

func (m *AutoChargeResponse) String() string

func (*AutoChargeResponse) XXX_DiscardUnknown

func (m *AutoChargeResponse) XXX_DiscardUnknown()

func (*AutoChargeResponse) XXX_Marshal

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

func (*AutoChargeResponse) XXX_Merge

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

func (*AutoChargeResponse) XXX_Size

func (m *AutoChargeResponse) XXX_Size() int

func (*AutoChargeResponse) XXX_Unmarshal

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

type ChargeStatusCode

type ChargeStatusCode int32

充电状态码

const (
	// 状态零值
	ChargeStatusCode_CHARGE_STATUS_UNKNOWN ChargeStatusCode = 0
	// 准备中
	// 充电导航: 导航开始/CHARGE_STATUS_NAV_OBSTACLE导航恢复
	ChargeStatusCode_CHARGE_STATUS_PREPARING ChargeStatusCode = 1
	// 已释放
	// 充电断开结束完成与未充电时为此状态
	ChargeStatusCode_CHARGE_STATUS_RELEASED ChargeStatusCode = 2
	// 充电连接中
	ChargeStatusCode_CHARGE_STATUS_CONNECTING ChargeStatusCode = 3
	// 充电中
	ChargeStatusCode_CHARGE_STATUS_CHARGING ChargeStatusCode = 4
	// 充电断开中
	ChargeStatusCode_CHARGE_STATUS_DISCONNECTING ChargeStatusCode = 5
	// 连接失败
	ChargeStatusCode_CHARGE_CONNECT_FAIL ChargeStatusCode = 6
	// 充电导航过程遇到障碍
	ChargeStatusCode_CHARGE_STATUS_NAV_OBSTACLE ChargeStatusCode = 7
)

func (ChargeStatusCode) EnumDescriptor

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

func (ChargeStatusCode) String

func (x ChargeStatusCode) String() string

type DeleteRoutesRequest

type DeleteRoutesRequest struct {
	RoutesId             []string `protobuf:"bytes,1,rep,name=routes_id,json=routesId,proto3" json:"routes_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRoutesRequest) Descriptor

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

func (*DeleteRoutesRequest) GetRoutesId

func (m *DeleteRoutesRequest) GetRoutesId() []string

func (*DeleteRoutesRequest) ProtoMessage

func (*DeleteRoutesRequest) ProtoMessage()

func (*DeleteRoutesRequest) Reset

func (m *DeleteRoutesRequest) Reset()

func (*DeleteRoutesRequest) String

func (m *DeleteRoutesRequest) String() string

func (*DeleteRoutesRequest) XXX_DiscardUnknown

func (m *DeleteRoutesRequest) XXX_DiscardUnknown()

func (*DeleteRoutesRequest) XXX_Marshal

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

func (*DeleteRoutesRequest) XXX_Merge

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

func (*DeleteRoutesRequest) XXX_Size

func (m *DeleteRoutesRequest) XXX_Size() int

func (*DeleteRoutesRequest) XXX_Unmarshal

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

type DeleteRoutesResponse

type DeleteRoutesResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRoutesResponse) Descriptor

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

func (*DeleteRoutesResponse) ProtoMessage

func (*DeleteRoutesResponse) ProtoMessage()

func (*DeleteRoutesResponse) Reset

func (m *DeleteRoutesResponse) Reset()

func (*DeleteRoutesResponse) String

func (m *DeleteRoutesResponse) String() string

func (*DeleteRoutesResponse) XXX_DiscardUnknown

func (m *DeleteRoutesResponse) XXX_DiscardUnknown()

func (*DeleteRoutesResponse) XXX_Marshal

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

func (*DeleteRoutesResponse) XXX_Merge

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

func (*DeleteRoutesResponse) XXX_Size

func (m *DeleteRoutesResponse) XXX_Size() int

func (*DeleteRoutesResponse) XXX_Unmarshal

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

type GetMapInfoRequest

type GetMapInfoRequest struct {
	// true: 不返回map_image信息
	NoMapImage bool `protobuf:"varint,1,opt,name=no_map_image,json=noMapImage,proto3" json:"no_map_image,omitempty"`
	// true: 不返回map_points信息
	NoMapPoints          bool     `protobuf:"varint,2,opt,name=no_map_points,json=noMapPoints,proto3" json:"no_map_points,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetMapInfoRequest) Descriptor

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

func (*GetMapInfoRequest) GetNoMapImage

func (m *GetMapInfoRequest) GetNoMapImage() bool

func (*GetMapInfoRequest) GetNoMapPoints

func (m *GetMapInfoRequest) GetNoMapPoints() bool

func (*GetMapInfoRequest) ProtoMessage

func (*GetMapInfoRequest) ProtoMessage()

func (*GetMapInfoRequest) Reset

func (m *GetMapInfoRequest) Reset()

func (*GetMapInfoRequest) String

func (m *GetMapInfoRequest) String() string

func (*GetMapInfoRequest) XXX_DiscardUnknown

func (m *GetMapInfoRequest) XXX_DiscardUnknown()

func (*GetMapInfoRequest) XXX_Marshal

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

func (*GetMapInfoRequest) XXX_Merge

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

func (*GetMapInfoRequest) XXX_Size

func (m *GetMapInfoRequest) XXX_Size() int

func (*GetMapInfoRequest) XXX_Unmarshal

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

type GetMapInfoResponse

type GetMapInfoResponse struct {
	// 地图id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// 地图名
	Name                 string                         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	MapImage             *GetMapInfoResponse_MapImage   `protobuf:"bytes,3,opt,name=map_image,json=mapImage,proto3" json:"map_image,omitempty"`
	MapPoints            []*GetMapInfoResponse_MapPoint `protobuf:"bytes,4,rep,name=map_points,json=mapPoints,proto3" json:"map_points,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

func (*GetMapInfoResponse) Descriptor

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

func (*GetMapInfoResponse) GetId

func (m *GetMapInfoResponse) GetId() string

func (*GetMapInfoResponse) GetMapImage

func (*GetMapInfoResponse) GetMapPoints

func (m *GetMapInfoResponse) GetMapPoints() []*GetMapInfoResponse_MapPoint

func (*GetMapInfoResponse) GetName

func (m *GetMapInfoResponse) GetName() string

func (*GetMapInfoResponse) ProtoMessage

func (*GetMapInfoResponse) ProtoMessage()

func (*GetMapInfoResponse) Reset

func (m *GetMapInfoResponse) Reset()

func (*GetMapInfoResponse) String

func (m *GetMapInfoResponse) String() string

func (*GetMapInfoResponse) XXX_DiscardUnknown

func (m *GetMapInfoResponse) XXX_DiscardUnknown()

func (*GetMapInfoResponse) XXX_Marshal

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

func (*GetMapInfoResponse) XXX_Merge

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

func (*GetMapInfoResponse) XXX_Size

func (m *GetMapInfoResponse) XXX_Size() int

func (*GetMapInfoResponse) XXX_Unmarshal

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

type GetMapInfoResponse_MapImage

type GetMapInfoResponse_MapImage struct {
	Width                uint32   `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height               uint32   `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Image                []byte   `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

地图图片信息

func (*GetMapInfoResponse_MapImage) Descriptor

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

func (*GetMapInfoResponse_MapImage) GetHeight

func (m *GetMapInfoResponse_MapImage) GetHeight() uint32

func (*GetMapInfoResponse_MapImage) GetImage

func (m *GetMapInfoResponse_MapImage) GetImage() []byte

func (*GetMapInfoResponse_MapImage) GetWidth

func (m *GetMapInfoResponse_MapImage) GetWidth() uint32

func (*GetMapInfoResponse_MapImage) ProtoMessage

func (*GetMapInfoResponse_MapImage) ProtoMessage()

func (*GetMapInfoResponse_MapImage) Reset

func (m *GetMapInfoResponse_MapImage) Reset()

func (*GetMapInfoResponse_MapImage) String

func (m *GetMapInfoResponse_MapImage) String() string

func (*GetMapInfoResponse_MapImage) XXX_DiscardUnknown

func (m *GetMapInfoResponse_MapImage) XXX_DiscardUnknown()

func (*GetMapInfoResponse_MapImage) XXX_Marshal

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

func (*GetMapInfoResponse_MapImage) XXX_Merge

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

func (*GetMapInfoResponse_MapImage) XXX_Size

func (m *GetMapInfoResponse_MapImage) XXX_Size() int

func (*GetMapInfoResponse_MapImage) XXX_Unmarshal

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

type GetMapInfoResponse_MapPoint

type GetMapInfoResponse_MapPoint struct {
	Name                 string       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Position             *MapPosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

地图点数据 与nav.RoutePoint信息一致, 区别为包含地图坐标信息

func (*GetMapInfoResponse_MapPoint) Descriptor

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

func (*GetMapInfoResponse_MapPoint) GetName

func (m *GetMapInfoResponse_MapPoint) GetName() string

func (*GetMapInfoResponse_MapPoint) GetPosition

func (m *GetMapInfoResponse_MapPoint) GetPosition() *MapPosition

func (*GetMapInfoResponse_MapPoint) ProtoMessage

func (*GetMapInfoResponse_MapPoint) ProtoMessage()

func (*GetMapInfoResponse_MapPoint) Reset

func (m *GetMapInfoResponse_MapPoint) Reset()

func (*GetMapInfoResponse_MapPoint) String

func (m *GetMapInfoResponse_MapPoint) String() string

func (*GetMapInfoResponse_MapPoint) XXX_DiscardUnknown

func (m *GetMapInfoResponse_MapPoint) XXX_DiscardUnknown()

func (*GetMapInfoResponse_MapPoint) XXX_Marshal

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

func (*GetMapInfoResponse_MapPoint) XXX_Merge

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

func (*GetMapInfoResponse_MapPoint) XXX_Size

func (m *GetMapInfoResponse_MapPoint) XXX_Size() int

func (*GetMapInfoResponse_MapPoint) XXX_Unmarshal

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

type GetRouteRequest

type GetRouteRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRouteRequest) Descriptor

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

func (*GetRouteRequest) GetId

func (m *GetRouteRequest) GetId() string

func (*GetRouteRequest) ProtoMessage

func (*GetRouteRequest) ProtoMessage()

func (*GetRouteRequest) Reset

func (m *GetRouteRequest) Reset()

func (*GetRouteRequest) String

func (m *GetRouteRequest) String() string

func (*GetRouteRequest) XXX_DiscardUnknown

func (m *GetRouteRequest) XXX_DiscardUnknown()

func (*GetRouteRequest) XXX_Marshal

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

func (*GetRouteRequest) XXX_Merge

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

func (*GetRouteRequest) XXX_Size

func (m *GetRouteRequest) XXX_Size() int

func (*GetRouteRequest) XXX_Unmarshal

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

type GetRouteResponse

type GetRouteResponse struct {
	Route                *Route   `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRouteResponse) Descriptor

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

func (*GetRouteResponse) GetRoute

func (m *GetRouteResponse) GetRoute() *Route

func (*GetRouteResponse) ProtoMessage

func (*GetRouteResponse) ProtoMessage()

func (*GetRouteResponse) Reset

func (m *GetRouteResponse) Reset()

func (*GetRouteResponse) String

func (m *GetRouteResponse) String() string

func (*GetRouteResponse) XXX_DiscardUnknown

func (m *GetRouteResponse) XXX_DiscardUnknown()

func (*GetRouteResponse) XXX_Marshal

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

func (*GetRouteResponse) XXX_Merge

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

func (*GetRouteResponse) XXX_Size

func (m *GetRouteResponse) XXX_Size() int

func (*GetRouteResponse) XXX_Unmarshal

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

type ListRoutesRequest

type ListRoutesRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListRoutesRequest) Descriptor

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

func (*ListRoutesRequest) ProtoMessage

func (*ListRoutesRequest) ProtoMessage()

func (*ListRoutesRequest) Reset

func (m *ListRoutesRequest) Reset()

func (*ListRoutesRequest) String

func (m *ListRoutesRequest) String() string

func (*ListRoutesRequest) XXX_DiscardUnknown

func (m *ListRoutesRequest) XXX_DiscardUnknown()

func (*ListRoutesRequest) XXX_Marshal

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

func (*ListRoutesRequest) XXX_Merge

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

func (*ListRoutesRequest) XXX_Size

func (m *ListRoutesRequest) XXX_Size() int

func (*ListRoutesRequest) XXX_Unmarshal

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

type ListRoutesResponse

type ListRoutesResponse struct {
	Routes               []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListRoutesResponse) Descriptor

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

func (*ListRoutesResponse) GetRoutes

func (m *ListRoutesResponse) GetRoutes() []*Route

func (*ListRoutesResponse) ProtoMessage

func (*ListRoutesResponse) ProtoMessage()

func (*ListRoutesResponse) Reset

func (m *ListRoutesResponse) Reset()

func (*ListRoutesResponse) String

func (m *ListRoutesResponse) String() string

func (*ListRoutesResponse) XXX_DiscardUnknown

func (m *ListRoutesResponse) XXX_DiscardUnknown()

func (*ListRoutesResponse) XXX_Marshal

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

func (*ListRoutesResponse) XXX_Merge

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

func (*ListRoutesResponse) XXX_Size

func (m *ListRoutesResponse) XXX_Size() int

func (*ListRoutesResponse) XXX_Unmarshal

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

type LocationResetRequest

type LocationResetRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LocationResetRequest) Descriptor

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

func (*LocationResetRequest) ProtoMessage

func (*LocationResetRequest) ProtoMessage()

func (*LocationResetRequest) Reset

func (m *LocationResetRequest) Reset()

func (*LocationResetRequest) String

func (m *LocationResetRequest) String() string

func (*LocationResetRequest) XXX_DiscardUnknown

func (m *LocationResetRequest) XXX_DiscardUnknown()

func (*LocationResetRequest) XXX_Marshal

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

func (*LocationResetRequest) XXX_Merge

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

func (*LocationResetRequest) XXX_Size

func (m *LocationResetRequest) XXX_Size() int

func (*LocationResetRequest) XXX_Unmarshal

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

type LocationResetResponse

type LocationResetResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LocationResetResponse) Descriptor

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

func (*LocationResetResponse) ProtoMessage

func (*LocationResetResponse) ProtoMessage()

func (*LocationResetResponse) Reset

func (m *LocationResetResponse) Reset()

func (*LocationResetResponse) String

func (m *LocationResetResponse) String() string

func (*LocationResetResponse) XXX_DiscardUnknown

func (m *LocationResetResponse) XXX_DiscardUnknown()

func (*LocationResetResponse) XXX_Marshal

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

func (*LocationResetResponse) XXX_Merge

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

func (*LocationResetResponse) XXX_Size

func (m *LocationResetResponse) XXX_Size() int

func (*LocationResetResponse) XXX_Unmarshal

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

type MapClient

type MapClient interface {
	// GetMapInfo 获取地图信息
	GetMapInfo(ctx context.Context, in *GetMapInfoRequest, opts ...grpc.CallOption) (*GetMapInfoResponse, error)
	// MapPositionStream 监听设备的地图定位信息
	MapPositionStream(ctx context.Context, in *MapPositionStreamRequest, opts ...grpc.CallOption) (Map_MapPositionStreamClient, error)
	// LocationReset 重置当前定位
	//
	// 某些情况下此方法返回成功时可能出现实际位置与地图位置不相符,
	// 在有明确参照物附近调用此方法可提高准确定位成功率。
	//
	// 用于发生定位异常/错误状态,重新初始化导航定位
	// 重定位错误:定位状态超时|无地图|UWB错误
	// 重定位超时判断: 默认10s,仅在非错误状态下重置
	LocationReset(ctx context.Context, in *LocationResetRequest, opts ...grpc.CallOption) (*LocationResetResponse, error)
}

MapClient is the client API for Map service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMapClient

func NewMapClient(cc grpc.ClientConnInterface) MapClient

type MapPosition

type MapPosition struct {
	// 水平坐标 [0: mapWidth]
	X uint32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	// 垂直坐标 [0: mapHeight]
	Y uint32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// 角度 水平右方向为0, 顺时针
	//     270
	// 180  ----0
	//     90
	Angle                uint32   `protobuf:"varint,3,opt,name=angle,proto3" json:"angle,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MapPosition) Descriptor

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

func (*MapPosition) GetAngle

func (m *MapPosition) GetAngle() uint32

func (*MapPosition) GetX

func (m *MapPosition) GetX() uint32

func (*MapPosition) GetY

func (m *MapPosition) GetY() uint32

func (*MapPosition) ProtoMessage

func (*MapPosition) ProtoMessage()

func (*MapPosition) Reset

func (m *MapPosition) Reset()

func (*MapPosition) String

func (m *MapPosition) String() string

func (*MapPosition) XXX_DiscardUnknown

func (m *MapPosition) XXX_DiscardUnknown()

func (*MapPosition) XXX_Marshal

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

func (*MapPosition) XXX_Merge

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

func (*MapPosition) XXX_Size

func (m *MapPosition) XXX_Size() int

func (*MapPosition) XXX_Unmarshal

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

type MapPositionStreamRequest

type MapPositionStreamRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MapPositionStreamRequest) Descriptor

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

func (*MapPositionStreamRequest) ProtoMessage

func (*MapPositionStreamRequest) ProtoMessage()

func (*MapPositionStreamRequest) Reset

func (m *MapPositionStreamRequest) Reset()

func (*MapPositionStreamRequest) String

func (m *MapPositionStreamRequest) String() string

func (*MapPositionStreamRequest) XXX_DiscardUnknown

func (m *MapPositionStreamRequest) XXX_DiscardUnknown()

func (*MapPositionStreamRequest) XXX_Marshal

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

func (*MapPositionStreamRequest) XXX_Merge

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

func (*MapPositionStreamRequest) XXX_Size

func (m *MapPositionStreamRequest) XXX_Size() int

func (*MapPositionStreamRequest) XXX_Unmarshal

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

type MapPositionStreamResponse

type MapPositionStreamResponse struct {
	Position             *MapPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*MapPositionStreamResponse) Descriptor

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

func (*MapPositionStreamResponse) GetPosition

func (m *MapPositionStreamResponse) GetPosition() *MapPosition

func (*MapPositionStreamResponse) ProtoMessage

func (*MapPositionStreamResponse) ProtoMessage()

func (*MapPositionStreamResponse) Reset

func (m *MapPositionStreamResponse) Reset()

func (*MapPositionStreamResponse) String

func (m *MapPositionStreamResponse) String() string

func (*MapPositionStreamResponse) XXX_DiscardUnknown

func (m *MapPositionStreamResponse) XXX_DiscardUnknown()

func (*MapPositionStreamResponse) XXX_Marshal

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

func (*MapPositionStreamResponse) XXX_Merge

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

func (*MapPositionStreamResponse) XXX_Size

func (m *MapPositionStreamResponse) XXX_Size() int

func (*MapPositionStreamResponse) XXX_Unmarshal

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

type MapServer

type MapServer interface {
	// GetMapInfo 获取地图信息
	GetMapInfo(context.Context, *GetMapInfoRequest) (*GetMapInfoResponse, error)
	// MapPositionStream 监听设备的地图定位信息
	MapPositionStream(*MapPositionStreamRequest, Map_MapPositionStreamServer) error
	// LocationReset 重置当前定位
	//
	// 某些情况下此方法返回成功时可能出现实际位置与地图位置不相符,
	// 在有明确参照物附近调用此方法可提高准确定位成功率。
	//
	// 用于发生定位异常/错误状态,重新初始化导航定位
	// 重定位错误:定位状态超时|无地图|UWB错误
	// 重定位超时判断: 默认10s,仅在非错误状态下重置
	LocationReset(context.Context, *LocationResetRequest) (*LocationResetResponse, error)
}

MapServer is the server API for Map service.

type Map_MapPositionStreamClient

type Map_MapPositionStreamClient interface {
	Recv() (*MapPositionStreamResponse, error)
	grpc.ClientStream
}

type Map_MapPositionStreamServer

type Map_MapPositionStreamServer interface {
	Send(*MapPositionStreamResponse) error
	grpc.ServerStream
}

type MoveDirection

type MoveDirection int32

移动方向

const (
	// 释放, 空值
	MoveDirection_RELEASE MoveDirection = 0
	// 前进
	MoveDirection_FORWARD MoveDirection = 1
	// 后退
	MoveDirection_BACKWARD MoveDirection = 2
	// 左
	MoveDirection_LEFT MoveDirection = 3
	// 右
	MoveDirection_RIGHT MoveDirection = 4
	// 左前
	MoveDirection_LEFT_FORWARD MoveDirection = 5
	// 右前
	MoveDirection_RIGHT_FORWARD MoveDirection = 6
	// 左后
	MoveDirection_LEFT_BACKWARD MoveDirection = 7
	// 右后
	MoveDirection_RIGHT_BACKWARD MoveDirection = 8
)

func (MoveDirection) EnumDescriptor

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

func (MoveDirection) String

func (x MoveDirection) String() string

type MoveEvent

type MoveEvent struct {
	StatusCode           StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=navService.StatusCode" json:"status_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

移动事件

func (*MoveEvent) Descriptor

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

func (*MoveEvent) GetStatusCode

func (m *MoveEvent) GetStatusCode() StatusCode

func (*MoveEvent) ProtoMessage

func (*MoveEvent) ProtoMessage()

func (*MoveEvent) Reset

func (m *MoveEvent) Reset()

func (*MoveEvent) String

func (m *MoveEvent) String() string

func (*MoveEvent) XXX_DiscardUnknown

func (m *MoveEvent) XXX_DiscardUnknown()

func (*MoveEvent) XXX_Marshal

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

func (*MoveEvent) XXX_Merge

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

func (*MoveEvent) XXX_Size

func (m *MoveEvent) XXX_Size() int

func (*MoveEvent) XXX_Unmarshal

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

type MoveRequest

type MoveRequest struct {
	// 移动速度 0-100
	Speed uint32 `protobuf:"varint,1,opt,name=speed,proto3" json:"speed,omitempty"`
	// 旋转速度 0-10 默认3* 仅前后方向时此数值无效
	Rspeed uint32 `protobuf:"varint,2,opt,name=rspeed,proto3" json:"rspeed,omitempty"`
	// 移动方向
	Direction MoveDirection `protobuf:"varint,3,opt,name=direction,proto3,enum=navService.MoveDirection" json:"direction,omitempty"`
	// 移动模式(safe|force)
	// 默认为safe
	//
	// 在移动过程中附近有障碍物时,移动指令可能无效,
	// 使用force模式可强制移动,请自行确保移动安全
	Mode                 string   `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoveRequest) Descriptor

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

func (*MoveRequest) GetDirection

func (m *MoveRequest) GetDirection() MoveDirection

func (*MoveRequest) GetMode

func (m *MoveRequest) GetMode() string

func (*MoveRequest) GetRspeed

func (m *MoveRequest) GetRspeed() uint32

func (*MoveRequest) GetSpeed

func (m *MoveRequest) GetSpeed() uint32

func (*MoveRequest) ProtoMessage

func (*MoveRequest) ProtoMessage()

func (*MoveRequest) Reset

func (m *MoveRequest) Reset()

func (*MoveRequest) String

func (m *MoveRequest) String() string

func (*MoveRequest) XXX_DiscardUnknown

func (m *MoveRequest) XXX_DiscardUnknown()

func (*MoveRequest) XXX_Marshal

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

func (*MoveRequest) XXX_Merge

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

func (*MoveRequest) XXX_Size

func (m *MoveRequest) XXX_Size() int

func (*MoveRequest) XXX_Unmarshal

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

type MoveResponse

type MoveResponse struct {
	StatusCode           StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=navService.StatusCode" json:"status_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*MoveResponse) Descriptor

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

func (*MoveResponse) GetStatusCode

func (m *MoveResponse) GetStatusCode() StatusCode

func (*MoveResponse) ProtoMessage

func (*MoveResponse) ProtoMessage()

func (*MoveResponse) Reset

func (m *MoveResponse) Reset()

func (*MoveResponse) String

func (m *MoveResponse) String() string

func (*MoveResponse) XXX_DiscardUnknown

func (m *MoveResponse) XXX_DiscardUnknown()

func (*MoveResponse) XXX_Marshal

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

func (*MoveResponse) XXX_Merge

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

func (*MoveResponse) XXX_Size

func (m *MoveResponse) XXX_Size() int

func (*MoveResponse) XXX_Unmarshal

func (m *MoveResponse) XXX_Unmarshal(b []byte) error
type NavControllerClient interface {
	// Move 遥控移动
	//
	// 遥控移动需持续发送移动指令,通常为300ms
	Move(ctx context.Context, opts ...grpc.CallOption) (NavController_MoveClient, error)
	// NavTo 导航
	NavTo(ctx context.Context, in *NavToRequest, opts ...grpc.CallOption) (*NavToResponse, error)
	// NavStop 中止
	//
	// 支持导航、旋转的中止
	//
	// 导航中止后,可通过NavTo中CONTINUE恢复该目标导航
	NavStop(ctx context.Context, in *NavStopRequest, opts ...grpc.CallOption) (*NavStopResponse, error)
	// AutoCharge 自动充电
	//
	// 开发管理平台功能参考: http://10.10.10.2/power
	AutoCharge(ctx context.Context, in *AutoChargeRequest, opts ...grpc.CallOption) (*AutoChargeResponse, error)
	// Rotate 原地旋转
	Rotate(ctx context.Context, in *RotateRequest, opts ...grpc.CallOption) (*RotateResponse, error)
	// OnNavEventChange 导航事件监听
	//
	// 监听导航模块中各类事件的变动更新,详见OnNavEventChangeResponse
	OnNavEventChange(ctx context.Context, in *OnNavEventChangeRequest, opts ...grpc.CallOption) (NavController_OnNavEventChangeClient, error)
	// NewRoute 新建线路
	//
	// 无线导航不支持通过此方法构建
	NewRoute(ctx context.Context, in *NewRouteRequest, opts ...grpc.CallOption) (*NewRouteResponse, error)
	// ListRoutes 获取线路列表
	//
	// 无线导航此数据为地图数据的预设点数据,
	// 可通过navService.Map获取更明细数据
	ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (*ListRoutesResponse, error)
	// UpdateRoute 更新线路信息
	//
	// 无线导航不支持通过此方法更新
	UpdateRoute(ctx context.Context, in *UpdateRouteRequest, opts ...grpc.CallOption) (*UpdateRouteResponse, error)
	// DeleteRoutes 删除多个线路
	//
	// 无线导航不支持通过此方法删除
	DeleteRoutes(ctx context.Context, in *DeleteRoutesRequest, opts ...grpc.CallOption) (*DeleteRoutesResponse, error)
}

NavControllerClient is the client API for NavController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type NavControllerServer interface {
	// Move 遥控移动
	//
	// 遥控移动需持续发送移动指令,通常为300ms
	Move(NavController_MoveServer) error
	// NavTo 导航
	NavTo(context.Context, *NavToRequest) (*NavToResponse, error)
	// NavStop 中止
	//
	// 支持导航、旋转的中止
	//
	// 导航中止后,可通过NavTo中CONTINUE恢复该目标导航
	NavStop(context.Context, *NavStopRequest) (*NavStopResponse, error)
	// AutoCharge 自动充电
	//
	// 开发管理平台功能参考: http://10.10.10.2/power
	AutoCharge(context.Context, *AutoChargeRequest) (*AutoChargeResponse, error)
	// Rotate 原地旋转
	Rotate(context.Context, *RotateRequest) (*RotateResponse, error)
	// OnNavEventChange 导航事件监听
	//
	// 监听导航模块中各类事件的变动更新,详见OnNavEventChangeResponse
	OnNavEventChange(*OnNavEventChangeRequest, NavController_OnNavEventChangeServer) error
	// NewRoute 新建线路
	//
	// 无线导航不支持通过此方法构建
	NewRoute(context.Context, *NewRouteRequest) (*NewRouteResponse, error)
	// ListRoutes 获取线路列表
	//
	// 无线导航此数据为地图数据的预设点数据,
	// 可通过navService.Map获取更明细数据
	ListRoutes(context.Context, *ListRoutesRequest) (*ListRoutesResponse, error)
	// UpdateRoute 更新线路信息
	//
	// 无线导航不支持通过此方法更新
	UpdateRoute(context.Context, *UpdateRouteRequest) (*UpdateRouteResponse, error)
	// DeleteRoutes 删除多个线路
	//
	// 无线导航不支持通过此方法删除
	DeleteRoutes(context.Context, *DeleteRoutesRequest) (*DeleteRoutesResponse, error)
}

NavControllerServer is the server API for NavController service.

type NavController_MoveClient interface {
	Send(*MoveRequest) error
	Recv() (*MoveResponse, error)
	grpc.ClientStream
}
type NavController_MoveServer interface {
	Send(*MoveResponse) error
	Recv() (*MoveRequest, error)
	grpc.ServerStream
}
type NavController_OnNavEventChangeClient interface {
	Recv() (*OnNavEventChangeResponse, error)
	grpc.ClientStream
}
type NavController_OnNavEventChangeServer interface {
	Send(*OnNavEventChangeResponse) error
	grpc.ServerStream
}
type NavEvent struct {
	StatusCode           StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=navService.StatusCode" json:"status_code,omitempty"`
	NavTarget            *NavTarget `protobuf:"bytes,2,opt,name=nav_target,json=navTarget,proto3" json:"nav_target,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

导航事件

func (*NavEvent) Descriptor() ([]byte, []int)
func (m *NavEvent) GetNavTarget() *NavTarget
func (m *NavEvent) GetStatusCode() StatusCode
func (*NavEvent) ProtoMessage()
func (m *NavEvent) Reset()
func (m *NavEvent) String() string
func (m *NavEvent) XXX_DiscardUnknown()
func (m *NavEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NavEvent) XXX_Merge(src proto.Message)
func (m *NavEvent) XXX_Size() int
func (m *NavEvent) XXX_Unmarshal(b []byte) error
type NavEventType int32

导航事件

const (
	// 事件零值(不使用)
	NavEventType_NAV_EVENT_REVERSED NavEventType = 0
	// 移动事件
	NavEventType_MOVE_EVENT NavEventType = 1
	// 导航事件
	NavEventType_NAV_EVENT NavEventType = 2
	// 自动充电事件
	NavEventType_AUTO_CHARGE_EVENT NavEventType = 3
	// 旋转状态事件
	NavEventType_ROTATE_EVENT NavEventType = 4
)
func (NavEventType) EnumDescriptor() ([]byte, []int)
func (x NavEventType) String() string
type NavRoaming struct {
	// 漫游类型
	NavRoamingType RoamingType `` /* 134-byte string literal not displayed */
	// 到达漫游点后等待时间
	// 0为不等待(默认)
	// -1为无限等待可通过ROAMING_TYPE_CONTINUE继续
	WaitSec int32 `protobuf:"varint,2,opt,name=wait_sec,json=waitSec,proto3" json:"wait_sec,omitempty"`
	// 漫游点索引, 为空时将漫游全部点
	// 仅在有序漫游中有效
	//
	// 索引点配置后将根据配置的路径漫游
	//    e.g. ["0", "3", "1", "2", "3", "0"]
	RoamingTargetIndexes []string `protobuf:"bytes,3,rep,name=roaming_target_indexes,json=roamingTargetIndexes,proto3" json:"roaming_target_indexes,omitempty"`
	// 是否循环漫游
	//
	// 仅在有序漫游中有效
	//
	// 此参数用于标识漫游的结束判断,
	// e.g. ["0", "1", "2"]
	// true: ["0", "1", "2", "0", "1", "2"...]
	// false: ["0", "1", "2", "0"]
	OrderLoop            bool     `protobuf:"varint,4,opt,name=order_loop,json=orderLoop,proto3" json:"order_loop,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}
func (*NavRoaming) Descriptor() ([]byte, []int)
func (m *NavRoaming) GetNavRoamingType() RoamingType
func (m *NavRoaming) GetOrderLoop() bool
func (m *NavRoaming) GetRoamingTargetIndexes() []string
func (m *NavRoaming) GetWaitSec() int32
func (*NavRoaming) ProtoMessage()
func (m *NavRoaming) Reset()
func (m *NavRoaming) String() string
func (m *NavRoaming) XXX_DiscardUnknown()
func (m *NavRoaming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NavRoaming) XXX_Merge(src proto.Message)
func (m *NavRoaming) XXX_Size() int
func (m *NavRoaming) XXX_Unmarshal(b []byte) error
type NavStopRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

导航停止请求

func (*NavStopRequest) Descriptor() ([]byte, []int)
func (*NavStopRequest) ProtoMessage()
func (m *NavStopRequest) Reset()
func (m *NavStopRequest) String() string
func (m *NavStopRequest) XXX_DiscardUnknown()
func (m *NavStopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NavStopRequest) XXX_Merge(src proto.Message)
func (m *NavStopRequest) XXX_Size() int
func (m *NavStopRequest) XXX_Unmarshal(b []byte) error
type NavStopResponse struct {
	StatusCode           StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=navService.StatusCode" json:"status_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

导航停止状态

func (*NavStopResponse) Descriptor() ([]byte, []int)
func (m *NavStopResponse) GetStatusCode() StatusCode
func (*NavStopResponse) ProtoMessage()
func (m *NavStopResponse) Reset()
func (m *NavStopResponse) String() string
func (m *NavStopResponse) XXX_DiscardUnknown()
func (m *NavStopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NavStopResponse) XXX_Merge(src proto.Message)
func (m *NavStopResponse) XXX_Size() int
func (m *NavStopResponse) XXX_Unmarshal(b []byte) error
type NavTarget struct {
	Index                string   `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

导航目标信息

func (*NavTarget) Descriptor() ([]byte, []int)
func (m *NavTarget) GetIndex() string
func (m *NavTarget) GetName() string
func (*NavTarget) ProtoMessage()
func (m *NavTarget) Reset()
func (m *NavTarget) String() string
func (m *NavTarget) XXX_DiscardUnknown()
func (m *NavTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NavTarget) XXX_Merge(src proto.Message)
func (m *NavTarget) XXX_Size() int
func (m *NavTarget) XXX_Unmarshal(b []byte) error
type NavToRequest struct {
	// Types that are valid to be assigned to TargetOneof:
	//	*NavToRequest_Target
	//	*NavToRequest_Roaming
	//	*NavToRequest_MapPosition
	TargetOneof isNavToRequest_TargetOneof `protobuf_oneof:"target_oneof"`
	// 导航移动速度
	//
	// 无线导航不支持动态配置
	Speed uint32 `protobuf:"varint,2,opt,name=speed,proto3" json:"speed,omitempty"`
	// 同步模式标识
	//
	// 此标识用于请求结果是否等待导航的结束(成功/失败)
	// 漫游模式下此参数强制为false
	//
	// *false:
	//    不等待导航结果,需关注导航过程应通过OnNavEventChange
	//
	// true:
	//    等待导航完成结束(成功/失败)
	SyncMode             bool     `protobuf:"varint,4,opt,name=sync_mode,json=syncMode,proto3" json:"sync_mode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

导航请求

func (*NavToRequest) Descriptor() ([]byte, []int)
func (m *NavToRequest) GetMapPosition() *MapPosition
func (m *NavToRequest) GetRoaming() *NavRoaming
func (m *NavToRequest) GetSpeed() uint32
func (m *NavToRequest) GetSyncMode() bool
func (m *NavToRequest) GetTarget() *NavTarget
func (m *NavToRequest) GetTargetOneof() isNavToRequest_TargetOneof
func (*NavToRequest) ProtoMessage()
func (m *NavToRequest) Reset()
func (m *NavToRequest) String() string
func (m *NavToRequest) XXX_DiscardUnknown()
func (m *NavToRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NavToRequest) XXX_Merge(src proto.Message)
func (*NavToRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (m *NavToRequest) XXX_Size() int
func (m *NavToRequest) XXX_Unmarshal(b []byte) error
type NavToRequest_MapPosition struct {
	MapPosition *MapPosition `protobuf:"bytes,5,opt,name=map_position,json=mapPosition,proto3,oneof"`
}
type NavToRequest_Roaming struct {
	Roaming *NavRoaming `protobuf:"bytes,3,opt,name=roaming,proto3,oneof"`
}
type NavToRequest_Target struct {
	Target *NavTarget `protobuf:"bytes,1,opt,name=target,proto3,oneof"`
}
type NavToResponse struct {
	StatusCode StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=navService.StatusCode" json:"status_code,omitempty"`
	// Types that are valid to be assigned to TargetOneof:
	//	*NavToResponse_Target
	//	*NavToResponse_IsRoaming
	//	*NavToResponse_MapPosition
	TargetOneof          isNavToResponse_TargetOneof `protobuf_oneof:"target_oneof"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

导航状态

func (*NavToResponse) Descriptor() ([]byte, []int)
func (m *NavToResponse) GetIsRoaming() bool
func (m *NavToResponse) GetMapPosition() *MapPosition
func (m *NavToResponse) GetStatusCode() StatusCode
func (m *NavToResponse) GetTarget() *NavTarget
func (m *NavToResponse) GetTargetOneof() isNavToResponse_TargetOneof
func (*NavToResponse) ProtoMessage()
func (m *NavToResponse) Reset()
func (m *NavToResponse) String() string
func (m *NavToResponse) XXX_DiscardUnknown()
func (m *NavToResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NavToResponse) XXX_Merge(src proto.Message)
func (*NavToResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (m *NavToResponse) XXX_Size() int
func (m *NavToResponse) XXX_Unmarshal(b []byte) error
type NavToResponse_IsRoaming struct {
	IsRoaming bool `protobuf:"varint,3,opt,name=is_roaming,json=isRoaming,proto3,oneof"`
}
type NavToResponse_MapPosition struct {
	MapPosition *MapPosition `protobuf:"bytes,4,opt,name=map_position,json=mapPosition,proto3,oneof"`
}
type NavToResponse_Target struct {
	Target *NavTarget `protobuf:"bytes,2,opt,name=target,proto3,oneof"`
}

type NewRouteRequest

type NewRouteRequest struct {
	Route                *Route   `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

创建线路请求 route.name为空时将创建随机名 route.is_active仅允许唯一激活, 若创建线路指定为激活将自动设置此线路为激活 route.route_points若为空将自动创建默认数量线路点

func (*NewRouteRequest) Descriptor

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

func (*NewRouteRequest) GetRoute

func (m *NewRouteRequest) GetRoute() *Route

func (*NewRouteRequest) ProtoMessage

func (*NewRouteRequest) ProtoMessage()

func (*NewRouteRequest) Reset

func (m *NewRouteRequest) Reset()

func (*NewRouteRequest) String

func (m *NewRouteRequest) String() string

func (*NewRouteRequest) XXX_DiscardUnknown

func (m *NewRouteRequest) XXX_DiscardUnknown()

func (*NewRouteRequest) XXX_Marshal

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

func (*NewRouteRequest) XXX_Merge

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

func (*NewRouteRequest) XXX_Size

func (m *NewRouteRequest) XXX_Size() int

func (*NewRouteRequest) XXX_Unmarshal

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

type NewRouteResponse

type NewRouteResponse struct {
	Route                *Route   `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewRouteResponse) Descriptor

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

func (*NewRouteResponse) GetRoute

func (m *NewRouteResponse) GetRoute() *Route

func (*NewRouteResponse) ProtoMessage

func (*NewRouteResponse) ProtoMessage()

func (*NewRouteResponse) Reset

func (m *NewRouteResponse) Reset()

func (*NewRouteResponse) String

func (m *NewRouteResponse) String() string

func (*NewRouteResponse) XXX_DiscardUnknown

func (m *NewRouteResponse) XXX_DiscardUnknown()

func (*NewRouteResponse) XXX_Marshal

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

func (*NewRouteResponse) XXX_Merge

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

func (*NewRouteResponse) XXX_Size

func (m *NewRouteResponse) XXX_Size() int

func (*NewRouteResponse) XXX_Unmarshal

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

type OnNavEventChangeRequest

type OnNavEventChangeRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OnNavEventChangeRequest) Descriptor

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

func (*OnNavEventChangeRequest) ProtoMessage

func (*OnNavEventChangeRequest) ProtoMessage()

func (*OnNavEventChangeRequest) Reset

func (m *OnNavEventChangeRequest) Reset()

func (*OnNavEventChangeRequest) String

func (m *OnNavEventChangeRequest) String() string

func (*OnNavEventChangeRequest) XXX_DiscardUnknown

func (m *OnNavEventChangeRequest) XXX_DiscardUnknown()

func (*OnNavEventChangeRequest) XXX_Marshal

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

func (*OnNavEventChangeRequest) XXX_Merge

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

func (*OnNavEventChangeRequest) XXX_Size

func (m *OnNavEventChangeRequest) XXX_Size() int

func (*OnNavEventChangeRequest) XXX_Unmarshal

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

type OnNavEventChangeResponse

type OnNavEventChangeResponse struct {
	NavEventType NavEventType `` /* 129-byte string literal not displayed */
	// Types that are valid to be assigned to ChangeOneof:
	//	*OnNavEventChangeResponse_MoveEvent
	//	*OnNavEventChangeResponse_NavEvent
	//	*OnNavEventChangeResponse_RotateEvent
	//	*OnNavEventChangeResponse_AutoChargeEvent
	ChangeOneof          isOnNavEventChangeResponse_ChangeOneof `protobuf_oneof:"change_oneof"`
	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
	XXX_unrecognized     []byte                                 `json:"-"`
	XXX_sizecache        int32                                  `json:"-"`
}

func (*OnNavEventChangeResponse) Descriptor

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

func (*OnNavEventChangeResponse) GetAutoChargeEvent

func (m *OnNavEventChangeResponse) GetAutoChargeEvent() *AutoChargeEvent

func (*OnNavEventChangeResponse) GetChangeOneof

func (m *OnNavEventChangeResponse) GetChangeOneof() isOnNavEventChangeResponse_ChangeOneof

func (*OnNavEventChangeResponse) GetMoveEvent

func (m *OnNavEventChangeResponse) GetMoveEvent() *MoveEvent

func (*OnNavEventChangeResponse) GetNavEvent

func (m *OnNavEventChangeResponse) GetNavEvent() *NavEvent

func (*OnNavEventChangeResponse) GetNavEventType

func (m *OnNavEventChangeResponse) GetNavEventType() NavEventType

func (*OnNavEventChangeResponse) GetRotateEvent

func (m *OnNavEventChangeResponse) GetRotateEvent() *RotateEvent

func (*OnNavEventChangeResponse) ProtoMessage

func (*OnNavEventChangeResponse) ProtoMessage()

func (*OnNavEventChangeResponse) Reset

func (m *OnNavEventChangeResponse) Reset()

func (*OnNavEventChangeResponse) String

func (m *OnNavEventChangeResponse) String() string

func (*OnNavEventChangeResponse) XXX_DiscardUnknown

func (m *OnNavEventChangeResponse) XXX_DiscardUnknown()

func (*OnNavEventChangeResponse) XXX_Marshal

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

func (*OnNavEventChangeResponse) XXX_Merge

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

func (*OnNavEventChangeResponse) XXX_OneofWrappers

func (*OnNavEventChangeResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*OnNavEventChangeResponse) XXX_Size

func (m *OnNavEventChangeResponse) XXX_Size() int

func (*OnNavEventChangeResponse) XXX_Unmarshal

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

type OnNavEventChangeResponse_AutoChargeEvent

type OnNavEventChangeResponse_AutoChargeEvent struct {
	AutoChargeEvent *AutoChargeEvent `protobuf:"bytes,5,opt,name=auto_charge_event,json=autoChargeEvent,proto3,oneof"`
}

type OnNavEventChangeResponse_MoveEvent

type OnNavEventChangeResponse_MoveEvent struct {
	MoveEvent *MoveEvent `protobuf:"bytes,2,opt,name=move_event,json=moveEvent,proto3,oneof"`
}

type OnNavEventChangeResponse_NavEvent

type OnNavEventChangeResponse_NavEvent struct {
	NavEvent *NavEvent `protobuf:"bytes,3,opt,name=nav_event,json=navEvent,proto3,oneof"`
}

type OnNavEventChangeResponse_RotateEvent

type OnNavEventChangeResponse_RotateEvent struct {
	RotateEvent *RotateEvent `protobuf:"bytes,4,opt,name=rotate_event,json=rotateEvent,proto3,oneof"`
}

type RoamingType

type RoamingType int32

导航漫游方式

const (
	// 继续漫游
	RoamingType_ROAMING_TYPE_CONTINUE RoamingType = 0
	// 有序漫游
	RoamingType_ROAMING_TYPE_ORDER RoamingType = 1
	// 随机漫游
	RoamingType_ROAMING_TYPE_RANDOM RoamingType = 2
)

func (RoamingType) EnumDescriptor

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

func (RoamingType) String

func (x RoamingType) String() string

type RotateEvent

type RotateEvent struct {
	StatusCode           StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=navService.StatusCode" json:"status_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

旋转事件

func (*RotateEvent) Descriptor

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

func (*RotateEvent) GetStatusCode

func (m *RotateEvent) GetStatusCode() StatusCode

func (*RotateEvent) ProtoMessage

func (*RotateEvent) ProtoMessage()

func (*RotateEvent) Reset

func (m *RotateEvent) Reset()

func (*RotateEvent) String

func (m *RotateEvent) String() string

func (*RotateEvent) XXX_DiscardUnknown

func (m *RotateEvent) XXX_DiscardUnknown()

func (*RotateEvent) XXX_Marshal

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

func (*RotateEvent) XXX_Merge

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

func (*RotateEvent) XXX_Size

func (m *RotateEvent) XXX_Size() int

func (*RotateEvent) XXX_Unmarshal

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

type RotateRequest

type RotateRequest struct {
	// Types that are valid to be assigned to RotateOneof:
	//	*RotateRequest_Angle
	//	*RotateRequest_Rollback
	RotateOneof          isRotateRequest_RotateOneof `protobuf_oneof:"rotate_oneof"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

原地旋转请求

func (*RotateRequest) Descriptor

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

func (*RotateRequest) GetAngle

func (m *RotateRequest) GetAngle() int32

func (*RotateRequest) GetRollback

func (m *RotateRequest) GetRollback() bool

func (*RotateRequest) GetRotateOneof

func (m *RotateRequest) GetRotateOneof() isRotateRequest_RotateOneof

func (*RotateRequest) ProtoMessage

func (*RotateRequest) ProtoMessage()

func (*RotateRequest) Reset

func (m *RotateRequest) Reset()

func (*RotateRequest) String

func (m *RotateRequest) String() string

func (*RotateRequest) XXX_DiscardUnknown

func (m *RotateRequest) XXX_DiscardUnknown()

func (*RotateRequest) XXX_Marshal

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

func (*RotateRequest) XXX_Merge

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

func (*RotateRequest) XXX_OneofWrappers

func (*RotateRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RotateRequest) XXX_Size

func (m *RotateRequest) XXX_Size() int

func (*RotateRequest) XXX_Unmarshal

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

type RotateRequest_Angle

type RotateRequest_Angle struct {
	Angle int32 `protobuf:"varint,1,opt,name=angle,proto3,oneof"`
}

type RotateRequest_Rollback

type RotateRequest_Rollback struct {
	Rollback bool `protobuf:"varint,2,opt,name=rollback,proto3,oneof"`
}

type RotateResponse

type RotateResponse struct {
	StatusCode           StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=navService.StatusCode" json:"status_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*RotateResponse) Descriptor

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

func (*RotateResponse) GetStatusCode

func (m *RotateResponse) GetStatusCode() StatusCode

func (*RotateResponse) ProtoMessage

func (*RotateResponse) ProtoMessage()

func (*RotateResponse) Reset

func (m *RotateResponse) Reset()

func (*RotateResponse) String

func (m *RotateResponse) String() string

func (*RotateResponse) XXX_DiscardUnknown

func (m *RotateResponse) XXX_DiscardUnknown()

func (*RotateResponse) XXX_Marshal

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

func (*RotateResponse) XXX_Merge

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

func (*RotateResponse) XXX_Size

func (m *RotateResponse) XXX_Size() int

func (*RotateResponse) XXX_Unmarshal

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

type Route

type Route struct {
	Id                   string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IsActive             bool          `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	RoutePoints          []*RoutePoint `protobuf:"bytes,4,rep,name=route_points,json=routePoints,proto3" json:"route_points,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

线路数据

func (*Route) Descriptor

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

func (*Route) GetId

func (m *Route) GetId() string

func (*Route) GetIsActive

func (m *Route) GetIsActive() bool

func (*Route) GetName

func (m *Route) GetName() string

func (*Route) GetRoutePoints

func (m *Route) GetRoutePoints() []*RoutePoint

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) XXX_DiscardUnknown

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal

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

func (*Route) XXX_Merge

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

func (*Route) XXX_Size

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal

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

type RoutePoint

type RoutePoint struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Rotate               uint32   `protobuf:"varint,2,opt,name=rotate,proto3" json:"rotate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

线路点数据

func (*RoutePoint) Descriptor

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

func (*RoutePoint) GetName

func (m *RoutePoint) GetName() string

func (*RoutePoint) GetRotate

func (m *RoutePoint) GetRotate() uint32

func (*RoutePoint) ProtoMessage

func (*RoutePoint) ProtoMessage()

func (*RoutePoint) Reset

func (m *RoutePoint) Reset()

func (*RoutePoint) String

func (m *RoutePoint) String() string

func (*RoutePoint) XXX_DiscardUnknown

func (m *RoutePoint) XXX_DiscardUnknown()

func (*RoutePoint) XXX_Marshal

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

func (*RoutePoint) XXX_Merge

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

func (*RoutePoint) XXX_Size

func (m *RoutePoint) XXX_Size() int

func (*RoutePoint) XXX_Unmarshal

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

type StatusCode

type StatusCode int32
const (
	// 状态零值, 不使用
	StatusCode_UNKNOWN StatusCode = 0
	// 停止状态
	// 遥控移动状态: 已停止
	// 导航状态: 导航结束
	// 旋转状态: 旋转结束
	StatusCode_STOPPED StatusCode = 1
	// 移动中状态
	// 遥控移动状态: 遥控移动中
	// 导航状态: 导航移动中
	// 旋转状态: 旋转中
	StatusCode_MOVING StatusCode = 2
	// 准备状态
	// 导航状态: 导航准备中
	// 旋转状态: 旋转准备中
	StatusCode_PREPARING StatusCode = 3
	// 用户取消状态
	// 导航状态: 导航被中止
	// 旋转状态: 旋转被中止
	StatusCode_CANCEL StatusCode = 4
	// 遥控控制权释放状态
	// 遥控移动状态: 遥控权限超时释放,
	// 其它遥控端可接管遥控控制权,
	// 其它类型操作可接管
	StatusCode_RELEASED StatusCode = 5
	// 遇到障碍物
	// 遥控移动状态: 遥控移动遇到障碍物
	// 导航状态: 导航过程中遇到障碍(自动导航方式支持自动避障)
	StatusCode_ERR_OBSTACLE StatusCode = 10
	// 未就绪状态
	StatusCode_ERR_NOT_READY StatusCode = 11
	// 电机错误
	StatusCode_ERR_MOTOR_FAIL StatusCode = 12
	// 导航目标错误
	StatusCode_ERR_WRONG_TARGET StatusCode = 13
	// 操作被拒绝, 当前遥控移动中
	StatusCode_REJ_MOVING StatusCode = 20
	// 操作被拒绝, 当前导航中
	StatusCode_REJ_NAVING StatusCode = 21
	// 操作被拒绝, 当前充电中
	StatusCode_REJ_CHARGING StatusCode = 22
	// 操作被拒绝, 当前旋转中
	StatusCode_REJ_ROTATING StatusCode = 23
)

func (StatusCode) EnumDescriptor

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

func (StatusCode) String

func (x StatusCode) String() string

type UnimplementedMapServer

type UnimplementedMapServer struct {
}

UnimplementedMapServer can be embedded to have forward compatible implementations.

func (*UnimplementedMapServer) GetMapInfo

func (*UnimplementedMapServer) LocationReset

func (*UnimplementedMapServer) MapPositionStream

type UnimplementedNavControllerServer

type UnimplementedNavControllerServer struct {
}

UnimplementedNavControllerServer can be embedded to have forward compatible implementations.

func (*UnimplementedNavControllerServer) AutoCharge

func (*UnimplementedNavControllerServer) DeleteRoutes

func (*UnimplementedNavControllerServer) ListRoutes

func (*UnimplementedNavControllerServer) Move

func (*UnimplementedNavControllerServer) NavStop

func (*UnimplementedNavControllerServer) NavTo

func (*UnimplementedNavControllerServer) NewRoute

func (*UnimplementedNavControllerServer) OnNavEventChange

func (*UnimplementedNavControllerServer) Rotate

func (*UnimplementedNavControllerServer) UpdateRoute

type UpdateRouteRequest

type UpdateRouteRequest struct {
	Route                *Route   `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

更新线路请求 route.id根据此id获取线路 route.name不可为空 route.route_points不可为空

func (*UpdateRouteRequest) Descriptor

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

func (*UpdateRouteRequest) GetRoute

func (m *UpdateRouteRequest) GetRoute() *Route

func (*UpdateRouteRequest) ProtoMessage

func (*UpdateRouteRequest) ProtoMessage()

func (*UpdateRouteRequest) Reset

func (m *UpdateRouteRequest) Reset()

func (*UpdateRouteRequest) String

func (m *UpdateRouteRequest) String() string

func (*UpdateRouteRequest) XXX_DiscardUnknown

func (m *UpdateRouteRequest) XXX_DiscardUnknown()

func (*UpdateRouteRequest) XXX_Marshal

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

func (*UpdateRouteRequest) XXX_Merge

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

func (*UpdateRouteRequest) XXX_Size

func (m *UpdateRouteRequest) XXX_Size() int

func (*UpdateRouteRequest) XXX_Unmarshal

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

type UpdateRouteResponse

type UpdateRouteResponse struct {
	Route                *Route   `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateRouteResponse) Descriptor

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

func (*UpdateRouteResponse) GetRoute

func (m *UpdateRouteResponse) GetRoute() *Route

func (*UpdateRouteResponse) ProtoMessage

func (*UpdateRouteResponse) ProtoMessage()

func (*UpdateRouteResponse) Reset

func (m *UpdateRouteResponse) Reset()

func (*UpdateRouteResponse) String

func (m *UpdateRouteResponse) String() string

func (*UpdateRouteResponse) XXX_DiscardUnknown

func (m *UpdateRouteResponse) XXX_DiscardUnknown()

func (*UpdateRouteResponse) XXX_Marshal

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

func (*UpdateRouteResponse) XXX_Merge

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

func (*UpdateRouteResponse) XXX_Size

func (m *UpdateRouteResponse) XXX_Size() int

func (*UpdateRouteResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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