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

Error occurred while calling the reset function for UR10 tasks #16

Closed
Shaluols opened this issue Dec 8, 2020 · 13 comments
Closed

Error occurred while calling the reset function for UR10 tasks #16

Shaluols opened this issue Dec 8, 2020 · 13 comments
Assignees

Comments

@Shaluols
Copy link

Shaluols commented Dec 8, 2020

Hi,

I succeed in installing the project and tested the random_agent_sim.py on my computer with ubuntu16.04+Gazebo9.0. The Mir100 related tasks can successfully pass the test. However, I got errors in testing the UR10 related tasks, for example, the 'EndEffectorPositioningUR10Sim-v0' and the 'EndEffectorPositioningUR10DoF5Sim-v0'. The output is:

Starting new Robot Server | Tentative 1
Successfully started Robot Server at localhost:52891
/home/.../miniconda3/envs/robo-gym/lib/python3.6/site-packages/gym/logger.py:30: UserWarning: WARN: Box bound
precision lowered by casting to float32
warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow'))
Error occurred while calling the reset function. Restarting Robot server ...
Killing Robot Server at localhost:52891 | Tentative 1
Successfully killed Robot Server at localhost:52891
Starting new Robot Server | Tentative 1
Successfully started Robot Server at localhost:41361
Error occurred while calling the reset function. Restarting Robot server ...
Killing Robot Server at localhost:41361 | Tentative 1
Successfully killed Robot Server at localhost:41361

The Rviz was restarting again and again, but each time before its crash, the arm has some movement.
Do you have any ideas about this kind of errors?

@matteolucchi matteolucchi self-assigned this Dec 10, 2020
@matteolucchi matteolucchi added the bug Something isn't working label Dec 10, 2020
@matteolucchi
Copy link
Contributor

Hi! I will try to reproduce this on PC and check whether I get the same behavior. I'll get back to you asap!

@matteolucchi
Copy link
Contributor

Hi, so if I got it right you are using Ubuntu 16.04 and ROS Kinetic, is that right?

@Shaluols
Copy link
Author

Hi, so if I got it right you are using Ubuntu 16.04 and ROS Kinetic, is that right?

Yes, I am using Ubuntu 16.04 + Gazebo 9.0 + ROS kinetic.

@matteolucchi
Copy link
Contributor

Ok, then the issue is given by the fact that the latest version of the UR robot servers is not compatible with ROS Kinetic, similar to what happened in jr-robotics/robo-gym-robot-servers#3 , I copy here the same reply:

Hi @ChenyangRan and thank you for using robo-gym!

As it is mentioned at the top of the README of this repository:

WARNING: The compatibility of the Universal Robots environments with ROS Kinetic has been maintained until version v0.1.8 included. After this version we integrated a refactored version of the universal_robot repository which is not compatible with ROS Kinetic. We will try to maintain backwards compatibility but if you encounter issues please use v0.1.8 or switch to ROS Melodic.

The issue here is that we switched to the melodic-devel-staging branch of ros-industrial/universal_robot and in the new launch file structure it is used the $dirname argument, which is only supported in launch files from ROS Melodic.

As mentioned in the README you can try to revert back to v0.1.8 of this repository:

cd ~/robogym_ws/src/robo-gym-robot-servers
git checkout v0.1.8
cd ~/robogym_ws
catkin build

Nevertheless I would suggest you to switch to Ubuntu 18.04 and ROS Melodic + Gazebo 9, especially for the UR Robots we found several improvements in the simulation that were fixed with Gazebo 9.

Cheers,
Matteo

Let me know if this fixes it for you :)

Cheers,
Matteo

@matteolucchi matteolucchi removed the bug Something isn't working label Dec 11, 2020
@Shaluols
Copy link
Author

Hi,

Thanks for your reply! My robogym_ws was in the v.0.1.8 tag when this error happened. Then, I reinstalled this server package again and checkout to v.0.1.8 tag. However, the error is still there.

@matteolucchi
Copy link
Contributor

Hi, I managed to reproduce your error. My previous answer was not complete, also the robo-gym python package needs to be at version v0.1.8. To downgrade the version of the pip package you can use :
pip install 'robo-gym==0.1.8' --force-reinstall

Please let me know if this fixes it.

@Shaluols
Copy link
Author

Hi, I installed the robo-gym from the source, can I change the version to v0.1.8 directly by using git?

@matteolucchi
Copy link
Contributor

Yes of course, just go to the directory were you cloned the robo-gym repository and run git checkout v0.1.8 , after that reinstall with pip install -e .

@Shaluols
Copy link
Author

After I checkout to tag v0.1.8, the error disappears! Thank you very much!

@matteolucchi
Copy link
Contributor

You are welcome! I am glad to hear that :)

@Alvin-shao
Copy link

不客气!我很高兴听到这个:)

Hello, I have been experiencing this error while using UR5 for simulation. The reset function call has encountered an error. How can I resolve this issue?

@Alvin-shao
Copy link

不客气!我很高兴听到这个:)

After I lowered the version of the robot Gym, it showed that there is no UR5 robotic arm available.

@Alvin-shao
Copy link

不客气!我很高兴听到这个:)

I am using Ubuntu 20.04

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

3 participants