NVlabs / acronym

This repository contains a sample of the grasping dataset and tools to visualize grasps, generate random scenes, and render observations. The two sample files are in the HDF5 format.
MIT License
117 stars 25 forks source link

Valid grasps not displayed in scene generation #4

Open schnellerblitz99 opened 3 years ago

schnellerblitz99 commented 3 years ago

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!

clemense commented 3 years ago

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.

schnellerblitz99 commented 3 years ago

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!

clemense commented 3 years ago

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