acronym icon indicating copy to clipboard operation
acronym copied to clipboard

Valid grasps not displayed in scene generation

Open schnellerblitz99 opened this issue 4 years ago • 3 comments

Hey, I have an issue with the scene generation. Everything seems to work fine, except the valid grasps are not displayed when generating a scene(--show_grasps is set). I am working with Ubuntu 20.04 and conda environment. Do you have an idea why it is not working? Thanks!

schnellerblitz99 avatar Apr 09 '21 08:04 schnellerblitz99

Hi, this was tested under 18.04. Is there any output/error message that you get when executing the code?

Another possibility that comes to mind is that there might be no valid grasps in the particular scene you are looking at (if all of them are in collision). You can test this by e.g. adding print(len(gripper_markers)) in line https://github.com/NVlabs/acronym/blob/main/scripts/acronym_generate_scene.py#L115 and check that the output is greater than zero.

clemense avatar Apr 09 '21 20:04 clemense

Hello, thank you for you fast reply. So it works under Ubuntu20.04, too. I just had to uncomment or exit the first window which appears containing only the objects in the scene. Screenshot from 2021-04-15 09-52-21 So I guess it is normal, that not every possible, collision-free grasp is displayed? Again, thanks!

schnellerblitz99 avatar Apr 15 '21 07:04 schnellerblitz99

Yes, not every grasps is shown, the visualization will become very slow, but you can increase the parameter --num_grasps_per_object, see here: https://github.com/NVlabs/acronym/blob/cd20a7cc5b5b1f3f5d9488be6ff8698651d96590/scripts/acronym_generate_scene.py#L61

clemense avatar Apr 16 '21 05:04 clemense