diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..177f786 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.github +nanosaur_tools +Dockerfile* \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..cfea5f7 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,5 @@ +# These are supported funding model platforms + +github: rbonghi +patreon: rbonghi +custom: https://rnext.it \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 65f9ac4..850ab0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,3 +35,24 @@ ENV CUDA=10.2 # Disable terminal interaction for apt ENV DEBIAN_FRONTEND=noninteractive +################ NANOSAUR PKGS #################### + +# Download and build nanosaur_ei +ENV ROS_WS /opt/ros_ws + +# Copy wstool ei.rosinstall +COPY nanosaur_ei/rosinstall/ei.rosinstall ei.rosinstall + +RUN mkdir -p ${ROS_WS}/src && \ + vcs import ${ROS_WS}/src < ei.rosinstall + +ADD . $ROS_WS/src/nanosaur_ei + +# Change workdir +WORKDIR $ROS_WS + +# Build nanosaur edge impulse package +RUN . /opt/ros/$ROS_DISTRO/install/setup.sh && \ + colcon build --symlink-install \ + --cmake-args \ + -DCMAKE_BUILD_TYPE=Release \ No newline at end of file diff --git a/nanosaur_ei/package.xml b/nanosaur_ei/package.xml new file mode 100644 index 0000000..9f9632b --- /dev/null +++ b/nanosaur_ei/package.xml @@ -0,0 +1,50 @@ + + + + + nanosaur_ei + 0.1.0 + nanosaur edge impulse + + Raffaello Bonghi + Raffaello Bonghi + MIT + + https://nanosaur.ai/ + https://github.com/rnanosaur/nanosaur_ei + https://github.com/rnanosaur/nanosaur_ei/issues + + ament_cmake + + ament_lint_auto + ament_lint_common + + + ament_cmake + + \ No newline at end of file diff --git a/nanosaur_ei/rosinstall/ei.rosinstall b/nanosaur_ei/rosinstall/ei.rosinstall new file mode 100644 index 0000000..fa60653 --- /dev/null +++ b/nanosaur_ei/rosinstall/ei.rosinstall @@ -0,0 +1,8 @@ +- git: + local-name: nanosaur + version: foxy + uri: https://github.com/rnanosaur/nanosaur.git +- git: + local-name: edgeimpulse_ros + version: 0.0.1 + uri: https://github.com/gbr1/edgeimpulse_ros.git \ No newline at end of file