Skip to content

Commit

Permalink
fixed issues to replay demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesKrW committed Apr 8, 2024
1 parent 869bbc7 commit b2b24f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion igibson/envs/behavior_mp_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def __init__(
@param use_motion_planning: Whether motion-planned primitives or magic primitives should be used
@param activity_relevant_objects_only: Whether the actions should be parameterized by AROs or all scene objs.
"""
self.activity_relevant_objects_only = activity_relevant_objects_only
super(BehaviorMPEnv, self).__init__(
config_file=config_file,
scene_id=scene_id,
Expand All @@ -104,7 +105,6 @@ def __init__(
)

self.use_motion_planning = use_motion_planning
self.activity_relevant_objects_only = activity_relevant_objects_only
self.robots[0].initial_z_offset = 0.7

def load_action_space(self):
Expand Down
3 changes: 3 additions & 0 deletions igibson/examples/behavior/behavior_demo_segmentation_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ def data_callback():

if __name__ == "__main__":
main()


# python .\igibson\examples\behavior\behavior_demo_segmentation_batch.py .\igibson\data\virtual_reality .\igibson\data\virtual_reality\log_manifest .\igibson\data\virtual_reality_segmentation_results
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ def run_demonstration(demo_path, segmentation_path, output_path):

def main():
parser = argparse.ArgumentParser()
parser.add_argument("demo_path", type=str, help="Path of the demo hdf5 to replay.")
parser.add_argument("segmentation_path", type=str, help="Path of the segmentation of the demo.")
parser.add_argument("output_path", type=str, help="Path to output result JSON file to.")
parser.add_argument("--demo_path", type=str, help="Path of the demo hdf5 to replay.")
parser.add_argument("--segmentation_path", type=str, help="Path of the segmentation of the demo.")
parser.add_argument("--output_path", type=str, help="Path to output result JSON file to.")
args = parser.parse_args()

run_demonstration(args.demo_path, args.segmentation_path, args.output_path)
Expand Down
2 changes: 1 addition & 1 deletion igibson/render/openvr
Submodule openvr updated 190 files

0 comments on commit b2b24f5

Please sign in to comment.