车辆轨迹孪生,包括车辆、行人、障碍物等
通过SocketIO3接口获取感知数据,然后渲染这些物体的运动轨迹等
支持onConnected,onDIsconnected,onFail,follow,unfollow等事件回调

- Author:
-
- wema
参数说明:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | 参数 Properties
|
父类
- Object3D
方法
followGroups(options)
追踪车辆组
示例代码
const trafficLayer = new TrafficLayer();
trafficLayer.followGroups({
isFollow: true,
carIdList: ['123', '456'],
followRotations: {Roll: true, Pitch: true, Yaw: true},
});
参数说明:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 追踪参数 Properties
|
followTraffic(options)
追踪车辆
示例代码
const trafficLayer = new TrafficLayer();
trafficLayer.followTraffic({
isFollow: true,
carId: '123',
plateNumber: '湘NZQ733',
color: {r: 0, g: 1, b: 0.8},
followRotations: {Roll: true, Pitch: true, Yaw: true},
});
参数说明:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | 追踪参数 Properties
|