-
Notifications
You must be signed in to change notification settings - Fork 9
Updating docker files to support Inivation's DVXplorer Micro camera #17
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| FROM nvidia/opengl:1.2-glvnd-devel-ubuntu20.04 | ||
| ENV DEBIAN_FRONTEND noninteractive | ||
| ENV NVIDIA_VISIBLE_DEVICES all | ||
| ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute | ||
| ENV LD_LIBRARY_PATH=/usr/lib/wsl/lib | ||
| ENV LIBVA_DRIVER_NAME=d3d12 | ||
| ARG CODE_DIR=/usr/local/src | ||
|
|
||
| RUN apt update | ||
|
|
||
| #basic environment | ||
| RUN apt install -y \ | ||
| ca-certificates \ | ||
| build-essential \ | ||
| git \ | ||
| cmake \ | ||
| cmake-curses-gui \ | ||
| libace-dev \ | ||
| libassimp-dev \ | ||
| libglew-dev \ | ||
| libglfw3-dev \ | ||
| libglm-dev \ | ||
| libeigen3-dev | ||
|
|
||
| # Suggested dependencies for YARP | ||
| RUN apt update && apt install -y \ | ||
| qtbase5-dev qtdeclarative5-dev qtmultimedia5-dev \ | ||
| qml-module-qtquick2 qml-module-qtquick-window2 \ | ||
| qml-module-qtmultimedia qml-module-qtquick-dialogs \ | ||
| qml-module-qtquick-controls qml-module-qt-labs-folderlistmodel \ | ||
| qml-module-qt-labs-settings \ | ||
| libqcustomplot-dev \ | ||
| libgraphviz-dev \ | ||
| libjpeg-dev \ | ||
| libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ | ||
| gstreamer1.0-plugins-base \ | ||
| gstreamer1.0-plugins-good \ | ||
| gstreamer1.0-plugins-bad \ | ||
| gstreamer1.0-libav | ||
|
|
||
| RUN apt install -y \ | ||
| libcanberra-gtk-module \ | ||
| mesa-utils \ | ||
| ffmpeg \ | ||
| libboost-program-options-dev \ | ||
| libopencv-dev | ||
|
|
||
| #my favourites | ||
| RUN apt update && apt install -y \ | ||
| vim \ | ||
| gdb | ||
|
|
||
| # Github CLI | ||
| RUN (type -p wget >/dev/null || (apt update && apt-get install wget -y)) \ | ||
| && mkdir -p -m 755 /etc/apt/keyrings \ | ||
| && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ | ||
| && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ | ||
| && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | ||
| && apt update \ | ||
| && apt install gh -y | ||
|
|
||
| # YCM | ||
| ARG YCM_VERSION=v0.15.2 | ||
| RUN cd $CODE_DIR && \ | ||
| git clone --depth 1 --branch $YCM_VERSION https://github.com/robotology/ycm.git && \ | ||
| cd ycm && \ | ||
| mkdir build && cd build && \ | ||
| cmake .. && \ | ||
| make -j `nproc` install | ||
|
|
||
|
|
||
| # YARP | ||
| ARG YARP_VERSION=v3.8.0 | ||
| RUN cd $CODE_DIR && \ | ||
| git clone --depth 1 --branch $YARP_VERSION https://github.com/robotology/yarp.git &&\ | ||
| cd yarp &&\ | ||
| mkdir build && cd build &&\ | ||
| cmake .. &&\ | ||
| make -j `nproc` install | ||
|
|
||
| EXPOSE 10000/tcp 10000/udp | ||
| RUN yarp check | ||
|
|
||
| # dv-processing | ||
| # Add toolchain PPA and install gcc-13/g++-13 | ||
| RUN apt update && \ | ||
| apt install -y software-properties-common && \ | ||
| add-apt-repository ppa:ubuntu-toolchain-r/test && \ | ||
| apt update && \ | ||
| apt install -y gcc-13 g++-13 | ||
|
|
||
| # Add inivation PPA and install dv-processing dependencies | ||
| RUN add-apt-repository ppa:inivation-ppa/inivation && \ | ||
| apt-get update && \ | ||
| apt-get install -y \ | ||
| boost-inivation \ | ||
| libcaer-dev \ | ||
| libfmt-dev \ | ||
| liblz4-dev \ | ||
| libzstd-dev \ | ||
| libssl-dev && \ | ||
| apt-get -y install dv-processing | ||
|
|
||
| ENV CC=gcc-13 | ||
| ENV CXX=g++-13 | ||
| ENV BOOST_ROOT=/opt/inivation/boost | ||
| ENV BOOST_INCLUDEDIR=/opt/inivation/boost/include | ||
| ENV BOOST_LIBRARYDIR=/opt/inivation/boost/lib | ||
|
|
||
|
|
||
| # event-driven | ||
| ARG ED_VERSION=main | ||
| RUN cd $CODE_DIR &&\ | ||
| git clone --depth 1 --branch $ED_VERSION https://github.com/jorou125/event-driven-DVXplorerMicro.git &&\ | ||
| mv event-driven-DVXplorerMicro event-driven && \ | ||
| cd event-driven &&\ | ||
| mkdir build && cd build &&\ | ||
| cmake .. &&\ | ||
| make -j `nproc` install | ||
|
|
||
| # object-tracking-six-dof | ||
|
|
||
| ###################### | ||
| # set github ssh keys # | ||
| ####################### | ||
|
|
||
| RUN apt install -y \ | ||
| openssh-client git \ | ||
| libmysqlclient-dev \ | ||
| libsm6 libxext6 | ||
|
|
||
| # Authorize SSH Host | ||
| RUN mkdir -p /root/.ssh && \ | ||
| chmod 0700 /root/.ssh | ||
| RUN ssh-keyscan github.com > /root/.ssh/known_hosts | ||
|
|
||
| ARG GIT_BRANCH=main | ||
| RUN cd $CODE_DIR &&\ | ||
| git clone https://github.com/jorou125/DV-EDOPT.git &&\ | ||
| mv DV-EDOPT EDOPT &&\ | ||
| cd EDOPT &&\ | ||
|
Comment on lines
+139
to
+141
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, you used your forked repository. After merging your request, I will switch to our github repository |
||
| git checkout $GIT_BRANCH | ||
|
|
||
| # SUPERIMPOSEMESH | ||
| ARG SIML_VERSION=devel | ||
| RUN cd $CODE_DIR &&\ | ||
| git clone --depth 1 --branch $SIML_VERSION https://github.com/robotology/superimpose-mesh-lib.git &&\ | ||
| cd superimpose-mesh-lib &&\ | ||
| git apply $CODE_DIR/EDOPT/superimposeroi.patch &&\ | ||
| mkdir build && cd build &&\ | ||
| cmake .. &&\ | ||
| make -j `nproc` install | ||
|
|
||
| # Build EDOPT | ||
| RUN cd $CODE_DIR &&\ | ||
| cd EDOPT/code &&\ | ||
| mkdir build && cd build &&\ | ||
| cmake .. &&\ | ||
| make -j `nproc` | ||
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to delete this part because it is for WSL, right?