justagist / panda_simulator

A Gazebo simulator for the Franka Emika Panda robot with ROS interface, supporting sim-to-real code transfer (Python). Exposes customisable controllers and state feedback from robot in simulation.
Apache License 2.0
203 stars 61 forks source link

Can't pick up the objects in Gazebo #21

Closed pytalha closed 3 years ago

pytalha commented 3 years ago

I want to simulate basic pick and place using Panda arm in Gazebo. I can move the arm very well in Gazebo using Rviz but I don't have absolute control over gripper in Rviz except open and close.

However I've spawned the arm in my world and I'm able to execute Rviz motion plan in Gazebo but the gripper can't grip the object. The attached video demonstrates the problem well.

Please guide how to fix this problem and if I want to control the gripper manually using ROS and embed it in my motion plan, how can that be done? Would really appreciate the help :)

https://user-images.githubusercontent.com/48376895/102995851-e1a61d80-455c-11eb-83af-b40d35dfa9b1.mp4

justagist commented 3 years ago

Hi, It looks like the object you are trying to interact with does not have collision enabled/defined. If you are loading it from a urdf, make sure that the collision tag is defined. This is unlikely to be an issue of this package. I am attaching a video of the grasping in action to show you how it should look with a defined object.

https://user-images.githubusercontent.com/22923089/103212090-d6a71080-4901-11eb-9e2a-13c134c4dbe0.mp4

pytalha commented 3 years ago

I believe the collision tags are defined in both box_1 and box_2. Can you please point out the mistake in the world file?

<?xml version="1.0" ?>

model://ground_plane model://sun 1000.0 0.0 0.0 0.0 1 0.5 0.6 0 0 0 0 model://cardboard_box/meshes/cardboard_box.dae 1 1 1 1 -0.5 -0.6 0 0 0 0 model://cardboard_box/meshes/cardboard_box.dae 1 1 1 1 0.6 0.5 0.4 0 0 0 model://cardboard_box/meshes/cardboard_box.dae 0.1 0.1 0.1 0 0 0 0 0 0 0.05 0.05 0.05 10 0 0 1 0.4 0.5 0.4 0 0 0 model://cardboard_box/meshes/cardboard_box.dae 0.1 0.1 0.1 0 0 0 0 0 0 0.05 0.05 0.05 10 0 0
kapil13j commented 1 year ago

Did you find out the exact solution to this problem?