diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index d84bdd7..4590d10 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -15,7 +15,7 @@ jobs: token: ${{secrets.github_token}} - name: Package id: package - uses: AutoModality/action-package-debian-ros@v1.1.0 + uses: AutoModality/action-package-debian-ros@v1.1.1 with: branch: ${{ github.event.pull_request.head.ref }} pull-request-number: ${{ github.event.number }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 272551b..b5525be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,14 +14,13 @@ jobs: with: semantic_version: 15.14.0 extra_plugins: | - @semantic-release/git @semantic-release/changelog@3.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Package if: steps.semantic.outputs.new_release_published == 'true' id: package - uses: AutoModality/action-package-debian-ros@v1.1.0 + uses: AutoModality/action-package-debian-ros@v1.1.1 with: version: ${{ steps.semantic.outputs.new_release_version }} - name: The generated package diff --git a/.github/workflows/story.yml b/.github/workflows/story.yml index 0ee41d4..5098d6a 100644 --- a/.github/workflows/story.yml +++ b/.github/workflows/story.yml @@ -9,6 +9,7 @@ jobs: runs-on: ubuntu-16.04 steps: - uses: actions/checkout@v1 - - name: make - uses: AutoModality/action-make-ros@v1.0.0 + - name: Package + uses: AutoModality/action-package-debian-ros@v1.1.1 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7aae5d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + + +catkin_ws +debian/ros-kinetic-*.debhelper.log +debian/ros-kinetic-am-utils* +debian/debhelper-build-stamp +debian/source diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 0000000..7e89915 --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,74 @@ +v1.0.1 (2020-01-06) +------------ +- Adding changelog for original release feature/BB-772. [Jimi Damon] + + +v1.0.0 (2020-01-05) +------------------- +- Merge pull request #3 from AutoModality/feature/BB-772. [Aaron Roller] + + realease config needed to avoid node dependency feature/BB-772 +- Realease config needed to avoid node dependency feature/BB-772. [Aaron + Roller] +- Merge pull request #1 from AutoModality/feature/BB-772. [Aaron Roller] + + BB-772 Added Github Actions Make, Package, Release +- Feat: added Actions following the standard release process + feature/BB-772. [Aaron Roller] +- Added package and release feature/BB-772. [Aaron Roller] +- Fixing regex feature/BB-772. [Jimi Damon] +- Adding this branch feature/BB-772. [Jimi Damon] +- Adding story workflow feature/BB-772. [Jimi Damon] +- Removing build.yml feature/BB-772. [Jimi Damon] +- Trying out build using @arollers build feature/BB-772. [Jimi Damon] +- Still Trying out fixes with build.yml feature/BB-772. [Jimi Damon] +- Still Trying out fixes with build.yml feature/BB-772. [Jimi Damon] +- Still Trying out fixes with build.yml feature/BB-772. [Jimi Damon] +- Trying out fixes with build.yml feature/BB-772. [Jimi Damon] +- Adding github workflow feature/BB-772. [Jimi Damon] +- Debian information for packages feature/BB-772. [Jimi Damon] +- Ground removal. [Unknown] + + +demo_2019_02_25 (2019-02-09) +----------------- + +New +~~~ +- New Delay statistics message and online statistics algorithms + calculations. [Jimi Damon] + + - allows mean and variance to be calculated incrementally when new data points come in + - we can keep a sliding window of number of points to use for our mean and var calculations + - resolved merge conflicts with taos checkin + + TMP +- Add CAN socket. [Tao Wang] + +Other +~~~~~ +- New topics for dji_sdk gimbal. [Unknown] +- Correct dji_sdk topics. [dan hennage] +- More vision topic fixes. [dan hennage] +- Fixed the naming bug in sensor camera topics. [dan hennage] +- Successfull build. [ubuntu] +- More dji_vision related topics and services. [ubuntu] +- Topics for dji vision. [ubuntu] +- Topic for Battery_state. [ubuntu] +- Distance/agl_lw. [dan hennage] +- Added ouster topics. [dan hennage] +- Add LED blink topic. [ubuntu] +- Added topics. [dan hennage] +- Set addr.can_family before ioctl. [Jimi Damon] +- Release CAN key when read fail. [dan hennage] +- :sparkles: Fixes for creating an installable library. [Jimi Damon] +- More user friendly message that includes stddev instead of variance. + [Jimi Damon] +- Revise the header macro for CAN socket. [Tao Wang] +- Added topics. [dan hennage] +- Latency_wrapper.h bug fix. [ubuntu] +- Fix on latency_wrapper. [ubuntu] +- Added sc1 topics. [dan hennage] +- Changed to strings. [dan hennage] + + diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fef647..48db159 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,10 @@ find_package(catkin REQUIRED COMPONENTS nav_msgs genmsg std_msgs - sensor_msgs) + sensor_msgs + rosconsole + rostime + ) add_message_files( DIRECTORY msg diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e3efa51 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +SHELL := /bin/bash + +default: + source /opt/ros/kinetic/setup.bash && cd catkin_ws && catkin clean -f -i -y && catkin build -j3 + rm -f catkin_ws/install/lib/pkgconfig/catkin_tools_prebuild.pc + @echo "Built!!!!" + +install: + rm -rf catkin_ws/install/share/catkin_tools_prebuild + install -d $(DESTDIR)/opt/ros/kinetic/ + cp -f -p -r catkin_ws/install/lib $(DESTDIR)/opt/ros/kinetic + cp -f -p -r catkin_ws/install/share $(DESTDIR)/opt/ros/kinetic + cp -f -p -r catkin_ws/install/include $(DESTDIR)/opt/ros/kinetic + + +clean: + @echo "Cleaning" + rm -rf catkin_ws diff --git a/README.md b/README.md index ade4d43..dce527a 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,30 @@ A common library for sharing core code. | [![Release](https://github.com/AutoModality/am-utils/workflows/Release/badge.svg)](https://github.com/AutoModality/am-utils/actions?query=workflow%3A%22Release) | [![Latest Version @ Cloudsmith](https://api-prd.cloudsmith.io/badges/version/automodality/release/deb/ros-kinetic-am-utils/latest/d=ubuntu%252Fxenial;t=1/?render=true&badge_token=gAAAAABeEYCXaXnvhWBdS0An17OCBntPch8LyCzJnPoQYMA4Ng8uIJnw2hvwdvv_NBqAOTu76_FBfvns72pfHrzV2xWoBFEvGA-hns2hV-4yu2BmqWtHCT0%3D)](https://cloudsmith.io/~automodality/repos/release/packages/detail/deb/ros-kinetic-am-utils/latest/d=ubuntu%252Fxenial;t=1/)| +## Run in Docker + +Mounts your local clone of this repository to `/workspace` directory in a docker container. + +**Prerequisites** +* Docker is installed +* This repository is cloned +* Your current directory is the root of this repository + +``` +docker run -w /workspace -v `pwd`:/workspace -it docker.cloudsmith.io/automodality/dev/amros-base +``` + +## Build + +Build with debian in docker. + +``` + + +## Package + +Runs `Build` and packages for installation. + ## Releases See [releases](https://github.com/AutoModality/am-utils/releases) for the latest. Follows the standard [Development Lifecycle](https://automodality.atlassian.net/wiki/spaces/AUTOMOD/pages/668664251/Development+Lifecycle). \ No newline at end of file diff --git a/configure b/configure new file mode 100755 index 0000000..9671601 --- /dev/null +++ b/configure @@ -0,0 +1,18 @@ +#!/bin/bash +PACKAGE=am-utils +source /opt/ros/kinetic/setup.bash +echo "We are $(pwd)" +CURDIR=$(readlink -f $(pwd)) +mkdir -p catkin_ws/src/${PACKAGE} +WORKSPACE=$(readlink -f ./catkin_ws) +cp -r src catkin_ws/src/${PACKAGE} +cp -r include catkin_ws/src/${PACKAGE} +cp -r test catkin_ws/src/${PACKAGE} +cp -r msg catkin_ws/src/${PACKAGE} +cp package.xml catkin_ws/src/${PACKAGE} +cp CMakeLists.txt catkin_ws/src/${PACKAGE} +cd catkin_ws +catkin init --workspace . +echo "PWD: $(pwd)" +catkin config --install + diff --git a/debian/control b/debian/control index d453732..89574b2 100644 --- a/debian/control +++ b/debian/control @@ -1,13 +1,12 @@ Source: ros-kinetic-am-utils -Section: unknown +Section: misc Priority: extra -Maintainer: Jimi Damon -Build-Depends: cmake, debhelper (>=9),javahelper -Standards-Version: 3.9.6 -Homepage: +Maintainer: info +Build-Depends: debhelper (>= 9.0.0), ros-kinetic-catkin, ros-kinetic-geometry-msgs, ros-kinetic-message-generation, ros-kinetic-nav-msgs, ros-kinetic-rosconsole, ros-kinetic-roscpp, ros-kinetic-rostime, ros-kinetic-sensor-msgs, ros-kinetic-std-msgs +Homepage: https://github.com/AutoModality/am-utils +Standards-Version: 3.9.2 Package: ros-kinetic-am-utils Architecture: any -Multi-Arch: foreign -Depends: ${misc:Depends}, ${shlibs:Depends} -Description: Utilites for AM based ROs packages +Depends: ${shlibs:Depends}, ${misc:Depends}, ros-kinetic-geometry-msgs, ros-kinetic-message-runtime, ros-kinetic-nav-msgs, ros-kinetic-rosconsole, ros-kinetic-roscpp, ros-kinetic-rostime, ros-kinetic-sensor-msgs, ros-kinetic-std-msgs +Description: The am utils package diff --git a/debian/rules b/debian/rules index 24150db..812918d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,15 +1,58 @@ #!/usr/bin/make -f -# You must remove unused comment lines for the released package. -#export DH_VERBOSE = 1 -#export DEB_BUILD_MAINT_OPTIONS = hardening=+all -#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -#export JAVA_HOME=/usr/lib/jvm/default-java -#export CLASSPATH=/usr/share/java/csv.jar:/usr/share/java/debug-disable.jar:/usr/share/java/itext.jar +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 +# TODO: remove the LDFLAGS override. It's here to avoid esoteric problems +# of this sort: +# https://code.ros.org/trac/ros/ticket/2977 +# https://code.ros.org/trac/ros/ticket/3842 +export LDFLAGS= +export PKG_CONFIG_PATH=/opt/ros/kinetic/lib/pkgconfig +# Explicitly enable -DNDEBUG, see: +# https://github.com/ros-infrastructure/bloom/issues/327 +export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG %: dh $@ -#override_dh_auto_configure: -# dh_auto_configure -- \ -# -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)" +override_dh_auto_configure: + # In case we're installing to a non-standard location, look for a setup.sh + # in the install tree that was dropped by catkin, and source it. It will + # set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. + if [ -f "/opt/ros/kinetic/setup.sh" ]; then . "/opt/ros/kinetic/setup.sh"; fi && \ + dh_auto_configure + +override_dh_auto_build: + # In case we're installing to a non-standard location, look for a setup.sh + # in the install tree that was dropped by catkin, and source it. It will + # set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. + if [ -f "/opt/ros/kinetic/setup.sh" ]; then . "/opt/ros/kinetic/setup.sh"; fi && \ + dh_auto_build + +override_dh_auto_test: + # In case we're installing to a non-standard location, look for a setup.sh + # in the install tree that was dropped by catkin, and source it. It will + # set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. + echo -- Running tests. Even if one of them fails the build is not canceled. + if [ -f "/opt/ros/kinetic/setup.sh" ]; then . "/opt/ros/kinetic/setup.sh"; fi && \ + dh_auto_test || true + +override_dh_shlibdeps: + # In case we're installing to a non-standard location, look for a setup.sh + # in the install tree that was dropped by catkin, and source it. It will + # set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. + if [ -f "/opt/ros/kinetic/setup.sh" ]; then . "/opt/ros/kinetic/setup.sh"; fi && \ + dh_shlibdeps -l$(CURDIR)/debian/ros-kinetic-am-utils//opt/ros/kinetic/lib/ + +override_dh_auto_install: + # In case we're installing to a non-standard location, look for a setup.sh + # in the install tree that was dropped by catkin, and source it. It will + # set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. + if [ -f "/opt/ros/kinetic/setup.sh" ]; then . "/opt/ros/kinetic/setup.sh"; fi && \ + dh_auto_install diff --git a/package.xml b/package.xml index 6664b68..ce7681b 100644 --- a/package.xml +++ b/package.xml @@ -1,7 +1,7 @@ am_utils - 0.0.0 + 1.0.1 The am utils package info BSD @@ -12,7 +12,9 @@ nav_msgs std_msgs sensor_msgs - + roscpp + rosconsole + rostime message_generation message_runtime