2015-11-17 11:22:16 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import context
|
|
|
|
import system
|
2015-11-17 11:54:56 +00:00
|
|
|
import log
|
2015-11-17 11:22:16 +00:00
|
|
|
|
|
|
|
from datatypes import ODMApp
|
|
|
|
|
2015-11-17 11:54:56 +00:00
|
|
|
|
2015-11-16 14:52:47 +00:00
|
|
|
if __name__ == '__main__':
|
2015-11-17 11:22:16 +00:00
|
|
|
|
2015-11-17 11:54:56 +00:00
|
|
|
log.ODM_INFO('Initializing OpenDroneMap app - %s' % system.now())
|
2015-11-17 11:22:16 +00:00
|
|
|
|
|
|
|
# Initialize odm app
|
|
|
|
# internally configure all tasks
|
|
|
|
app = ODMApp(context.scripts_path)
|
|
|
|
|
|
|
|
# set from where we want to start
|
|
|
|
# by default we will start from the beginnig
|
|
|
|
init_task_id = 0
|
|
|
|
|
2015-11-17 11:54:56 +00:00
|
|
|
log.ODM_INFO('Runnning OpenDroneMap app from state %s - %s' % (init_task_id, system.now()))
|
2015-11-17 11:22:16 +00:00
|
|
|
|
|
|
|
# run all tasks
|
|
|
|
app.run(init_task_id)
|
2015-11-16 14:52:47 +00:00
|
|
|
|
2015-11-17 11:54:56 +00:00
|
|
|
log.ODM_INFO('OpenDroneMap app finished - %s' % system.now())
|