-
Notifications
You must be signed in to change notification settings - Fork 2
/
ICRA2022.py
75 lines (69 loc) · 2.08 KB
/
ICRA2022.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import bpy
import bmesh
import numpy as np
import sys, os
import re
import time
dirname = os.path.dirname(os.path.realpath(__file__))
sys.path.append(dirname)
from src.RenderEngine import *
def renderPanda():
configPanda = {
"Nsegments": -1, #display N segments. -1: display all segments
"NkeyframeSteps" : 1, #use every n-th keyframe, interpolate inbetween
"folder": "data/anim_colored_v2/pandas/10/",
"obstacle_substring": "cube",
"cameraLocation": Vector((-3,-6,+2)),
"cameraFocusPoint": Vector((0,0,0)),
"dirname": dirname,
"output_filename": "pandas_dark",
"renderAnimation": True,
"renderImage": True,
"doZoom": False,
"doZoomOut": False,
"tPaddingEnd": 50,
"tRotationStart": 50
}
renderPanda = RenderEngine(configPanda)
renderPanda.Run()
def renderMobile():
configMobile = {
"Nsegments": -1, #display N segments. -1: display all segments
"NkeyframeSteps" : 1, #use every n-th keyframe, interpolate inbetween
"folder": "data/anim_colored_v2/mobile/10/",
"obstacle_substring": "cube",
"cameraLocation": Vector((-6,-12,+5)),
"cameraFocusPoint": Vector((0,0,0)),
"dirname": dirname,
"output_filename": "mobile_manips_dark",
"renderAnimation": True,
"renderImage": True,
"doZoom": False,
"doZoomOut": False,
"tPaddingEnd": 50,
"tRotationStart": 50
}
renderMobile = RenderEngine(configMobile)
renderMobile.Run()
def renderMobileTest():
config = {
"Nsegments": -1, #display N segments. -1: display all segments
"NkeyframeSteps": 500, #use every n-th keyframe, interpolate inbetween
"folder": "data/anim_colored_v2/mobile/10/",
"obstacle_substring": "cube",
"cameraLocation": Vector((-6,-12,+5)),
"cameraFocusPoint": Vector((0,0,0)),
"output_filename": "mobile_manips_test",
"dirname": dirname,
"renderAnimation": True,
"renderImage": True,
"doZoom": False,
"doZoomOut": False,
"tPaddingEnd": -200,
"tRotationStart": 50
}
renderMobile = RenderEngine(config)
renderMobile.Run()
# renderMobile()
renderPanda()
# renderMobileTest()