JenniferBuehler / grasp-execution-pkgs

Package(s) to execute a grasp incl. execution in Gazebo
BSD 3-Clause "New" or "Revised" License
34 stars 18 forks source link

Question: Automated grasping #5

Closed VascoLopes closed 6 years ago

VascoLopes commented 7 years ago

In Automated grasping tutorial is shown a way of executing grasps that are pre-computed and saved on a file. My question is if it is possible to use my own without using GraspIt, or if needed, if there is a possible way of providing GraspIt the coordinates of the grasp that was selected in order to GraspIt generate the .msg file needed.

Thank you

JenniferBuehler commented 7 years ago

Yes that's possible, in part 2 of the tutorial you just skip step 1, or rather, replace it by your own method.

You will need to generate the .msg file yourself. It's a message of type manipulation_msgs::Grasp which is pretty standard. Your grasp planner, or whichever method you are using to set the grasp, should be able to return the result as such a message, or if not, then you should be able to easily build it yourself from the information output by your grasp planner.

Generating the .msg file has nothing to do with GraspIt, it would not make sense to give graspit coordinates or something like that. It makes more sense to generate the message separately. This line in SimpleAutomatedGraspFromFile may help you. See also this line in simple_automated_grasp_execution.cpp which creates the object.

VascoLopes commented 7 years ago

Thank you very much.