Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions dependencies/install_sas.sh

This file was deleted.

16 changes: 16 additions & 0 deletions ubuntu_26/dqrobotics/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:resolute
SHELL ["/bin/bash", "-c"]
ENV BASH_ENV="/etc/bash_env"

# Update apt-get
RUN apt-get update -q \
&& apt-get upgrade -y \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# RUN apt-get update && apt-get install -y wget # Use this to get from the repository if needed in the future

RUN mkdir -p ~/install/dqrobotics
COPY install_dqrobotics_ubuntu26.sh /root/install/dqrobotics/
RUN cd ~/install/dqrobotics && chmod +x install_dqrobotics_ubuntu26.sh && . install_dqrobotics_ubuntu26.sh
3 changes: 3 additions & 0 deletions ubuntu_26/dqrobotics/compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
dqrobotics:
build: .
34 changes: 34 additions & 0 deletions ubuntu_26/dqrobotics/install_dqrobotics_ubuntu26.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

# Dependencies
apt-get update
apt-get install -y git software-properties-common libeigen3-dev python3-pip cmake

# Install qpOASES
mkdir -p ~/utils
cd ~/utils
git clone https://github.com/coin-or/qpOASES.git
cd ~/utils/qpOASES
sed -i -e 's/option(BUILD_SHARED_LIBS "If ON, build shared library instead of static" OFF)/option(BUILD_SHARED_LIBS "If ON, build shared library instead of static" ON)/g' CMakeLists.txt
mkdir -p build
cd ~/utils/qpOASES/build
cmake ..
make
make install

# Install DQ Robotics (development branch)
## C++
add-apt-repository ppa:dqrobotics-dev/development
apt-get update
apt-get install -y libdqrobotics libdqrobotics-interface-qpoases #libdqrobotics-interface-json11
## Python
python3 -m pip install dqrobotics --pre --break-system-packages

# To prevent compilation errors with Pybind11
ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
ldconfig

# Clean apt
apt-get autoremove -y
apt-get clean
rm -rf /var/lib/apt/lists/*
Loading