RightHandRobotics / reflex-ros-pkg

This repo contains base ROS code for controlling the Right Hand Robotics ReFlex hand. More info at www.righthandrobotics.com
18 stars 26 forks source link

Problems about using reflex in Gazebo #38

Open geweihgg opened 6 years ago

geweihgg commented 6 years ago

Hi, I'm a student working with reflex plus hand. My question is "Are there any method for me to simulate the reflex plus gripper in Gazbeo?" I've checked the full_reflex_model.urdf.xacro file, it seems that we do not have a complete xacro:macro for the whole hand. Could you help me? Looking forward to your reply. Thank you very much. GeWei

Deastan commented 5 years ago

Hello, Did you create a gazebo model ? Can you share it please ? Best, Jonathan

geweihgg commented 5 years ago

@Deastan Sorry, I haven't done that yet. I'm now using Robotiq-G85 gripper in Gazebo. Sincerely, GeWei

adamconkey commented 5 years ago

@Deastan our lab uses the ReFlex TakkTile hand in Gazebo simulation, and I would think a similar approach to what we did would also work for the ReFlex Plus. You can find our models here, and see it in action on my website.

The main things you will have to change are:

Note that we currently do not model the flexing aspect of the distal joint and treat it as rigid. We hope to improve on that in the near future. I am also working on adding Gazebo modeling for the pressure sensors if you're interested in trying to use one of the hands with the TakkTile sensors.

geweihgg commented 5 years ago

@adamconkey it's very nice of you to share the experience, I'll try it later. Thank you very much! GeWei

adamconkey commented 5 years ago

You will also be interested in the work from @mabelzhang. She had a working simulation of a beta version of the hand a while back: https://github.com/mabelzhang/tactile_triangles/tree/master/reflex_simulator/reflex_gazebo

geweihgg commented 5 years ago

@adamconkey Thank you so much! GeWei

Deastan commented 5 years ago

@adamconkey Thank you very much to share what you did! I will try soon to do it! I worked on the takktile 2, so I will try to add the the tactile sensor. If you have any other tips, I take it! Thank you very much for your help!

John

Deastan commented 5 years ago

Hello, @adamconkey, I have a small question. Did you try to grasp some object with your hand ? I did a version between your hand and from Mabel Zhang. I added the hand to the iiwa robot (which is the industrial robot). I have the tactile sensors. I replace the connection between the proximal and the distal (which is a cable on the real robot) by a linear function and a function to close and open the hand. ( I use as you the effortJointController).
Between this I have worked on an environment for Reinforcement learning using gym from OpenAI with the hand and the insudstrial robot. Normally this environment work but without grapsing.

Do you have an advice how I could do grasping with the simulation ? I have spawn a square and try to graps it.. but it doesn't work. I read a many thing on the web but I still don't have the right solution which at least can work.

Thank you so much for your advice until now.

adamconkey commented 5 years ago

I have spawn a square and try to graps it.. but it doesn't work.

@Deastan In what way does it not work?

Deastan commented 5 years ago

@adamconkey : When the finger touches the object, the object flight away. I change the mass (lower, bigger) but nothing changed. I have also changed the forces of the finger but nothing change too. I read this, maybe I have to try that. https://github.com/JenniferBuehler/gazebo-pkgs/wiki/The-Gazebo-grasp-fix-plugin

adamconkey commented 5 years ago

@Deastan what physics engine are you using in Gazebo? We have also had this behavior using the default physics engine, which I believe is ODE. I would recommend trying DART. You have to build Gazebo from source but their instructions are quite good and they tell you how to enable the use of DART as the physics back-end in those instructions. Just note that you need DART installed before building Gazebo. The contact dynamics seem to be better for grasping in DART than ODE. Gazebo also supports Bullet but I don't believe I've ever tried it.