Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with env.sim.set_state(obs) , also tried env.set_state(obs) #217

Open
rebecajohn opened this issue Aug 12, 2023 · 0 comments
Open

Comments

@rebecajohn
Copy link

Issue with env.sim.set_state(obs) , also tried env.set_state(obs)

WARNING:py.warnings:/usr/local/lib/python3.10/dist-packages/ipykernel/ipkernel.py:283: DeprecationWarning: should_run_async will not call transform_cell automatically in the future. Please pass the result to transformed_cell argument and any exception that happen during thetransform in preprocessing_exc_tuple in IPython 7.17 and above.
and should_run_async(code)

WARNING:py.warnings:/usr/local/lib/python3.10/dist-packages/gym/spaces/box.py:128: UserWarning: WARN: Box bound precision lowered by casting to float32
upp_bounded = ~self.bounded_below & self.bounded_above

WARNING:py.warnings:/usr/local/lib/python3.10/dist-packages/gym/core.py:317: DeprecationWarning: WARN: Initializing wrapper in old step API which returns one bool instead of two. It is recommended to set new_step_api=True to use new step API. This will be the default behaviour in future.
@AbstractMethod

WARNING:py.warnings:/usr/local/lib/python3.10/dist-packages/gym/wrappers/step_api_compatibility.py:39: DeprecationWarning: WARN: Initializing environment in old step API which returns one bool instead of two. It is recommended to set new_step_api=True to use new step API. This will be the default behaviour in future.


AttributeError Traceback (most recent call last)

in <cell line: 7>()
6
7 for obs in observations:
----> 8 env.sim.set_state(obs)
9 env.render(mode='rgb_array')
10

mjsim.pyx in mujoco_py.cymj.MjSim.set_state()

AttributeError: 'numpy.ndarray' object has no attribute 'time'

@rebecajohn rebecajohn changed the title [Question] Question title Issue with env.sim.set_state(obs) , also tried env.set_state(obs) Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant