You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, thanks for your great work.
I can ran successfully in tests/test_data_colloection.py and omnigibson/examples/teleoperation/robot_teleoperate_demo.py, but I can't use DataCollectionWrapper with the teleopeation system.
I change the code in omnigibson/examples/teleoperation/robot_teleoperate_demo.py, in the following, but it stuck, I can't control the robot by keyboard or quest pro.
cfg=dict(scene=scene_cfg, robots=[robot_cfg], objects=object_cfg)
# Create the environmentenv=og.Environment(configs=cfg)
env=DataCollectionWrapper(
env=env,
output_path=collect_hdf5_path,
only_successes=False,
)
foriinrange(2):
env.reset()
# update viewer camera poseog.sim.viewer_camera.set_position_orientation(position=[-0.22, 0.99, 1.09], orientation=[-0.14, 0.47, 0.84, -0.23])
# Start teleoperation systemrobot=env.robots[0]
# Initialize teleoperation systemteleop_sys=TeleopSystem(config=teleop_config, robot=robot, show_control_marker=True)
teleop_sys.start()
# main simulation loopfor_inrange(2000):
action=teleop_sys.get_action(teleop_sys.get_obs())
env.step(action)
env.save_data()
print("Data saved!")
# Shut down the environment cleanly at the endteleop_sys.stop()
og.clear()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hello, thanks for your great work.
I can ran successfully in tests/test_data_colloection.py and omnigibson/examples/teleoperation/robot_teleoperate_demo.py, but I can't use DataCollectionWrapper with the teleopeation system.
I change the code in omnigibson/examples/teleoperation/robot_teleoperate_demo.py, in the following, but it stuck, I can't control the robot by keyboard or quest pro.
or in https://github.com/StanfordVL/OmniGibson/blob/main/tests/test_data_collection.py,
How to solve
Beta Was this translation helpful? Give feedback.
All reactions