Skip to content

Commit f11f466

Browse files
authored
Update install-openrave.md
1 parent 24b9908 commit f11f466

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

docs/install-openrave.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,9 @@ We use the OpenRAVE core library for simulations. Official links:
77

88
Legacy documentation regarding OpenRAVE installations can be found at: [(Legacy) Install OpenRAVE](legacy/legacy-install-openrave.md)
99

10-
## Install OpenRAVE via scripts (Ubuntu 18.04 Bionic and Ubuntu 20.04 Focal)
11-
12-
Tested and works on fresh installs. Easy, but not guaranteed to work, nor to be the fastest mechanism (e.g. fcl not mandatory, and osg could alternatively be installed via `apt` in 20.04 Focal). Provides:
13-
14-
- Ubuntu 20.04 Focal: OpenRAVE 0.54.0 with Python 2 bindings, FCL, and OpenSceneGraph viewer.
15-
- Ubuntu 18.04 Bionic: OpenRAVE 0.9.0 with Python 2 bindings, FCL, and Qtcoin viewer.
10+
## Install OpenRAVE 0.136.1 (Ubuntu 20.04 Focal and newer)
1611

17-
```bash
18-
sudo apt install git lsb-release # probably already installed
19-
```
20-
21-
On a fresh 20.04 Focal had to configure git email and user, even dummy okay:
22-
23-
```bash
24-
git config --global user.name "FIRST_NAME LAST_NAME"
25-
git config --global user.email "[email protected]"
26-
```
27-
28-
Always pay attention to prompts for `sudo` (and insert password):
29-
30-
```bash
31-
cd # go home
32-
git clone https://github.com/crigroup/openrave-installation
33-
cd openrave-installation
34-
./install-dependencies.sh
35-
./install-osg.sh
36-
./install-fcl.sh
37-
./install-openrave.sh
38-
```
39-
40-
### Troubleshooting OpenRAVE via scripts (Ubuntu 18.04 Bionic and Ubuntu 20.04 Focal)
41-
42-
Also on 20.04 Focal had to run the [`pip install ipython h5py numpy scipy wheel`](https://github.com/crigroup/openrave-installation/blob/b2766bd789e2432c4485dff189e75cf328f243ec/install-dependencies.sh#L44) line manually, and `rm -rf ~/openrave` to run `./install-openrave.sh` again.
43-
44-
Moreover, if Ubuntu installation not fresh, beware of Python 2 vs 3 issues. Troubleshooting, make sure `python --version` gives you Python 2, else `update-alternatives` is your friend. Finally, in line with this, make sure you have the Python 2 development headers, which should be at `/usr/include/python2.7`.
45-
46-
## Install OpenRAVE 0.54.0 (Ubuntu 20.04 Focal)
47-
48-
No official PPA, install from source. Install Dependencies that must be installed for compilation:
12+
No official PPA, install from source. Install dependencies that must be installed for compilation:
4913

5014
- [Install CMake](install-cmake.md)
5115
- [Install RapidJSON](install-rapidjson.md)
@@ -54,23 +18,23 @@ Note that you will be prompted for your password upon using `sudo`.
5418

5519
```bash
5620
sudo apt install git # probably already installed
57-
sudo apt install libboost-filesystem-dev libboost-system-dev libboost-python-dev libboost-thread-dev libboost-iostreams-dev libboost-numpy-dev
21+
sudo apt install libboost-filesystem-dev libboost-system-dev libboost-thread-dev libboost-iostreams-dev
5822
sudo apt install libxml2-dev libode-dev
5923
sudo apt install liblapack-dev
60-
sudo apt install libcollada-dom2.4-dp-dev
61-
sudo apt install libopenscenegraph-dev # OSG 3.6.4 ok with OR 4c43d49895934b61cc286a6b41a10d3661fde465
24+
sudo apt install libcollada-dom-dev
25+
sudo apt install libsoqt520-dev libcoin-dev
6226
cd # go home
6327
mkdir -p repos; cd repos # create $HOME/repos if it doesn't exist; then, enter it
6428
git clone --branch master https://github.com/rdiankov/openrave.git
6529
cd openrave; mkdir build; cd build
66-
cmake .. -DOPT_VIDEORECORDING=OFF -DOPT_PYTHON=OFF
30+
cmake .. -DOPT_VIDEORECORDING=OFF -DOPT_PYTHON=OFF -DOPT_PYTHON3=OFF -DOPT_MSGPACK=OFF -DOPT_ENCRYPTION=OFF
6731
make -j$(nproc)
6832
sudo make install; cd # install and go home
6933
```
7034

7135
## Install OpenRAVE 0.54.0 (Ubuntu 18.04 Bionic)
7236

73-
No official PPA, install from source. Install Dependencies that must be installed for compilation:
37+
No official PPA, install from source. Install dependencies that must be installed for compilation:
7438

7539
- [Install CMake](install-cmake.md)
7640
- [Install RapidJSON](install-rapidjson.md)
@@ -95,7 +59,7 @@ sudo make install; cd # install and go home
9559

9660
## Install OpenRAVE 0.9.0 (Ubuntu 18.04 Bionic)
9761

98-
No official PPA, install from source. Install Dependencies that must be installed for compilation:
62+
No official PPA, install from source. Install dependencies that must be installed for compilation:
9963

10064
- [Install CMake](install-cmake.md)
10165

@@ -123,6 +87,42 @@ sudo make install; cd # install and go home
12387

12488
- In case you run into `non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]` errors (happened on OpenRAVE 0.15 and a Clang 6.0.0/7.0.0 compiler), reconfigure CMake with the following option: `cmake .. -DOPT_IKFAST_FLOAT32=OFF`
12589

90+
## Install OpenRAVE via scripts (Ubuntu 18.04 Bionic and Ubuntu 20.04 Focal)
91+
92+
Tested and works on fresh installs. Easy, but not guaranteed to work, nor to be the fastest mechanism (e.g. fcl not mandatory, and osg could alternatively be installed via `apt` in 20.04 Focal). Provides:
93+
94+
- Ubuntu 20.04 Focal: OpenRAVE 0.54.0 with Python 2 bindings, FCL, and OpenSceneGraph viewer.
95+
- Ubuntu 18.04 Bionic: OpenRAVE 0.9.0 with Python 2 bindings, FCL, and Qtcoin viewer.
96+
97+
```bash
98+
sudo apt install git lsb-release # probably already installed
99+
```
100+
101+
On a fresh 20.04 Focal had to configure git email and user, even dummy okay:
102+
103+
```bash
104+
git config --global user.name "FIRST_NAME LAST_NAME"
105+
git config --global user.email "[email protected]"
106+
```
107+
108+
Always pay attention to prompts for `sudo` (and insert password):
109+
110+
```bash
111+
cd # go home
112+
git clone https://github.com/crigroup/openrave-installation
113+
cd openrave-installation
114+
./install-dependencies.sh
115+
./install-osg.sh
116+
./install-fcl.sh
117+
./install-openrave.sh
118+
```
119+
120+
### Troubleshooting OpenRAVE via scripts (Ubuntu 18.04 Bionic and Ubuntu 20.04 Focal)
121+
122+
Also on 20.04 Focal had to run the [`pip install ipython h5py numpy scipy wheel`](https://github.com/crigroup/openrave-installation/blob/b2766bd789e2432c4485dff189e75cf328f243ec/install-dependencies.sh#L44) line manually, and `rm -rf ~/openrave` to run `./install-openrave.sh` again.
123+
124+
Moreover, if Ubuntu installation not fresh, beware of Python 2 vs 3 issues. Troubleshooting, make sure `python --version` gives you Python 2, else `update-alternatives` is your friend. Finally, in line with this, make sure you have the Python 2 development headers, which should be at `/usr/include/python2.7`.
125+
126126
## Extra Tips
127127

128128
Note that you may end up requiring over 2 GB of free space during the installation of `apt` dependencies. To avoid that, use the `--no-install-recommends` option as in:

0 commit comments

Comments
 (0)