Skip to content

Commit f61f8ee

Browse files
committed
Switch config to oracle approach with coffee environment
1 parent 16f39fa commit f61f8ee

1 file changed

Lines changed: 82 additions & 38 deletions

File tree

scripts/configs/predicatorv3/predicator_v3.yaml

Lines changed: 82 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ APPROACHES:
99
# human_interaction_approach_use_scripted_option: True
1010
# human_interaction_approach_use_all_options: True
1111
# scripted_option_dir: "scripted_option_policies"
12-
# script_option_file_name: "domino2.txt"
1312
# skill_phase_use_motion_planning: True
14-
# oracle:
15-
# NAME: "oracle_process_planning"
16-
# FLAGS:
17-
# demonstrator: "oracle_process_planning"
18-
# terminate_on_goal_reached_and_option_terminated: True
19-
# bilevel_plan_without_sim: True
13+
oracle:
14+
NAME: "oracle_process_planning"
15+
FLAGS:
16+
demonstrator: "oracle_process_planning"
17+
terminate_on_goal_reached_and_option_terminated: True
18+
bilevel_plan_without_sim: True
2019
# mf_agent:
2120
# NAME: "agent_planner"
2221
# FLAGS:
@@ -25,17 +24,17 @@ APPROACHES:
2524
# terminate_on_goal_reached_and_option_terminated: True
2625
# agent_planner_isolate_test_session: True
2726
# agent_sdk_use_docker_sandbox: True
28-
mf_option_learning_agent:
29-
NAME: "agent_option_learning"
30-
FLAGS:
31-
explorer: "agent"
32-
option_learner: "agent"
33-
demonstrator: "oracle_process_planning"
34-
terminate_on_goal_reached_and_option_terminated: True
35-
agent_planner_isolate_test_session: True
36-
# agent_sdk_use_docker_sandbox: True
37-
agent_sdk_use_local_sandbox: True
38-
agent_sdk_max_agent_turns_per_iteration: 40
27+
# mf_option_learning_agent:
28+
# NAME: "agent_option_learning"
29+
# FLAGS:
30+
# explorer: "agent"
31+
# option_learner: "agent"
32+
# demonstrator: "oracle_process_planning"
33+
# terminate_on_goal_reached_and_option_terminated: True
34+
# agent_planner_isolate_test_session: True
35+
# # agent_sdk_use_docker_sandbox: True
36+
# agent_sdk_use_local_sandbox: True
37+
# agent_sdk_max_agent_turns_per_iteration: 40
3938
# mb_agent:
4039
# NAME: "agent_abstraction_learning"
4140
# FLAGS:
@@ -47,27 +46,72 @@ APPROACHES:
4746
# num_online_learning_cycles: 4
4847
# online_nsrt_learning_requests_per_cycle: 1
4948
ENVS:
50-
domino:
51-
NAME: "pybullet_domino"
49+
# domino:
50+
# NAME: "pybullet_domino"
51+
# FLAGS:
52+
# # excluded_predicates: "InFrontDirection,InFront"
53+
# excluded_objects_in_state_str: "loc,rot,angle,direction"
54+
# horizon: 200
55+
# domino_initialize_at_finished_state: False
56+
# domino_use_domino_blocks_as_target: True
57+
# domino_use_grid: True
58+
# domino_include_connected_predicate: False # necessary to generate valid plan
59+
# domino_use_continuous_place: True
60+
# domino_restricted_push: True
61+
# domino_prune_actions: False
62+
# process_planning_heuristic_weight: 2.0
63+
# process_planning_use_abstract_policy: False
64+
# domino_has_glued_dominos: False
65+
# keep_failed_demos: True
66+
# env_has_impossible_goals: True
67+
# process_param_learning_use_empirical: True
68+
# process_learning_use_empirical: True
69+
# predicate_invent_invent_derived_predicates: True
70+
# script_option_file_name: "domino2.txt"
71+
coffee:
72+
NAME: "pybullet_coffee"
5273
FLAGS:
53-
# excluded_predicates: "InFrontDirection,InFront"
54-
excluded_objects_in_state_str: "loc,rot,angle,direction"
55-
horizon: 200
56-
domino_initialize_at_finished_state: False
57-
domino_use_domino_blocks_as_target: True
58-
domino_use_grid: True
59-
domino_include_connected_predicate: False # necessary to generate valid plan
60-
domino_use_continuous_place: True
61-
domino_restricted_push: True
62-
domino_prune_actions: False
63-
process_planning_heuristic_weight: 2.0
64-
process_planning_use_abstract_policy: False
65-
domino_has_glued_dominos: False
66-
keep_failed_demos: True
67-
env_has_impossible_goals: True
68-
process_param_learning_use_empirical: True
69-
process_learning_use_empirical: True
70-
predicate_invent_invent_derived_predicates: True
74+
excluded_predicates: "Twisting,PressingButton,NotSameCup,RobotAboveCup"
75+
coffee_rotated_jug_ratio: 0
76+
coffee_num_cups_train: [1]
77+
coffee_machine_have_light_bar: False
78+
coffee_move_back_after_place_and_push: True
79+
coffee_machine_has_plug: False
80+
coffee_combined_move_and_twist_policy: True
81+
coffee_use_pixelated_jug: True
82+
coffee_fill_jug_gradually: True
83+
max_num_steps_option_rollout: 100
84+
horizon: 300
85+
script_option_file_name: "coffee.txt"
86+
# grow:
87+
# NAME: "pybullet_grow"
88+
# FLAGS:
89+
# excluded_predicates: "HandTilted"
90+
# coffee_use_pixelated_jug: True
91+
# max_num_steps_option_rollout: 50
92+
# grow_weak_pour_terminate_condition: True
93+
# grow_place_option_no_sampler: True
94+
# horizon: 400
95+
# boil:
96+
# NAME: "pybullet_boil"
97+
# FLAGS:
98+
# excluded_objects_in_state_str: "switch"
99+
# max_num_steps_option_rollout: 50
100+
# horizon: 500 # 300 should be enough, 50 is good during dev
101+
# # boil_goal: "task_completed" # This option isn't fully ready because
102+
# # with the current only_learn_exogenous_processes setting, it won't try
103+
# # to learn the precondition for the DeclareComplete option.
104+
# boil_goal: "human_happy" # Can also be "task_completed", "simple"
105+
# # boil_goal: "simple"
106+
# boil_require_jug_full_to_heatup: True
107+
# fan:
108+
# NAME: "pybullet_fan"
109+
# FLAGS:
110+
# excluded_objects_in_state_str: "switch"
111+
# terminate_on_goal_reached: True # maybe required for successful eval
112+
# process_planning_heuristic_weight: 10.0
113+
# terminate_on_goal_reached: True # maybe required for successful eval
114+
# horizon: 500
71115
ARGS:
72116
- "debug"
73117
- "use_gui"

0 commit comments

Comments
 (0)