DroneSimulation

드론 모의주행 시뮬레이션 클래스.
Drone mock flight simulation class.

new Ditap.DroneSimulation(viewer, options)

Name Type Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
options object 드론 모의주행 시뮬레이션 옵션.
Drone mock flight simulation options.
Name Type Default Description
model DroneSimulationModel 시뮬레이션 모델.
Simulation model.
id string optional 시뮬레이션 아이디.
Simulation id.
name string optional 시뮬레이션 이름.
Simulation name.
show boolean true optional 시뮬레이션 가시화 여부.
Whether simulation is visualized or not.
pathTrackingRotation boolean true optional 모델 회전 방향의 경로 추적 여부.
Whether to trace the path in the model rotation direction.
progressCallback function optional 시뮬레이션 진행 작업 콜백함수.
Simulation progress task callback function.

Members

static constant Ditap.DroneSimulation.DONE

완료 상태값.
Complete status value.

static constant Ditap.DroneSimulation.RUNNING

실행중 상태값.
Running status value.

static constant Ditap.DroneSimulation.STOPED

정지 상태값.
Stoped status value.

static constant Ditap.DroneSimulation.WAITING

대기 상태값.
Waiting status value.

readonly id : string

시뮬레이션 아이디.
Simulation id.

readonly isReady : boolean

시뮬레이션 작업 준비 상태.
Readiness for simulation work.
시뮬레이션 모델.
Simulation model.

name : string

시뮬레이션 이름.
Simulation name.

pathTrackingRotation : boolean

모델 회전 방향의 경로 추적 여부.
Whether to trace the path in the model rotation direction.

progressCallback : function

시뮬레이션 진행 작업 콜백함수.
Simulation progress task callback function.

readonly readyEvent : Event

시뮬레이션 작업 준비 상태 이벤트.
Simulation task readiness status event.

readonly route : Array.<(DroneSimulationWaypoint|DroneSimulationPhotogrammetry|DroneSimulationVerticalScan)>

시뮬레이션 라우트.
Simulation route.

show : boolean

시뮬레이션 가시화 여부.
Whether simulation is visualized or not.

readonly status : number

시뮬레이션 상태.
Simulation state.

readonly viewer : DitapViewer

사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.

Methods

시뮬레이션 경로 추가.
Add simulation path.
Name Type Description
path Cartesian3 | DroneSimulationWaypoint | DroneSimulationPhotoGrammetry | DroneSimulationVerticalScan 추가할 경로.
Path to add.
Returns:
추가된 경로.
Added path.
시뮬레이션 라우트 추가.
Add Simulation route.
Name Type Description
route Array.<(DroneSimulationWaypoint|DroneSimulationPhotoGrammetry|DroneSimulationVerticalScan)> 추가할 라우트.
Route to add.
Returns:
추가된 라우트.
Added route.

clear()

시뮬레이션 진행 및 작업 초기화.
Simulation progress and task initialization.

contains(path)boolean

시뮬레이션 경로 포함 여부 확인.
Check if simulation path is included.
Name Type Description
path DroneSimulationWaypoint | DroneSimulationPhotogrammetry | DroneSimulationVerticalScan 확인하려는 경로.
Path you want to check.
Returns:
포함 여부.
Included or not.

continue()

시뮬레이션 이어하기.
Continue the simulation.

createConnection(startIndex, endIndex)

웨이포인트 연결 작업 생성
Name Type Description
startIndex number
endIndex number

destroy()

시뮬레이션 인스턴스 제거.
Remove simulation instance.
인덱스에 해당하는 경로 반환.
Returns the path corresponding to the index.
Name Type Description
index string 경로 인덱스.
Path index.
Returns:
요청한 경로.
Requested path.
지정된 아이디를 갖는 경로 반환.
Returns the path with the specified ID.
Name Type Description
id string 경로 아이디.
Path id.
Returns:
요청한 경로.
Requested path.

getStartingPosition()Cartesian3|undefined

시작점 반환.
Return starting point.
Returns:

initSchedule()

시뮬레이션 스케줄 작업 초기화.
Initializing Simulation Schedule Tasks.

pushInto(fromIndex, toIndex)Array.<(DroneSimulationWaypoint|DroneSimulationPhotogrammetry|DroneSimulationVerticalScan)>

경로 순서 변경.
Change path order.
Name Type Description
fromIndex number 밀어넣을 경로의 인덱스.
Index of the path to push.
toIndex number 새롬게 배치될곳의 인덱스.
Index of the new location to be placed.
Returns:
변경된 라우트.
Changed route.

remove(index)boolean

인덱스에 해당하는 경로 제거.
Remove path corresponding to index.
Name Type Description
index number 삭제하려는 경로의 인덱스.
Index of the path to be deleted.
Returns:
제거된 경우 True, 경로가 없는 경우 False.
True if removed, False if path does not exist.

removeById(id)boolean

지정된 아이디를 갖는 경로 제거.
Remove path with specified ID.
Name Type Description
id string
Returns:
제거된 경우 True, 경로가 없는 경우 False.
True if removed, False if path does not exist.

reset()

시뮬레이션 진행 초기화.
Reset simulation progress.
시뮬레이션 라우트 설정.
Simulation route set.
Name Type Description
route Array.<(DroneSimulationWaypoint|DroneSimulationPhotoGrammetry|DroneSimulationVerticalScan)> 세팅할 라우트.
Route to set.
Returns:
세팅된 라우트.
Set route.

start()

시뮬레이션 시작.
Start simulation.

stop()

시뮬레이션 중지.
Stop simulation.