lnotspotl / tbai

Towards better athletic intelligence
49 stars 11 forks source link

Install fail #1

Open peci1 opened 4 months ago

peci1 commented 4 months ago

Additional libraries I needed to install (except what is installed by rosdep install --from-paths . --ignore-src -r):

This can be fixed by adding the following dependencies to package.xml of some packages:


Additionally, raisim needed to be installed:

git clone --depth 1 https://github.com/raisimTech/raisimLib.git -b v1.1.01
mkdir raisimLib/build
cd raisimLib/build
cmake .. -DCMAKE_BUILD_TYPE=Release
sudo apt install checkinstall
sudo checkinstall --pkgname raisim --nodoc -y

Also, a raisim license will be needed to run it: https://raisim.com/sections/License.html .


Additionally, onnxruntime needed to be installed:

# start in the workspace folder, i.e. the folder containing build and devel folders
cd /tmp
wget https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/onnxruntime-linux-x64-1.7.0.tgz
tar xf onnxruntime-linux-x64-1.7.0.tgz
mkdir -p ~/.local/bin ~/.local/include/onnxruntime ~/.local/lib ~/.local/share/cmake/onnxruntime
rsync -a /tmp/onnxruntime-linux-x64-1.7.0/include/ ~/.local/include/onnxruntime
rsync -a /tmp/onnxruntime-linux-x64-1.7.0/lib/ ~/.local/lib
cd -
rsync -a src/tbai/dependencies/ocs2/ocs2_mpcnet/ocs2_mpcnet_core/misc/onnxruntime/cmake/ ~/.local/share/cmake/onnxruntime

I haven't managed to build ocs2_doc. Skip it with catkin config --skiplist ocs2_doc.

lnotspotl commented 3 months ago

I added a simple installation guide. I am sure issues will occur with people not having a specific library installed, though I believe we can get to the "perfect" guide iteratively, over time.