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

No response from rosservice "/gazebo/get_model_state" #43

Open
ZZWang21 opened this issue Feb 8, 2023 · 0 comments
Open

No response from rosservice "/gazebo/get_model_state" #43

ZZWang21 opened this issue Feb 8, 2023 · 0 comments

Comments

@ZZWang21
Copy link

ZZWang21 commented Feb 8, 2023

Hi, experts,

I followed the code and tried to implement RL with UR5 robot. However, currently I am stuck since I cannot get the ball_pose. The rosservice "/gazebo/get_model_state" never gave a return.

The error is like this: "

service returned no response "/gazebo/get_model_state"

Traceback (most recent call last):
File "/home/walter/catkin_ws/src/ur5e_rl_training/scripts/ur5e_train_all.py", line 64, in
model.learn(total_timesteps=10000) #100000, 1000, 20221129: 100000
File "/home/walter/miniconda3/envs/Robot_ur5e_ws/lib/python3.7/site-packages/stable_baselines/a2c/a2c.py", line 263, in learn
rollout = self.runner.run(callback)
File "/home/walter/miniconda3/envs/Robot_ur5e_ws/lib/python3.7/site-packages/stable_baselines/common/base_class.py", line 794, in runner
self._runner = self._make_runner()
File "/home/walter/miniconda3/envs/Robot_ur5e_ws/lib/python3.7/site-packages/stable_baselines/a2c/a2c.py", line 110, in _make_runner
return A2CRunner(self.env, self, n_steps=self.n_steps, gamma=self.gamma)
File "/home/walter/miniconda3/envs/Robot_ur5e_ws/lib/python3.7/site-packages/stable_baselines/a2c/a2c.py", line 338, in init
super(A2CRunner, self).init(env=env, model=model, n_steps=n_steps)
File "/home/walter/miniconda3/envs/Robot_ur5e_ws/lib/python3.7/site-packages/stable_baselines/common/runners.py", line 31, in init
self.obs[:] = env.reset()
File "/home/walter/miniconda3/envs/Robot_ur5e_ws/lib/python3.7/site-packages/stable_baselines/common/vec_env/dummy_vec_env.py", line 61, in reset
obs = self.envs[env_idx].reset()
File "/home/walter/miniconda3/envs/Robot_ur5e_ws/lib/python3.7/site-packages/gym/wrappers/time_limit.py", line 27, in reset
return self.env.reset(**kwargs)
File "/home/walter/catkin_ws/src/openai_ros/openai_ros/src/openai_ros/robot_gazebo_env.py", line 77, in reset
self._init_env_variables()
File "/home/walter/catkin_ws/src/openai_ros/openai_ros/src/openai_ros/task_envs/ur5e_move/move.py", line 233, in _init_env_variables
self.ball_pose = self.get_ball_pose()
File "/home/walter/catkin_ws/src/openai_ros/openai_ros/src/openai_ros/robot_envs/ur5e_env.py", line 261, in get_ball_pose
POSESES = POSES.pose
AttributeError: 'NoneType' object has no attribute 'pose'
"

Since it returned nothing, so there is no 'pose'.

Please help. Thanks.

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