Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get colliding link with insertRobotIntoMapSelfCollAware() #125

Open
giorgionicola opened this issue May 3, 2021 · 1 comment
Open

get colliding link with insertRobotIntoMapSelfCollAware() #125

giorgionicola opened this issue May 3, 2021 · 1 comment

Comments

@giorgionicola
Copy link

I am using the method gpu_voxels::insertRobotIntoMapSelfCollAware() method to get the collision between two robots, the outputs is only a boolean.

Is there a way to know also which is the couple of colliding links?

@cjue
Copy link
Contributor

cjue commented May 3, 2021

@giorgionicola: Yes, you can use the optional parameter colliding_meanings to collect that information.

The description can be found in the header file with the definition of GpuVoxels::insertRobotIntoMapSelfCollAware():
https://github.com/fzi-forschungszentrum-informatik/gpu-voxels/blob/master/packages/gpu_voxels/src/gpu_voxels/GpuVoxels.h#L318

Implementation: https://github.com/fzi-forschungszentrum-informatik/gpu-voxels/blob/master/packages/gpu_voxels/src/gpu_voxels/voxelmap/BitVoxelMap.hpp#L339

Example: https://github.com/fzi-forschungszentrum-informatik/gpu-voxels/blob/master/packages/gpu_voxels/src/examples/URDF_Loader_Selfcoll.cpp#L192

The example code linked to above needs some updates from our internal gpu_voxels repo, but the general usage of the API is correct.

Let me know if you encounter further obstacles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants