We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling env.env.camera_adjust()
results in undefined attribute self._p at following line :
pybullet-gym/pybulletgym/envs/mujoco/env_bases.py
Line 132 in 5bae285
In pybulletgym/envs/mujoco/env_bases.py The fix is to inject the env into the camera with : in init :
self.camera = Camera(self)
and then
class Camera: def __init__(self,env): self.env = env pass def move_and_look_at(self,i,j,k,x,y,z): lookat = [x,y,z] distance = 10 yaw = 10 self.env._p.resetDebugVisualizerCamera(distance, yaw, -20, lookat)
The text was updated successfully, but these errors were encountered:
Thanks for mentioning this!
Sorry, something went wrong.
Update env_bases.py
b751ffa
made benelot#17 change
No branches or pull requests
Calling env.env.camera_adjust()
results in undefined attribute self._p at following line :
pybullet-gym/pybulletgym/envs/mujoco/env_bases.py
Line 132 in 5bae285
In pybulletgym/envs/mujoco/env_bases.py
The fix is to inject the env into the camera with :
in init :
self.camera = Camera(self)
and then
The text was updated successfully, but these errors were encountered: