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

Can't attach object using dh_robotics_ag95_gripper.Object slips away when grasping. #58

Open
S1aoXuan opened this issue May 17, 2023 · 10 comments

Comments

@S1aoXuan
Copy link

S1aoXuan commented May 17, 2023

Hi, I'm trying to use ur10e with dh_robotics_ag95_gripper to grasp a cube in gazebo.
My platform is Ubuntu 18.04, ROS Melodic and Gazebo9.
The plugin should be loaded.
1
But without any attach message at the time of grabbing, the cube will just be bounced away.
Here is how I set up the parameters:
2
I use gz topic -l and I can see topic /gazebo/ur5_cubes/robot/contacts, where ur5_cube is my gazebo world's name. But I can get nothing when using gz topic -e ~/robot/contacts.
Here is the video.
https://github.com/JenniferBuehler/gazebo-pkgs/assets/92132890/4e78d9d3-7afa-4010-9c4e-fc443d8549ce

@JenniferBuehler
Copy link
Owner

JenniferBuehler commented May 24, 2023

Hi,
sorry for the late response. When the object bounces away, the attachment has not happened. Do you see any output (messages sent) on /gazebo/ur5_cubes/robot/contact when the robot grasps the object? The topic name should be the same (/gazebo/ur5_cubes/ is the prefix for "home" aka ~/ so it should be the same)

@S1aoXuan
Copy link
Author

Thanks for your reply.
When the robot grasped the object, it just bounced away and the terminal did not show attached or any other messages.

@JenniferBuehler
Copy link
Owner

Did you subscribe with gz topic -e?

@S1aoXuan
Copy link
Author

When I use gz topic -i /gazebo/ur5_cubes/robot/contact, I get this
image
and run gz topic -e /gazebo/ur5_cubes/robot/contact only get timestamp
image

@JenniferBuehler
Copy link
Owner

Then it means there are no collisions, so the grasp plugin cannot work. Not sure why the object bounces away, hard to tell without being able to debug. Are you doing any other object manipulation? Does it bounce away just when the gripper closes?

@S1aoXuan
Copy link
Author

Sorry I didn't reply in time yesterday. There are always a lot of different problems with programs :)
I am just doing the grasp cubes simulation now, the gazebo environment is a few cubes on the table, currently these cubes have this problem. If there is any progress afterwards I will also be the first to post here.
Thank you!

@liujun0808
Copy link

Sorry I didn't reply in time yesterday. There are always a lot of different problems with programs :) I am just doing the grasp cubes simulation now, the gazebo environment is a few cubes on the table, currently these cubes have this problem. If there is any progress afterwards I will also be the first to post here. Thank you!

I think I've encountered the same problem as you, have you solved it?

@JenniferBuehler
Copy link
Owner

Your cubes are otherwise colliding properly, e.g. with tables? They are not set to "static"? And while the robot grasps them, you get nothing out of the gazebo contacs topic with gz topic -e (see comment above)?

@liujun0808
Copy link

Your cubes are otherwise colliding properly, e.g. with tables? They are not set to "static"? And while the robot grasps them, you get nothing out of the gazebo contacs topic with gz topic -e (see comment above)?

nothing
I used these topic commands, why is nothing displayed?What should the correct situation look like?
Why can some people use this plug-in to complete it successfully? I'm going to collapse : (

@JenniferBuehler
Copy link
Owner

That is when the robot grasps the cube?
The cube collision works otherwise, so collision shape set up correctly (see my questions above)?

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