The present invention relates to a method for detecting trajectory deviation. It is impossible to make a correct judgment by GPS positioning according to the judgment of the planned route during the running of the existing net-restricted vehicle. In order to solve the above problems, a method of detecting trajectory deviation includes the following steps: first step: real-time selection of adjacent coordinate points A and B, and line of point A and B as line L; second step: calculation of the nearest distance set of each line segment from real-time position P to line L of the vehicle to find the minimum value in the set; third step: comparison of the minimum value with the set threshold, such as If the deviation trajectory is larger than the set threshold, then the deviation trajectory is determined, and if the deviation trajectory is smaller than the set threshold, the deviation trajectory is not determined. The method for detecting the deviation of trajectory provided by the invention can accurately judge whether the driving of the net-appointed vehicle deviates from the planned route.
【技术实现步骤摘要】
一种检测轨迹偏离的方法
本专利技术属于网约车是否按导航轨迹行驶,涉及一种检测轨迹偏离的方法。
技术介绍
乘客在打车的时候,手机地图会给出最佳路线,但是在实际行驶中,司机有意或无意的没有按设定好的路线行驶,这时候需要提醒司机和乘客偏移了规划路线。一般对于是否偏离规划路线是通过车辆的GPS定位,看定位是否在规划的路线上,但是,GPS导航定位包括下列六种误差:.星历误差—予报的卫星位置的误差;.星钟差—予报的卫星钟差,包括SA;电离层误差—由于电离层效应引起的观测值的误差;对流层误差—由于对流层效应引起的观测值的误差;多径误差—由于反射信号进入接收机天线引起的观测值的误差;接收机误差—由于热噪声、软件和各通道之间的偏差引起的观测值误差。定位距离误差至少有15米。但有时由于信号的强弱变化,这个数可能达20-30米了。另外,如果GPS接收设备太灵敏,会出现漂移,这种漂移就会更大了,有时会到百米以上。所以行驶车辆定位是否在规划路径上,这种方式,只能作为参考,也无法确定是否偏离轨迹。
技术实现思路
1、所要解决的技术问题:现有网约车在行驶过程中是否按照规划路线的判断通过GPS定位无法做出正确的判断。2、技术方案:为了解决以上问题,一种检测轨迹偏离的方法,包括以下步骤:第一步:实时选取相邻的坐标点A点和B点,和A点和B点直线设为线路L,第二步:计算车辆的实时位置P到线路L的每个线段的最近距离集合,找出集合中的最小值;第三步:将最小值和设定的阈值比较,如果大于设定的阈值,则判定偏离轨迹,如果小于设定的阈值,则判定没有偏离轨迹。计算当前坐标点距离其中一个线段的最短距离的计算方法为 ...
【技术保护点】
1.一种检测轨迹偏离的方法,包括以下步骤:第一步:实时选取相邻的坐标点A点和B点,和A点和B点直线设为线路L,第二步:计算车辆的实时位置P到线路L的每个线段的最近距离集合,找出集合中的最小值;第三步:将最小值和设定的阈值比较,如果大于设定的阈值,则判定偏离轨迹,如果小于设定的阈值,则判定没有偏离轨迹。
【技术特征摘要】
1.一种检测轨迹偏离的方法,包括以下步骤:第一步:实时选取相邻的坐标点A点和B点,和A点和B点直线设为线路L,第二步:计算车辆的实时位置P到线路L的每个线段的最近距离集合,找出集合中的最小值;第三步:将最小值和设定的阈值比较,如果大于设定的阈值,则判定偏离轨迹,如果小于设定的阈值,则判定没有偏离轨迹。2.如权利要求1所述的方法,其特征在于:计算当前坐标点距离其中...
【专利技术属性】
技术研发人员:王祥,刘佳宁,张利岩,孙重阳,
申请(专利权)人:中通国脉物联科技南京有限公司,
类型:发明
国别省市:江苏,32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。