本文整理汇总了Java中org.droidplanner.services.android.utils.ProxyUtils类的典型用法代码示例。如果您正苦于以下问题:Java ProxyUtils类的具体用法?Java ProxyUtils怎么用?Java ProxyUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProxyUtils类属于org.droidplanner.services.android.utils包,在下文中一共展示了ProxyUtils类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCameraProxy
import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
private CameraProxy getCameraProxy() {
Drone drone = droneMgr.getDrone();
Camera droneCamera = drone.getCamera();
List<Footprint> footprints = droneCamera.getFootprints();
final int printsCount = footprints.size();
List<FootPrint> proxyPrints = new ArrayList<FootPrint>(footprints.size());
for (Footprint footprint : footprints) {
proxyPrints.add(getProxyCameraFootPrint(footprint));
}
GPS droneGps = drone.getGps();
final FootPrint currentFieldOfView = droneGps.isPositionValid()
? getProxyCameraFootPrint(droneCamera.getCurrentFieldOfView())
: new FootPrint();
return new CameraProxy(ProxyUtils.getCameraDetail(droneCamera.getCamera()),
currentFieldOfView, proxyPrints, getCameraDetails());
}
示例2: getMission
import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
private Mission getMission() {
final Drone drone = this.droneMgr.getDrone();
org.droidplanner.core.mission.Mission droneMission = drone.getMission();
List<org.droidplanner.core.mission.MissionItem> droneMissionItems = droneMission.getItems();
Mission proxyMission = new Mission();
proxyMission.setCurrentMissionItem((short) drone.getMissionStats().getCurrentWP());
if (!droneMissionItems.isEmpty()) {
for (org.droidplanner.core.mission.MissionItem item : droneMissionItems) {
proxyMission.addMissionItem(ProxyUtils.getProxyMissionItem(item));
}
}
return proxyMission;
}
示例3: setMission
import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
@Override
public void setMission(Mission mission, boolean pushToDrone) throws RemoteException {
org.droidplanner.core.mission.Mission droneMission = this.droneMgr.getDrone().getMission();
droneMission.clearMissionItems();
List<MissionItem> itemsList = mission.getMissionItems();
for (MissionItem item : itemsList) {
droneMission.addMissionItem(ProxyUtils.getMissionItem(droneMission, item));
}
if (pushToDrone)
droneMission.sendMissionToAPM();
}
示例4: buildSurvey
import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
private Survey buildSurvey(Survey survey) {
org.droidplanner.core.mission.Mission droneMission = this.droneMgr.getDrone().getMission();
org.droidplanner.core.mission.survey.Survey updatedSurvey = (org.droidplanner.core.mission.survey.Survey) ProxyUtils.getMissionItem
(droneMission, survey);
return (Survey) ProxyUtils.getProxyMissionItem(updatedSurvey);
}
示例5: buildStructureScanner
import org.droidplanner.services.android.utils.ProxyUtils; //导入依赖的package包/类
private StructureScanner buildStructureScanner(StructureScanner item) {
org.droidplanner.core.mission.Mission droneMission = this.droneMgr.getDrone().getMission();
org.droidplanner.core.mission.waypoints.StructureScanner updatedScan = (org.droidplanner.core.mission.waypoints.StructureScanner) ProxyUtils
.getMissionItem(droneMission, item);
StructureScanner proxyScanner = (StructureScanner) ProxyUtils.getProxyMissionItem(updatedScan);
return proxyScanner;
}