[ros2] Port vacuum gripper to ROS2#960
Conversation
|
@osrf-jenkins run tests please |
chapulina
left a comment
There was a problem hiding this comment.
I was testing the demo world, and it behaves quite strangely. This is just speeding up the simulation (on left panel, set Physics -> real time update rate to 0 to run as fas as possible). See how the gripper pulls the models, but then throws them away. And things start getting real fun as the gripper is moved:
I think the problem comes from the ROS 1 plugin, so it's not introduced by this pull request. Sorry I didn't know of those problems beforehand 😕
The ARIAC competition wrote their own vacuum gripper plugin to work around the limitations of the plugin in gazebo_ros_pkgs. They have a pure gazebo plugin and a ROS wrapper around it. That plugin has been used on the competition successfully many times, so I think we can trust that implementation better than the one here.
How do you feel about porting that plugin to gazebo_ros_pkgs instead? We can keep the "pure gazebo + ROS wrapper" approach, similar to what you did for the multicamera.
I think it's also valid for us to decline this PR, and mark the vacuum gripper as deprecated for now, since it doesn't really work. And in the future, if users come looking for it, someone else could port a better version like ARIAC's to work here.
|
I have updated this plugin itself. Please see if it solves the problem. |
Nothing moves in the demo world for me, does it move for you? I saw you removed the min and max distances. I'm ok removing the min, but without the max, it means that the gripper will be applying tiny forces to objects really far away, which I'm not sure we want. Also, using |
Did you try switching on the gripper |
Haha no I didn't. Sorry about that, I just needed some ☕ . It's working for me! Looks more like a magnet though 😄 Did you give some thought to the max distance? Right now the demo gripper can pull spheres from any distance. I placed one of the spheres 100m away and it was gripped. It would also be interesting to keep using |
Change SetForce -> Add Force
* [ros2] Port vacuum gripper to ROS2 * Fix gripper forces * Add option to set max_distance Change SetForce -> Add Force


Port
gazebo_ros_vacuum_gripperplugin to ROS2.Example usage:
Migration guide at ROS 2 Migration: Vacuum Gripper