You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[What Happened to V-REP?](#what-happened-to-v-rep?)
15
+
-[What Happened to V-REP?](#what-happened-to-v-rep)
16
16
-[Citation](#citation)
17
17
18
18
@@ -53,17 +53,6 @@ Try running one of the examples in the *examples/* folder.
53
53
54
54
_Although you can use CoppeliaSim on any platform, communication via PyRep is currently only supported on Linux._
55
55
56
-
#### Running Headless
57
-
58
-
If you plan to run on a headless machine, you will also need to run with a virtual framebuffer. E.g.
59
-
60
-
```bash
61
-
sudo apt-get install xvfb
62
-
xvfb-run python3 my_pyrep_app.py
63
-
# or if you are using jupyter
64
-
# xvfb-run jupyter notebook
65
-
```
66
-
67
56
#### Troubleshooting
68
57
69
58
Below are some problems you may encounter during installation. If none of these solve your problem, please raise an issue.
@@ -73,6 +62,32 @@ Below are some problems you may encounter during installation. If none of these
73
62
- error: command 'x86_64-linux-gnu-gcc' failed
74
63
- You may be missing packages needed for building python extensions. Try: `sudo apt-get install python3-dev`, and then re-run the installation.
75
64
65
+
## Running Headless
66
+
67
+
You can run PyRep/CoppeliaSim headlessly with VirtualGL. VirtualGL is an open source toolkit that gives any Unix or Linux remote display software the ability to run OpenGL applications **with full 3D hardware acceleration**.
68
+
First insure that you have the nVidia proprietary driver installed. I.e. you should get an output when running `nvidia-smi`. Now run the following commands:
You will now need to reboot, and then start the X server:
78
+
```bash
79
+
sudo reboot
80
+
nohup sudo X &
81
+
```
82
+
Now we are good to go! To render the application with the first GPU, you can do the following:
83
+
```bash
84
+
export DISPLAY=:0.0
85
+
python my_pyrep_app.py
86
+
```
87
+
To render with the second GPU, you will insetad set display as: `export DISPLAY=:0.1`, and so on.
88
+
89
+
**Acknowledgement**: Special thanks to Boyuan Chen (UC Berkeley) for bringing VirtualGL to my attention!
90
+
76
91
## Getting Started
77
92
78
93
1. First take a look at [Usage](#usage) and the examples in the *examples/* folder to see if PyRep might be able to accelerate your research.
@@ -227,11 +242,6 @@ If the robot you want is not currently supported, then why not add it in!
227
242
228
243
[Here is a tutorial for adding robots.](tutorials/adding_robots.md)
229
244
230
-
## Planned Future Updates
231
-
232
-
- Support for MuJoCo
233
-
- Sim-to-Real support (e.g. domain randomization)
234
-
235
245
## Contributing
236
246
237
247
We want to make PyRep the best tool for rapid robot learning research. If you would like to get involved, then please [get in contact](https://www.doc.ic.ac.uk/~slj12/)!
@@ -251,6 +261,7 @@ If you use PyRep in your work, then get in contact and we can add you to the lis
251
261
## Acknowledgements
252
262
253
263
- Georges Nomicos (Imperial College London) for the addition of mobile platforms.
264
+
- Boyuan Chen (UC Berkeley) for bringing VirtualGL to my attention.
0 commit comments