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

Process sim_grasp.py terminates after loading all the scene #24

Open
MarioCavero opened this issue Sep 30, 2022 · 5 comments
Open

Process sim_grasp.py terminates after loading all the scene #24

MarioCavero opened this issue Sep 30, 2022 · 5 comments

Comments

@MarioCavero
Copy link

I am have been trying to fix this issue where I run sim_grasp.py:
python3 scripts/sim_grasp.py --model data/runs/22-08-10-08-09_dataset\=foo\,augment\=False\,net\=conv\,batch_size\=32\,lr\=3e-04/vgn_conv_7.pt --sim-gui --rviz

Before, I run roscore in another console. All the previous instructions for the rest of the parts have been made. Also trained a model.

With the following output:

pybullet build time: May 28 2020 16:37:34
startThreads creating 1 threads.
starting thread 0
started thread 0 
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
X11 functions dynamically loaded using dlopen/dlsym OK!
X11 functions dynamically loaded using dlopen/dlsym OK!
Creating context
Created GL 3.3 context
Direct GLX rendering context obtained
Making context current
GL_VENDOR=Mesa/X.org
GL_RENDERER=llvmpipe (LLVM 12.0.0, 256 bits)
GL_VERSION=4.5 (Core Profile) Mesa 21.2.6
GL_SHADING_LANGUAGE_VERSION=4.50
pthread_getconcurrency()=0
Version = 4.5 (Core Profile) Mesa 21.2.6
Vendor = Mesa/X.org
Renderer = llvmpipe (LLVM 12.0.0, 256 bits)
b3Printf: Selected demo: Physics Server
startThreads creating 1 threads.
starting thread 0
started thread 0 
MotionThreadFunc thread started
ven = Mesa/X.org
ven = Mesa/X.org
100%|█████████████████████████████████████████| 100/100 [15:39<00:00,  9.39s/it]
numActiveThreads = 0
stopping threads
Thread with taskId 0 exiting
Thread TERMINATED
destroy semaphore
semaphore destroyed
destroy main semaphore
main semaphore destroyed
finished
numActiveThreads = 0
btShutDownExampleBrowser stopping threads
Thread with taskId 0 exiting
Thread TERMINATED
destroy semaphore
semaphore destroyed
destroy main semaphore
main semaphore destroyed

I have been trying to see if there was anything wrong with my ros installation. My system is Ubuntu 20.04 (Ubuntu 20.04.5 LTS). I am trying the simulation in VirtualBox, having done the previous parts on a real Ubuntu machine. Might it be something related to the VM?

@aniketghodake10
Copy link

I am have been trying to fix this issue where I run sim_grasp.py: python3 scripts/sim_grasp.py --model data/runs/22-08-10-08-09_dataset\=foo\,augment\=False\,net\=conv\,batch_size\=32\,lr\=3e-04/vgn_conv_7.pt --sim-gui --rviz

Before, I run roscore in another console. All the previous instructions for the rest of the parts have been made. Also trained a model.

With the following output:

pybullet build time: May 28 2020 16:37:34
startThreads creating 1 threads.
starting thread 0
started thread 0 
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
X11 functions dynamically loaded using dlopen/dlsym OK!
X11 functions dynamically loaded using dlopen/dlsym OK!
Creating context
Created GL 3.3 context
Direct GLX rendering context obtained
Making context current
GL_VENDOR=Mesa/X.org
GL_RENDERER=llvmpipe (LLVM 12.0.0, 256 bits)
GL_VERSION=4.5 (Core Profile) Mesa 21.2.6
GL_SHADING_LANGUAGE_VERSION=4.50
pthread_getconcurrency()=0
Version = 4.5 (Core Profile) Mesa 21.2.6
Vendor = Mesa/X.org
Renderer = llvmpipe (LLVM 12.0.0, 256 bits)
b3Printf: Selected demo: Physics Server
startThreads creating 1 threads.
starting thread 0
started thread 0 
MotionThreadFunc thread started
ven = Mesa/X.org
ven = Mesa/X.org
100%|█████████████████████████████████████████| 100/100 [15:39<00:00,  9.39s/it]
numActiveThreads = 0
stopping threads
Thread with taskId 0 exiting
Thread TERMINATED
destroy semaphore
semaphore destroyed
destroy main semaphore
main semaphore destroyed
finished
numActiveThreads = 0
btShutDownExampleBrowser stopping threads
Thread with taskId 0 exiting
Thread TERMINATED
destroy semaphore
semaphore destroyed
destroy main semaphore
main semaphore destroyed

I have been trying to see if there was anything wrong with my ros installation. My system is Ubuntu 20.04 (Ubuntu 20.04.5 LTS). I am trying the simulation in VirtualBox, having done the previous parts on a real Ubuntu machine. Might it be something related to the VM?

Where is the error ? It is completed 100 % successfully

@MarioCavero
Copy link
Author

MarioCavero commented Sep 30, 2022

I have followed all the steps, data generation and training. What appears as the simulation is I think the default, a box with objects dropping on it, on each "epoch" until 100%. No grasping nor my objects spawning. - 30 Sept 2022

EDIT 25 January 2023: Any insight on this @aniketghodake10

@Andyyoung0507
Copy link

Andyyoung0507 commented Sep 9, 2024

Hi, I also try to synthetic grasping trials in pile scene by using python scripts/generate_data_parallel.py --scene pile --object-set pile/train --num-grasps 400 --num-proc 2 --save-scene ./data/pile/data_pile_train_random_raw_4M, but the terminal show nothing but "pybullet build time: May 28 2020 16:37:34", the file in the data generation is nothing.
I want to ask , is there a problem? How to locate the bug and debug? @MarioCavero @aniketghodake10
Thanks!

@MarioCavero
Copy link
Author

It's been 2 years almost so I cannot really say anything right now. I will re-check this repository in the following weeks so hopefully I'll be able to help out @Andyyoung0507

@Andyyoung0507
Copy link

Thanks for your help!

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

3 participants