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
Describe the bug
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.
To Reproduce
Go to ' ran test_data_colloection.py'
add 'teleopeation system in test_data_colloection.py'
See error: stuck
And other try:
Go to ' ran robot_teleoperate_demo.py'
add 'DataCollectionWrapper in robot_teleoperate_demo.py'
See error: stuck
Expected behavior
Run successfully with TeleopSystem and DataCollectionWrapper together
Desktop (please complete the following information):
OS: [e.g. Ubuntu 20.04]
Isaac Sim Version [e.g. 4.1.0]
OmniGibson Version [e.g. 1.1.0]
Additional context
My changed code:
robot_teleoperate_demo.py :
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()
This discussion was converted from issue #1029 on November 14, 2024 20:49.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
Describe the bug
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.
To Reproduce
And other try:
Expected behavior
Run successfully with TeleopSystem and DataCollectionWrapper together
Desktop (please complete the following information):
Additional context
My changed code:
robot_teleoperate_demo.py :
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