This commit is contained in:
wangcongtao
2020-10-27 17:34:37 +08:00
parent ffc511b969
commit 7de1dc472e
12 changed files with 401 additions and 225 deletions

View File

@@ -114,4 +114,18 @@ public interface IMogoADASController extends IProvider {
* @return
*/
List< ADASRecognizedResult > getLastADASRecognizedResult();
/**
* 添加adas识别物体回调
*
* @param callback
*/
void addAdasRecognizedDataCallback( IMogoAdasRecognizedDataCallback callback );
/**
* 移除adas识别物体回调
*
* @param callback
*/
void removeAdasRecognizedDataCallback( IMogoAdasRecognizedDataCallback callback );
}

View File

@@ -1,5 +1,10 @@
package com.mogo.service.adas;
import com.mogo.service.adas.entity.ADASRecognizedListResult;
import com.mogo.service.adas.entity.ADASRecognizedResult;
import java.util.List;
/**
* adas 物体识别数据回调接口
*
@@ -8,7 +13,8 @@ package com.mogo.service.adas;
public interface IMogoAdasRecognizedDataCallback {
/**
* adas 数据回调
* @param msg 具体数据
*
* @param resultList 具体识别的物体数据
*/
void onAdasDataCallback( String msg );
void onAdasDataCallback( List< ADASRecognizedListResult > resultList );
}

View File

@@ -0,0 +1,29 @@
package com.mogo.service.adas.entity;
import java.util.List;
public
/**
* @author congtaowang
* @since 2020/10/25
*
* adas 识别物体参数
*/
class ADASRecognizedListResult {
public int type;
public String uuid;
public double heading;
public double speed;
public List< LatLon > latLonList;
public static class LatLon {
public LatLon( double lat, double lon ) {
this.lat = lat;
this.lon = lon;
}
public double lat;
public double lon;
}
}