Files
MoGoEagleEye/libraries/mogo-adas-data/src/main/proto/sweeper/sweeper_task.proto

91 lines
2.2 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
package com.zhjt.mogo.adas.data.sweeper.task;
import "sweeper/sweeper_common.proto";
/**** 1、云端下发大任务信息type: 100001 ****/
//1.1、请求信息
/**
点位信息
*/
message Location
{
double wgsLongitude = 1; // wgs84经度
double wgsLatitude = 2; // wgs84维度
double longitude = 3; // gcj02经度
double latitude = 4; // gcj02维度
string siteName = 5; // 站点名称
string address = 6; // 站点详细地址
}
// 任务类型枚举
enum TaskModel
{
DEFAULT_MODEL = 0; // 无效值
AUTO = 1; //自动驾驶
MANUAL = 2; //人工驾驶
}
/**
子任务列表
*/
message SubTaskInfo
{
string subTaskId = 1; // 子任务编号
string subTaskName = 2; // 子任务名称
TaskModel taskModel = 3; // 任务类型
Location startLocation = 4; // 起点
Location endLocation = 5; // 终点
uint32 lineId = 6; // 路线Id
string lineName = 7; // 路线名称
common.TaskStatus taskStatus = 8; // 任务状态
}
/**
调度任务
*/
message TaskInfo {
string sn = 1; // sn
string taskId = 2; // 大任务Id
string taskName = 3; // 大任务名称
uint64 taskStartTime = 4; //任务开始时间 时间戳
uint64 taskEndTime = 5; //任务预计结束时间 时间戳
uint64 currentTime = 6; //当前时间戳
repeated SubTaskInfo subList = 7; // 子任务列表信息
bool isPop = 8; // 是否弹窗
common.TaskStatus taskStatus = 9; // 大任务状态(新增)
}
//1.2、响应信息
// 响应状态
enum StartTaskCode {
DEFAULT_CODE = 0; // 无效值
MANUAL_CONFIRM = 1; // 安全员确认执行任务-pad无效值
MANUAL_REFUSE = 2; // 安全员拒绝任务-pad无效值
RECEIVED = 3; // 收到任务
OVER_TIME = 4; // 超时未确认(无效值)
}
/**
开始大任务响应
*/
message StartTaskResp {
string sn = 1;// sn
string taskId = 2;// 大任务编号
StartTaskCode code = 3; //响应状态
}
/**** 7、pad主动拉取当前车辆正在执行任务的完整信息 (type100007) ****/
//7.1、请求信息
/**
pad主动拉取当前车辆正在执行任务的完整信息请求
*/
message GetTaskReq {
string sn = 1;// sn
}
//7.2 (1.1)