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

Attribute error - sim #13

Open
stevelinf opened this issue Jul 5, 2022 · 0 comments
Open

Attribute error - sim #13

stevelinf opened this issue Jul 5, 2022 · 0 comments

Comments

@stevelinf
Copy link

Hi,
I just found an error message "AttributeError: 'GraspEnv' object has no attribute 'sim'" when I ran the command "python3 Grasping_Agent_multidiscrete.py".

Traceback is shown as follows:

Traceback (most recent call last):
File "Grasping_Agent_multidiscrete.py", line 583, in
main()
File "Grasping_Agent_multidiscrete.py", line 521, in main
agent = Grasp_Agent(seed=rand_seed, load_path=None, learning_rate=lr, depth_only=False)
File "Grasping_Agent_multidiscrete.py", line 85, in init
self.env = gym.make(
File "/home/steve/anaconda3/envs/mujoco_py/lib/python3.8/site-packages/gym/envs/registration.py", line 592, in make
env = env_creator(**_kwargs)
File "/home/steve/MuJoCo_RL_UR5/gym_grasper/envs/GraspingEnv.py", line 51, in init
self.controller = MJ_Controller(self.model, self.sim, self.viewer)
AttributeError: 'GraspEnv' object has no attribute 'sim'

Appreciate!

@stevelinf stevelinf changed the title Attribute error Attribute error - sim Jul 5, 2022
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