Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: robotology/event-driven
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0
Choose a base ref
...
head repository: robotology/event-driven
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 3,116 additions and 485 deletions.
  1. +90 −0 Dockerfile_Ubuntu2004
  2. +90 −0 Dockerfile_Ubuntu2204
  3. +29 −0 LICENSE
  4. +127 −48 cpp_tools/atis3-bridge/atis-bridge-sdk.cpp
  5. +12 −6 cpp_tools/calibration/CMakeLists.txt
  6. +17 −0 cpp_tools/calibration/README.MD
  7. +54 −24 cpp_tools/calibration/calibrate.cpp
  8. +346 −0 cpp_tools/calibration/stereo-calibrate.cpp
  9. +105 −31 cpp_tools/vFramer/drawers.cpp
  10. +21 −6 cpp_tools/vFramer/drawers.h
  11. +36 −60 cpp_tools/vFramer/vFramer.cpp
  12. +1 −8 cpp_tools/zynqGrabber/CMakeLists.txt
  13. +318 −0 cpp_tools/zynqGrabber/hpuDevice.h
  14. +364 −0 cpp_tools/zynqGrabber/hpuInterface.h
  15. +270 −0 cpp_tools/zynqGrabber/vsctrlDevice.h
  16. +205 −0 cpp_tools/zynqGrabber/vsctrlInterface.h
  17. +3 −146 cpp_tools/zynqGrabber/zynqGrabber.ini
  18. +124 −0 cpp_tools/zynqGrabber/zynqModule.cpp
  19. +21 −0 cpp_tools/zynqGrabber_deprec/CMakeLists.txt
  20. +7 −0 cpp_tools/zynqGrabber_deprec/README.MD
  21. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/ATIS_OK_HS.ini
  22. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/ATIS_OK_std.ini
  23. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/ATIS_chiara.ini
  24. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/ATIS_chris1.ini
  25. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/ATIS_chris2.ini
  26. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/ATIS_icubgenova02.ini
  27. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/ATIS_orig.ini
  28. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/chris_WS_current.ini
  29. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/bias_files/icra_demo.ini
  30. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/include/deviceRegisters.h
  31. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/include/hpuInterface.h
  32. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/include/skinController.h
  33. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/include/visCtrlATIS1.h
  34. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/include/visCtrlATIS3.h
  35. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/include/visionController.h
  36. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/include/zynqGrabberModule.h
  37. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/src/hpuInterface.cpp
  38. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/src/skinController.cpp
  39. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/src/visCtrlATIS1.cpp
  40. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/src/visCtrlATIS3.cpp
  41. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/src/visionController.cpp
  42. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/src/zynqGrabberModule.cpp
  43. +153 −0 cpp_tools/zynqGrabber_deprec/zynqGrabber.ini
  44. 0 cpp_tools/{zynqGrabber → zynqGrabber_deprec}/zynqGrabber.xml
  45. +65 −0 documentation/camera_dumping.md
  46. +48 −0 documentation/docker.md
  47. +1 −1 ev2/CMakeLists.txt
  48. +1 −1 ev2/event-driven/algs/corner.h
  49. +7 −90 ev2/event-driven/algs/surface.cpp
  50. +241 −20 ev2/event-driven/algs/surface.h
  51. +4 −5 ev2/event-driven/core/codec.h
  52. +236 −11 ev2/event-driven/core/comms.h
  53. +33 −2 ev2/event-driven/core/utilities.h
  54. +54 −25 ev2/event-driven/vis/draw.h
  55. +19 −1 ev2/event-driven/vis/filters.cpp
  56. +14 −0 ev2/event-driven/vis/filters.h
90 changes: 90 additions & 0 deletions Dockerfile_Ubuntu2004
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# base image Ubuntu 20.04
FROM ubuntu:focal

ENV DEBIAN_FRONTEND=noninteractive

ARG CODE_DIR=/usr/local/src

#basic environment
RUN apt update && 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

# Add Metavision SDK 3.0 in sources.list
RUN echo "deb [arch=amd64 trusted=yes] https://apt.prophesee.ai/dists/public/b4b3528d/ubuntu focal sdk" >> /etc/apt/sources.list &&\
apt update

RUN apt install -y \
libcanberra-gtk-module \
mesa-utils \
ffmpeg \
libboost-program-options-dev \
libopencv-dev \
metavision-sdk

# 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


# event-driven
ARG ED_VERSION=master
RUN cd $CODE_DIR &&\
git clone --depth 1 --branch $ED_VERSION https://github.com/robotology/event-driven.git &&\
cd event-driven &&\
mkdir build && cd build &&\
cmake .. &&\
make -j `nproc` install

# Add User ID and Group ID
ARG UNAME=event-driven
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o $UNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME

# Change user and working directory
USER $UNAME
WORKDIR /home/${UNAME}
90 changes: 90 additions & 0 deletions Dockerfile_Ubuntu2204
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# base image Ubuntu 22.04
FROM ubuntu:jammy

ENV DEBIAN_FRONTEND=noninteractive

ARG CODE_DIR=/usr/local/src

#basic environment
RUN apt update && 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

# Add Metavision SDK 4.6 in sources.list
RUN echo "deb [arch=amd64 trusted=yes] https://apt.prophesee.ai/dists/public/baiTh5si/ubuntu jammy sdk" >> /etc/apt/sources.list &&\
apt update

RUN apt install -y \
libcanberra-gtk-module \
mesa-utils \
ffmpeg \
libboost-program-options-dev \
libopencv-dev \
metavision-sdk

# 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


# event-driven
ARG ED_VERSION=master
RUN cd $CODE_DIR &&\
git clone --depth 1 --branch $ED_VERSION https://github.com/robotology/event-driven.git &&\
cd event-driven &&\
mkdir build && cd build &&\
cmake .. &&\
make -j `nproc` install

# Add User ID and Group ID
ARG UNAME=event-driven
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o $UNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME

# Change user and working directory
USER $UNAME
WORKDIR /home/${UNAME}
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2021, Event Driven Perception for Robotics
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading