I am experimenting with adding new objects following the code in 'demo/unity_demo.ipynb'.
When I try to add new objects with new ids, the script execution fails.
comm.reset(scene_id)
# adding new object
success, graph = comm.environment_graph()
sofa = find_nodes(graph, class_name='sofa')[0]
add_node(graph, {'class_name': 'wineglass',
'category': 'Props',
'id': 1000,
'prefab_name': 'PRE_PRO_Wine_glass_01',
'properties': ['GRABBABLE', 'RECIPIENT', 'POURABLE', 'MOVABLE'],
'states': []})
add_edge(graph, 1000, 'ON', sofa['id'])
success, message = comm.expand_scene(graph)
print('Expand scene: ', success, message)
comm.add_character()
script = ['<char0> [Walk] <wineglass> (1000)',
'<char0> [Grab] <wineglass> (1000)']
success, message = comm.render_script(script=script,
processing_time_limit=60,
find_solution=False,
image_width=320,
image_height=240,
skip_animation=True,
recording=False,
save_pose_data=False,
file_name_prefix='w')
print(success, message)
Expand scene: True {}
False {'0': {'message': 'ScriptExcutor 0: PROCESS WALK: Can not select object: wineglass. REASON: Unknown\nEXECUTION_GENERAL: Script is impossible to execute\n\n'}}
Hi,
I am experimenting with adding new objects following the code in 'demo/unity_demo.ipynb'.
When I try to add new objects with new ids, the script execution fails.
Output:
What am I missing here?