Skip to content

Commit 97d9854

Browse files
authored
Iron 2.10.1 (#594)
1 parent cf5d2aa commit 97d9854

File tree

25 files changed

+50
-34
lines changed

25 files changed

+50
-34
lines changed

.github/workflows/main.workflow.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- galactic
1111
- foxy
1212
- iron
13+
- jazzy
1314
tags:
1415
- 'v*'
1516
pull_request:
@@ -19,6 +20,7 @@ on:
1920
- galactic
2021
- foxy
2122
- iron
23+
- jazzy
2224
env:
2325
ROS_DISTRO: iron
2426

depthai-ros/CHANGELOG.rst

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ Changelog for package depthai-ros
44
Changelog for package depthai-ros
55
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

7+
2.10.1 (2024-09-18)
8+
-------------------
9+
* Fix ToF synced publishing
10+
* Add camera_info publishing when publishing compressed images
11+
* Catch errors when starting the device
12+
13+
714
2.10.0 (2024-08-29)
815
-------------------
9-
## What's Changed
1016
* Adding stl files for SR and LR models by @danilo-pejovic in https://github.com/luxonis/depthai-ros/pull/491
1117
* No imu fix Humble by @Serafadam in https://github.com/luxonis/depthai-ros/pull/500
1218
* Tracking converter for ROS2 Humble by @daniqsilva25 in https://github.com/luxonis/depthai-ros/pull/505
@@ -22,13 +28,6 @@ Changelog for package depthai-ros
2228
* WLS fix humble by @Serafadam in https://github.com/luxonis/depthai-ros/pull/582
2329
* Syncing & RS updates Humble by @Serafadam in https://github.com/luxonis/depthai-ros/pull/586
2430

25-
## New Contributors
26-
* @r4hul77 made their first contribution in https://github.com/luxonis/depthai-ros/pull/507
27-
* @Nibanovic made their first contribution in https://github.com/luxonis/depthai-ros/pull/511
28-
* @destogl made their first contribution in https://github.com/luxonis/depthai-ros/pull/524
29-
30-
**Full Changelog**: https://github.com/luxonis/depthai-ros/compare/v2.9.0-humble...v2.10.0-humble
31-
3231
2.9.0 (2024-01-24)
3332
-------------------
3433

depthai-ros/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS
22

3-
project(depthai-ros VERSION 2.10.0 LANGUAGES CXX C)
3+
project(depthai-ros VERSION 2.10.1 LANGUAGES CXX C)
44

55
set(CMAKE_CXX_STANDARD 14)
66

depthai-ros/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package format="3">
33
<name>depthai-ros</name>
4-
<version>2.10.0</version>
4+
<version>2.10.1</version>
55
<description>The depthai-ros package</description>
66

77
<!-- One maintainer tag required, multiple allowed, one person per tag -->

depthai_bridge/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS
22
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
33

4-
project(depthai_bridge VERSION 2.10.0 LANGUAGES CXX C)
4+
project(depthai_bridge VERSION 2.10.1 LANGUAGES CXX C)
55

66
set(CMAKE_CXX_STANDARD 14)
77
set(CMAKE_CXX_STANDARD_REQUIRED ON)

depthai_bridge/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package format="3">
33
<name>depthai_bridge</name>
4-
<version>2.10.0</version>
4+
<version>2.10.1</version>
55
<description>The depthai_bridge package</description>
66

77
<maintainer email="[email protected]">Adam Serafin</maintainer>

depthai_descriptions/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.8)
2-
project(depthai_descriptions VERSION 2.10.0)
2+
project(depthai_descriptions VERSION 2.10.1)
33

44
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
55
add_compile_options(-Wall -Wextra -Wpedantic)

depthai_descriptions/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package format="3">
33
<name>depthai_descriptions</name>
4-
<version>2.10.0</version>
4+
<version>2.10.1</version>
55
<description>The depthai_descriptions package</description>
66

77
<maintainer email="[email protected]">Adam Serafin</maintainer>

depthai_examples/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS
2-
project(depthai_examples VERSION 2.10.0 LANGUAGES CXX C)
2+
project(depthai_examples VERSION 2.10.1 LANGUAGES CXX C)
33

44
set(CMAKE_CXX_STANDARD 14)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)

depthai_examples/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package format="3">
33
<name>depthai_examples</name>
4-
<version>2.10.0</version>
4+
<version>2.10.1</version>
55
<description>The depthai_examples package</description>
66

77
<!-- One maintainer tag required, multiple allowed, one person per tag -->

depthai_filters/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.8)
2-
project(depthai_filters VERSION 2.10.0 LANGUAGES CXX C)
2+
project(depthai_filters VERSION 2.10.1 LANGUAGES CXX C)
33

44
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
55
add_compile_options(-Wall -Wextra -Wpedantic)

depthai_filters/include/depthai_filters/feature_tracker_overlay.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "cv_bridge/cv_bridge.h"
3+
#include "cv_bridge/cv_bridge.hpp"
44
#include "depthai_ros_msgs/msg/tracked_features.hpp"
55
#include "geometry_msgs/msg/point.hpp"
66
#include "message_filters/subscriber.h"

depthai_filters/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>depthai_filters</name>
5-
<version>2.10.0</version>
5+
<version>2.10.1</version>
66
<description>Depthai filters package</description>
77
<maintainer email="[email protected]">Adam Serafin</maintainer>
88
<license>MIT</license>

depthai_filters/src/feature_tracker_overlay.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "depthai_filters/feature_tracker_overlay.hpp"
22

3-
#include "cv_bridge/cv_bridge.h"
3+
#include "cv_bridge/cv_bridge.hpp"
44
#include "depthai_filters/utils.hpp"
55

