-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakeVideos.py
47 lines (32 loc) · 1.41 KB
/
makeVideos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import sys
import os
import numpy as np
import pickle
import cv2
from tqdm import tqdm
import sceneVideo
import optparse
import heatVideo
import pointCloud
import combinedPCD
""" Launches all the videos to be generated"""
def get_options():
optParser = optparse.OptionParser()
optParser.add_option("--scene",action="store_true", default=False, dest="scene", help="UAVs scene image going to be generated")
optParser.add_option("--heat",action="store_true", default=False, dest="heat", help="UAVs depth image going to be generated")
optParser.add_option("--pointCloud",action="store_true", default=False, dest="pointCloud", help="UAVs 3D image going to be generated")
optParser.add_option("--combinedPCD",action="store_true", default=False, dest="combinedPCD", help="UAVs combined 3D image going to be generated")
options, args = optParser.parse_args()
return options
if __name__ == "__main__":
options = get_options()
simulation_dir = os.path.join(os.getcwd(), "..","results_Objective")
if options.scene:
sceneVideo.generate(path=simulation_dir, time=60)
if options.heat:
# TODO: check if depth.PNG exists, else generate it (heatGenerated.py)
heatVideo.generate(path=simulation_dir, time=60)
if options.pointCloud:
pointCloud.generate(path=simulation_dir, time=60)
if options.combinedPCD:
combinedPCD.generate(path=simulation_dir, time=60)