@aibee/crc-bmap 0.8.25 → 0.8.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bmap.cjs.min.js +6 -6
- package/lib/bmap.esm.js +17 -9
- package/lib/bmap.esm.min.js +7 -7
- package/lib/bmap.min.js +6 -6
- package/lib/src/plugins/navigation/navigation.d.ts +2 -1
- package/lib/src/plugins/navigation/position-navigation.d.ts +3 -2
- package/lib/src/plugins/pdr-position/pdr.d.ts +5 -1
- package/lib/src/plugins/pdr-position/position.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BMap } from "../../bmap";
|
|
2
2
|
import { Plugin } from "../base";
|
|
3
3
|
import { Path, PathConfig } from "./path";
|
|
4
|
-
import { PathData2, TweenUtil, PathData } from "../../utils";
|
|
4
|
+
import { PathData2, TweenUtil, PathData, RoadData2 } from "../../utils";
|
|
5
5
|
import { Floor, Poi2, PoiOptions2 } from "../../elements";
|
|
6
6
|
import { Tween } from "@tweenjs/tween.js";
|
|
7
7
|
import { NavigationProcessInfo, PositionNavigation, PositionNavigationConfig } from "./position-navigation";
|
|
@@ -37,6 +37,7 @@ export interface NavigationConfig {
|
|
|
37
37
|
directionEmitThreshold: number;
|
|
38
38
|
disablePathAnimation: boolean;
|
|
39
39
|
speed: number;
|
|
40
|
+
roadData: RoadData2[];
|
|
40
41
|
}
|
|
41
42
|
export declare class Navigation extends Plugin<EventMap> {
|
|
42
43
|
path: Path | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventDispatcher } from "three";
|
|
2
2
|
import { Navigation } from "./navigation";
|
|
3
|
-
import { PathData, PathDirection, Timer, TweenUtil } from "../../utils";
|
|
3
|
+
import { PathData, PathDirection, RoadData2, Timer, TweenUtil } from "../../utils";
|
|
4
4
|
import { Tween } from "@tweenjs/tween.js";
|
|
5
5
|
import { DebouncedFuncLeading } from 'lodash';
|
|
6
6
|
export interface PositionNavigationConfig {
|
|
@@ -38,7 +38,8 @@ export declare class PositionNavigation extends EventDispatcher<PositionNavigati
|
|
|
38
38
|
tweenUtil: TweenUtil;
|
|
39
39
|
simulationTween?: Tween<any>;
|
|
40
40
|
throttleUpdatePosition?: DebouncedFuncLeading<(...args: any[]) => void>;
|
|
41
|
-
|
|
41
|
+
roadData: RoadData2[];
|
|
42
|
+
constructor(navigation: Navigation, options: Partial<PositionNavigationConfig>, roadData: RoadData2[]);
|
|
42
43
|
get curRoutePath(): PathData[0] | null;
|
|
43
44
|
get curRoutePathPoints(): [number, number][];
|
|
44
45
|
registryEvent(): void;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { SensorData } from "./sensor";
|
|
2
|
+
export interface PdrPositionOptions {
|
|
3
|
+
using_gps: boolean;
|
|
4
|
+
}
|
|
2
5
|
export declare class PositioningSystem {
|
|
3
6
|
private particleFilter;
|
|
4
7
|
private pdr;
|
|
@@ -10,10 +13,11 @@ export declare class PositioningSystem {
|
|
|
10
13
|
private position_count;
|
|
11
14
|
private gps_max_horizontalAccuracy;
|
|
12
15
|
private MaxEstimateErr;
|
|
16
|
+
private GpsMaxEstimateErr;
|
|
13
17
|
private outTrustRegionNum;
|
|
14
18
|
private TrustNum;
|
|
15
19
|
private cacheSensorData;
|
|
16
|
-
constructor();
|
|
20
|
+
constructor(options: Partial<PdrPositionOptions>);
|
|
17
21
|
/**
|
|
18
22
|
* 基于 PDR、iBeacon、罗盘和语义地图的粒子滤波器。
|
|
19
23
|
*
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventDispatcher } from "three";
|
|
2
|
-
import { PositioningSystem } from "./pdr";
|
|
2
|
+
import { PdrPositionOptions, PositioningSystem } from "./pdr";
|
|
3
3
|
import { Sensor, SensorData, SensorOptions } from "./sensor";
|
|
4
|
-
export interface
|
|
4
|
+
export interface PositionOptions {
|
|
5
5
|
sensor?: Partial<SensorOptions>;
|
|
6
|
+
pdr?: Partial<PdrPositionOptions>;
|
|
6
7
|
}
|
|
7
8
|
interface PdrPositionEventMap {
|
|
8
9
|
position: {
|
|
@@ -15,7 +16,7 @@ export declare class PdrPosition extends EventDispatcher<PdrPositionEventMap> {
|
|
|
15
16
|
sensor: Sensor;
|
|
16
17
|
pdr: PositioningSystem;
|
|
17
18
|
_pause: boolean;
|
|
18
|
-
constructor(options?:
|
|
19
|
+
constructor(options?: PositionOptions);
|
|
19
20
|
checkSensor(): Promise<{
|
|
20
21
|
deviceOrientation: boolean;
|
|
21
22
|
}>;
|