add note
This commit is contained in:
@@ -2,9 +2,6 @@ package com.mogo.realtime.entity;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020/10/25
|
||||
*
|
||||
* adas 识别物体参数
|
||||
*/
|
||||
class ADASRecognizedResult {
|
||||
@@ -25,7 +22,7 @@ class ADASRecognizedResult {
|
||||
public String color;
|
||||
|
||||
/**
|
||||
*
|
||||
* 车ID
|
||||
*/
|
||||
public String carId;
|
||||
|
||||
@@ -40,7 +37,7 @@ class ADASRecognizedResult {
|
||||
public double lon;
|
||||
|
||||
/**
|
||||
* 朝向
|
||||
* 车头朝向
|
||||
*/
|
||||
public double heading;
|
||||
|
||||
|
||||
@@ -10,17 +10,43 @@ import com.mogo.cloud.commons.utils.CoordinateUtils;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 云端定位信息和自车定位信息
|
||||
*
|
||||
* @author tongchenfei
|
||||
* 自车定位信息
|
||||
*/
|
||||
public class CloudLocationInfo implements Parcelable {
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
private double lat;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
private double lon;
|
||||
|
||||
/**
|
||||
* 车头方向
|
||||
*/
|
||||
private double heading;
|
||||
|
||||
/**
|
||||
* 系统时间
|
||||
*/
|
||||
private long systemTime;
|
||||
|
||||
/**
|
||||
* 卫星时间
|
||||
*/
|
||||
private long satelliteTime;
|
||||
|
||||
/**
|
||||
* 海拔
|
||||
*/
|
||||
private double alt;
|
||||
|
||||
/**
|
||||
* 车速
|
||||
*/
|
||||
private double speed;
|
||||
|
||||
public CloudLocationInfo() {
|
||||
|
||||
@@ -7,9 +7,7 @@ import android.text.TextUtils;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 云端道路数据
|
||||
*
|
||||
* @author tongchenfei
|
||||
* AI云平台下发 道路数据
|
||||
*/
|
||||
public class CloudRoadData implements Parcelable {
|
||||
|
||||
@@ -46,9 +44,9 @@ public class CloudRoadData implements Parcelable {
|
||||
/**
|
||||
* 视频流直播地址
|
||||
*/
|
||||
private String rtmpUrl;//
|
||||
private String rtmpUrl;
|
||||
|
||||
private double distance;//距离
|
||||
private double distance;
|
||||
|
||||
private List< CloudLocationInfo > coordinates;
|
||||
|
||||
|
||||
@@ -3,17 +3,13 @@ package com.mogo.realtime.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public
|
||||
/*
|
||||
* @author congtaowang
|
||||
* @since 2020/10/25
|
||||
*
|
||||
* 自车定位信息
|
||||
*/
|
||||
class LocationResult {
|
||||
public class LocationResult {
|
||||
|
||||
/**
|
||||
* sn
|
||||
* sn 车辆唯一识别号
|
||||
*/
|
||||
public String sn;
|
||||
|
||||
|
||||
@@ -5,38 +5,51 @@ import android.os.Parcelable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public
|
||||
/*
|
||||
* @author congtaowang
|
||||
* @since 2020/10/26
|
||||
*
|
||||
* 描述
|
||||
* AI云平台下发 自车周边数据
|
||||
*/
|
||||
class MogoSnapshotSetData implements Parcelable {
|
||||
public class MogoSnapshotSetData implements Parcelable {
|
||||
|
||||
/**
|
||||
* 消息ID
|
||||
*/
|
||||
private String msgId;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
private long time;
|
||||
|
||||
//过期时间
|
||||
/**
|
||||
* 过期时间
|
||||
*/
|
||||
private long expire;
|
||||
|
||||
//总数据集合
|
||||
/**
|
||||
* 道路数据集合
|
||||
*/
|
||||
private List<CloudRoadData> allList;
|
||||
|
||||
// 近景adas数据
|
||||
/**
|
||||
* 近景adas数据
|
||||
*/
|
||||
private List<CloudRoadData> nearList;
|
||||
|
||||
//红绿灯
|
||||
/**
|
||||
* 红绿灯
|
||||
*/
|
||||
private CloudRoadData trafficLight;
|
||||
|
||||
//路边摄像头
|
||||
/**
|
||||
* 路边摄像头
|
||||
*/
|
||||
private CloudRoadData camera;
|
||||
|
||||
// 自车速度 本地添加
|
||||
/**
|
||||
* 自车速度 本地添加
|
||||
*/
|
||||
public double curSpeed = 0.0;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MogoSnapshotSetData{" +
|
||||
@@ -98,11 +111,11 @@ class MogoSnapshotSetData implements Parcelable {
|
||||
this.camera = camera;
|
||||
}
|
||||
|
||||
public List< CloudRoadData > getNearList() {
|
||||
public List<CloudRoadData> getNearList() {
|
||||
return nearList;
|
||||
}
|
||||
|
||||
public void setNearList( List< CloudRoadData > nearList ) {
|
||||
public void setNearList(List<CloudRoadData> nearList) {
|
||||
this.nearList = nearList;
|
||||
}
|
||||
|
||||
@@ -115,36 +128,36 @@ class MogoSnapshotSetData implements Parcelable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel( Parcel dest, int flags ) {
|
||||
dest.writeString( this.msgId );
|
||||
dest.writeLong( this.time );
|
||||
dest.writeLong( this.expire );
|
||||
dest.writeTypedList( this.allList );
|
||||
dest.writeTypedList( this.nearList );
|
||||
dest.writeParcelable( this.trafficLight, flags );
|
||||
dest.writeParcelable( this.camera, flags );
|
||||
dest.writeDouble( this.curSpeed );
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeString(this.msgId);
|
||||
dest.writeLong(this.time);
|
||||
dest.writeLong(this.expire);
|
||||
dest.writeTypedList(this.allList);
|
||||
dest.writeTypedList(this.nearList);
|
||||
dest.writeParcelable(this.trafficLight, flags);
|
||||
dest.writeParcelable(this.camera, flags);
|
||||
dest.writeDouble(this.curSpeed);
|
||||
}
|
||||
|
||||
protected MogoSnapshotSetData(Parcel in ) {
|
||||
protected MogoSnapshotSetData(Parcel in) {
|
||||
this.msgId = in.readString();
|
||||
this.time = in.readLong();
|
||||
this.expire = in.readLong();
|
||||
this.allList = in.createTypedArrayList( CloudRoadData.CREATOR );
|
||||
this.nearList = in.createTypedArrayList( CloudRoadData.CREATOR );
|
||||
this.trafficLight = in.readParcelable( CloudRoadData.class.getClassLoader() );
|
||||
this.camera = in.readParcelable( CloudRoadData.class.getClassLoader() );
|
||||
this.allList = in.createTypedArrayList(CloudRoadData.CREATOR);
|
||||
this.nearList = in.createTypedArrayList(CloudRoadData.CREATOR);
|
||||
this.trafficLight = in.readParcelable(CloudRoadData.class.getClassLoader());
|
||||
this.camera = in.readParcelable(CloudRoadData.class.getClassLoader());
|
||||
this.curSpeed = in.readDouble();
|
||||
}
|
||||
|
||||
public static final Creator<MogoSnapshotSetData> CREATOR = new Creator<MogoSnapshotSetData>() {
|
||||
@Override
|
||||
public MogoSnapshotSetData createFromParcel(Parcel source ) {
|
||||
return new MogoSnapshotSetData( source );
|
||||
public MogoSnapshotSetData createFromParcel(Parcel source) {
|
||||
return new MogoSnapshotSetData(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MogoSnapshotSetData[] newArray(int size ) {
|
||||
public MogoSnapshotSetData[] newArray(int size) {
|
||||
return new MogoSnapshotSetData[size];
|
||||
}
|
||||
};
|
||||
|
||||
@@ -3,14 +3,10 @@ package com.mogo.realtime.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020/10/25
|
||||
*
|
||||
* 一秒一次的上行数据
|
||||
* 自车上报数据 1s内一次
|
||||
*/
|
||||
class OnePerSecondSendContent {
|
||||
public class OnePerSecondSendContent {
|
||||
|
||||
/**
|
||||
* 自车定位点
|
||||
|
||||
Reference in New Issue
Block a user