ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
-1

Point Cloud Collision Detection (PCL, FCL)

asked 2021-08-03 04:28:23 -0600

nayan gravatar image

updated 2021-08-03 04:30:45 -0600

Hello,

I have two or more moving objects in my Point Cloud scene (being captured by a Kinect). I want to detect when the objects collide with each other live. How can I do this? I have looked into the fcl library, but i am not sure how to start/advance because I cannot find any tutorial/example code for doing this. Right now I have my objects as segments and converted the segments into octomap::OcTree.

Can someone please help me regarding this? Thanks!

edit retag flag offensive close merge delete

Comments

extract the objects from PCL, and add them in your scene, then add collision check between objects (default there is only robot-object collision checks): https://answers.ros.org/question/3518... There are other solutions, but your question doesn't give any information about your ROS setup.

crnewton gravatar image crnewton  ( 2021-08-03 09:12:17 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-08-03 11:17:40 -0600

updated 2021-08-03 11:22:44 -0600

As far as I know FCL supports some primitive geometrical shapes to check for collisions. Let’s say you detect your moving objects from the cloud, you can represent the detected objects with some primitive shapes such as box or cylinder then you can call collide callback from FCL.

I have done this in one of my recent project, I check collision between a 3D box representing robot body and octomap that is representing an envoirment.

Check out the function named isStateValid() https://github.com/NMBURobotics/vox_n...

Don’t be scared that the code looks a bit complex, you can only focus FCL:: parts , and see how dimensions , translation and rotation components are set for collision objects. Overall I think It’s doing something very similar of what you describe.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2021-08-03 04:28:23 -0600

Seen: 393 times

Last updated: Aug 03 '21