PaulDanielML / MuJoCo_RL_UR5

A MuJoCo/Gym environment for robot control using Reinforcement Learning. The task of agents in this environment is pixel-wise prediction of grasp success chances.
MIT License
413 stars 54 forks source link

Attribute error - sim #13

Open stevelinf opened 2 years ago

stevelinf commented 2 years ago

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!