Skip to content

Commit

Permalink
Noetic depth align beta (#22)
Browse files Browse the repository at this point in the history
* WIP ImageTransport

* Half working template

* Not working Template Specialization

* Changed enable if type

* Working ImageTransport:

* Restructuring

* Moved advertizer tag dispatchers as private member functions

* Changed args of advertiser

* Added ROS_DEBUG and WARN logging

* Added camera Info Converter WIP

* Tweaked for boost::array

* Added overloading constructor for BridgePublisher

* Fixed Convertion to Boost issues

* Modified warning on PublishThread

* Added Rectification information

* Added CI for depthai-bridge (#18)

- Added ClangFormat
- Added CI for style check and build

* Added Crop Service

* Updated ROS type image publishers
  • Loading branch information
saching13 authored Aug 10, 2021
1 parent cf50060 commit b101b56
Show file tree
Hide file tree
Showing 18 changed files with 865 additions and 822 deletions.
14 changes: 14 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BasedOnStyle: Google
NamespaceIndentation: None
BreakBeforeBinaryOperators: NonAssignment
SpaceBeforeParens: Never
IndentPPDirectives: BeforeHash
AlignOperands: true
DerivePointerAlignment: false
PointerAlignment: Left
BinPackArguments: false
BinPackParameters: false
AllowShortFunctionsOnASingleLine: Empty
IndentWidth: 4
ColumnLimit: 160
AllowShortIfStatementsOnASingleLine: WithoutElse
5 changes: 5 additions & 0 deletions .github/workflows/examples.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repositories:
luxonis/depthai-ros-examples:
type: git
url: https://github.com/luxonis/depthai-ros-examples.git
version: noetic-examples-update
115 changes: 115 additions & 0 deletions .github/workflows/main.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@

name: DepthAI ROS CI/CD

on:
workflow_dispatch:
push:
branches:
- noetic-devel
tags:
- 'v*'
pull_request:
branches:
- noetic-devel

jobs:

style:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Clang-Format lint

uses: DoozyX/[email protected]
with:
source: '.'
extensions: 'h,hpp,c,cpp'
clangFormatVersion: 10

ROS1-build:
if: startsWith(github.ref, 'refs/heads/noetic')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]

steps:
- uses: actions/checkout@v2

- name: Melodic build
if: matrix.os == 'ubuntu-18.04'
uses: ros-tooling/[email protected]
with:
required-ros-distributions: melodic

- name: Noetic build
if: matrix.os == 'ubuntu-20.04'
uses: ros-tooling/[email protected]
with:
required-ros-distributions: noetic
- name: Installing DepthAi Core
run: sudo wget -qO- https://raw.githubusercontent.com/luxonis/depthai-ros/noetic-devel/install_dependencies.sh | sudo bash

- name: Build depthai-bridge melodic
if: matrix.os == 'ubuntu-18.04'
uses: ros-tooling/[email protected]
with:
# vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/examples.repos"
# package-name: depthai_examples
target-ros1-distro: melodic
skip-tests: true

- name: Build depthai-bridge noetic
if: matrix.os == 'ubuntu-20.04'
uses: ros-tooling/[email protected]
with:
# vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/examples.repos"
# package-name: depthai_examples
target-ros1-distro: noetic
skip-tests: true


ROS2-build:
if: startsWith(github.ref, 'refs/heads/foxy')
runs-on: ubuntu-20.04
strategy:
matrix:
ros_distribution: [foxy, galactic]

steps:
- uses: actions/checkout@v2

- name: ${{ matrix.ros_distribution }} build
uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distribution }}

- name: Installing DepthAi Core
run: sudo wget -qO- https://raw.githubusercontent.com/luxonis/depthai-ros/noetic-devel/install_dependencies.sh | sudo bash

- name: Build depthai-bridge ${{ matrix.ros_distribution }}
uses: ros-tooling/[email protected]
with:
# vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/examples.repos"
# package-name: depthai_examples
target-ros1-distro: ${{ matrix.ros_distribution }}
skip-tests: true



# build_:
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
# - uses: ros-tooling/[email protected]
# with:
# required-ros-distributions: melodic
# - run: sudo wget -qO- https://raw.githubusercontent.com/luxonis/depthai-ros/noetic-devel/install_dependencies.sh | sudo bash
# - uses: ros-tooling/[email protected]
# with:
# # vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/examples.repos"
# # package-name: depthai_examples
# target-ros1-distro: melodic
# skip-tests: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.json
.vscode
devel
Loading

0 comments on commit b101b56

Please sign in to comment.