66
namespace depthai_filters {

depthai_filters/src/features_3d.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "depthai_filters/features_3d.hpp"
22

3-
#include "cv_bridge/cv_bridge.h"
3+
#include "cv_bridge/cv_bridge.hpp"
44
#include "depthai_filters/utils.hpp"
55
#include "geometry_msgs/msg/point32.hpp"
66
#include "opencv2/opencv.hpp"

depthai_filters/src/spatial_bb.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "depthai_filters/spatial_bb.hpp"
22

3-
#include "cv_bridge/cv_bridge.h"
3+
#include "cv_bridge/cv_bridge.hpp"
44
#include "depthai_filters/utils.hpp"
55
#include "geometry_msgs/msg/point32.hpp"
66
#include "opencv2/opencv.hpp"

depthai_ros_driver/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.22)
2-
project(depthai_ros_driver VERSION 2.10.0)
2+
project(depthai_ros_driver VERSION 2.10.1)
33
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
44
set(CMAKE_BUILD_SHARED_LIBS ON)
55
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

depthai_ros_driver/config/sr_poe_rgbd.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@
66
i_enable_ir: false
77
i_nn_type: none
88
i_pipeline_type: rgbtof
9+
pipeline_gen:
10+
i_enable_sync: true
911
right:
1012
i_low_bandwidth: true
13+
i_synced: true
14+
tof:
15+
i_synced: true

depthai_ros_driver/include/depthai_ros_driver/dai_nodes/nn/segmentation.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <string>
55
#include <vector>
66

7-
#include "cv_bridge/cv_bridge.h"
7+
#include "cv_bridge/cv_bridge.hpp"
88
#include "depthai-shared/common/CameraBoardSocket.hpp"
99
#include "depthai_ros_driver/dai_nodes/base_node.hpp"
1010
#include "image_transport/camera_publisher.hpp"

depthai_ros_driver/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>depthai_ros_driver</name>
5-
<version>2.10.0</version>
5+
<version>2.10.1</version>
66
<description>Depthai ROS Monolithic node.</description>
77
<maintainer email="[email protected]">Adam Serafin</maintainer>
88

depthai_ros_driver/src/camera.cpp

+15-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Camera::Camera(const rclcpp::NodeOptions& options) : rclcpp::Node("camera", opti
1515
startTimer = this->create_wall_timer(std::chrono::seconds(1), [this]() {
1616
ph = std::make_unique<param_handlers::CameraParamHandler>(shared_from_this(), "camera");
1717
ph->declareParams();
18-
onConfigure();
18+
start();
1919
startTimer->cancel();
2020
});
2121
rclcpp::on_shutdown([this]() { stop(); });
@@ -76,11 +76,20 @@ void Camera::diagCB(const diagnostic_msgs::msg::DiagnosticArray::SharedPtr msg)
7676
}
7777

7878
void Camera::start() {
79-
RCLCPP_INFO(get_logger(), "Starting camera.");
80-
if(!camRunning) {
81-
onConfigure();
82-
} else {
83-
RCLCPP_INFO(get_logger(), "Camera already running!.");
79+
bool success = false;
80+
while(!success) {
81+
try {
82+
RCLCPP_INFO(this->get_logger(), "Starting camera.");
83+
if(!camRunning) {
84+
onConfigure();
85+
} else {
86+
RCLCPP_INFO(this->get_logger(), "Camera already running!.");
87+
}
88+
success = true;
89+
} catch(const std::exception& e) {
90+
RCLCPP_ERROR(this->get_logger(), "Exception occurred: %s. Retry", e.what());
91+
camRunning = false;
92+
}
8493
}
8594
}
8695

depthai_ros_driver/src/dai_nodes/sensors/img_pub.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ void ImagePublisher::publish(std::shared_ptr<Image> img) {
185185
} else {
186186
ffmpegPub->publish(std::move(img->ffmpegPacket));
187187
}
188+
infoPub->publish(std::move(img->info));
188189
} else {
189190
if(ipcEnabled && (!pubConfig.lazyPub || detectSubscription(imgPub, infoPub))) {
190191
imgPub->publish(std::move(img->image));

depthai_ros_driver/src/param_handlers/tof_param_handler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ToFParamHandler::ToFParamHandler(std::shared_ptr<rclcpp::Node> node, const std::
1919
ToFParamHandler::~ToFParamHandler() = default;
2020
void ToFParamHandler::declareParams(std::shared_ptr<dai::node::Camera> cam, std::shared_ptr<dai::node::ToF> tof) {
2121
declareAndLogParam<bool>("i_publish_topic", true);
22-
declareAndLogParam<bool>("i_synced", true);
22+
declareAndLogParam<bool>("i_synced", false);
2323
declareAndLogParam<bool>("i_low_bandwidth", false);
2424
declareAndLogParam<int>("i_low_bandwidth_profile", 4);
2525
declareAndLogParam<int>("i_low_bandwidth_bitrate", 0);

depthai_ros_msgs/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS
22

3-
project(depthai_ros_msgs VERSION 2.10.0)
3+
project(depthai_ros_msgs VERSION 2.10.1)
44

55
if(POLICY CMP0057)
66
cmake_policy(SET CMP0057 NEW)

depthai_ros_msgs/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package format="3">
33
<name>depthai_ros_msgs</name>
4-
<version>2.10.0</version>
4+
<version>2.10.1</version>
55
<description>Package to keep interface independent of the driver</description>
66

77
<maintainer email="[email protected]">Adam Serafin</maintainer>

0 commit comments

Comments
 (0)