Skip to content

Commit 7589290

Browse files
authored
Humble 2.10.4 (#621)
1 parent 9132443 commit 7589290

File tree

20 files changed

+92
-20
lines changed

20 files changed

+92
-20
lines changed

depthai-ros/CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Changelog for package depthai-ros
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
6+
2.10.4 (2024-11-07)
7+
-------------------
8+
* Fix rectified topic names
9+
* Fix pointcloud launch
10+
* Add sensor parameters for max autoexposure, sharpness, luma and chroma denoise
11+
512
2.10.3 (2024-10-14)
613
-------------------
714
* Allow setting USB speed without specifying device information

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.3 LANGUAGES CXX C)
3+
project(depthai-ros VERSION 2.10.4 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.3</version>
4+
<version>2.10.4</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.3 LANGUAGES CXX C)
4+
project(depthai_bridge VERSION 2.10.4 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.3</version>
4+
<version>2.10.4</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.3)
2+
project(depthai_descriptions VERSION 2.10.4)
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.3</version>
4+
<version>2.10.4</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.3 LANGUAGES CXX C)
2+
project(depthai_examples VERSION 2.10.4 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.3</version>
4+
<version>2.10.4</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.3 LANGUAGES CXX C)
2+
project(depthai_filters VERSION 2.10.4 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/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.3</version>
5+
<version>2.10.4</version>
66
<description>Depthai filters package</description>
77
<maintainer email="[email protected]">Adam Serafin</maintainer>
88
<license>MIT</license>

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.3)
2+
project(depthai_ros_driver VERSION 2.10.4)
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/pcl.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
i_align_depth: true
77
i_board_socket_id: 2
88
i_subpixel: true
9-
i_publish_right_rect: true
9+
i_right_rect_publish_topic: true
10+
i_right_rect_synced: false

depthai_ros_driver/launch/camera.launch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def launch_setup(context, *args, **kwargs):
143143
},
144144
}
145145
parameter_overrides["depth"] = {
146-
"i_publish_left_rect": True,
147-
"i_publish_right_rect": True,
146+
"i_left_rect_publish_topic": True,
147+
"i_right_rect_publish_topic": True,
148148
}
149149

150150
tf_params = {}

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.3</version>
5+
<version>2.10.4</version>
66
<description>Depthai ROS Monolithic node.</description>
77
<maintainer email="[email protected]">Adam Serafin</maintainer>
88

depthai_ros_driver/src/dai_nodes/sensors/stereo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void Stereo::setupRectQueue(std::shared_ptr<dai::Device> device,
155155
pubConfig.width = ph->getOtherNodeParam<int>(sensorName, "i_width");
156156
pubConfig.height = ph->getOtherNodeParam<int>(sensorName, "i_height");
157157
pubConfig.topicName = "~/" + sensorName;
158-
pubConfig.topicSuffix = rsCompabilityMode() ? "/image_rect_raw" : "/image_raw";
158+
pubConfig.topicSuffix = rsCompabilityMode() ? "/image_rect_raw" : "/image_rect";
159159
pubConfig.maxQSize = ph->getOtherNodeParam<int>(sensorName, "i_max_q_size");
160160
pubConfig.socket = sensorInfo.socket;
161161
pubConfig.infoMgrSuffix = "rect";

depthai_ros_driver/src/param_handlers/sensor_param_handler.cpp

+64
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ void SensorParamHandler::declareParams(std::shared_ptr<dai::node::MonoCamera> mo
7979
}
8080
monoCam->setImageOrientation(
8181
utils::getValFromMap(declareAndLogParam<std::string>("i_sensor_img_orientation", "AUTO"), dai_nodes::sensor_helpers::cameraImageOrientationMap));
82+
int expLimit = declareAndLogParam<int>("r_auto_exposure_limit", 1000);
83+
if(declareAndLogParam<bool>("r_set_auto_exposure_limit", false)) {
84+
monoCam->initialControl.setAutoExposureLimit(expLimit);
85+
}
86+
int sharpness = declareAndLogParam<int>("r_sharpness", 1);
87+
if(declareAndLogParam("r_set_sharpness", false)) {
88+
monoCam->initialControl.setSharpness(sharpness);
89+
}
90+
int chromaDenoise = declareAndLogParam<int>("r_chroma_denoise", 1);
91+
if(declareAndLogParam("r_set_chroma_denoise", false)) {
92+
monoCam->initialControl.setChromaDenoise(chromaDenoise);
93+
}
94+
int lumaDenoise = declareAndLogParam<int>("r_luma_denoise", 1);
95+
if(declareAndLogParam("r_set_luma_denoise", false)) {
96+
monoCam->initialControl.setLumaDenoise(lumaDenoise);
97+
}
8298
}
8399
void SensorParamHandler::declareParams(std::shared_ptr<dai::node::ColorCamera> colorCam, dai_nodes::sensor_helpers::ImageSensor sensor, bool publish) {
84100
declareAndLogParam<bool>("i_publish_topic", publish);
@@ -178,6 +194,22 @@ void SensorParamHandler::declareParams(std::shared_ptr<dai::node::ColorCamera> c
178194
}
179195
colorCam->setImageOrientation(
180196
utils::getValFromMap(declareAndLogParam<std::string>("i_sensor_img_orientation", "AUTO"), dai_nodes::sensor_helpers::cameraImageOrientationMap));
197+
int expLimit = declareAndLogParam<int>("r_auto_exposure_limit", 1000);
198+
if(declareAndLogParam<bool>("r_set_auto_exposure_limit", false)) {
199+
colorCam->initialControl.setAutoExposureLimit(expLimit);
200+
}
201+
int sharpness = declareAndLogParam<int>("r_sharpness", 1);
202+
if(declareAndLogParam("r_set_sharpness", false)) {
203+
colorCam->initialControl.setSharpness(sharpness);
204+
}
205+
int chromaDenoise = declareAndLogParam<int>("r_chroma_denoise", 1);
206+
if(declareAndLogParam("r_set_chroma_denoise", false)) {
207+
colorCam->initialControl.setChromaDenoise(chromaDenoise);
208+
}
209+
int lumaDenoise = declareAndLogParam<int>("r_luma_denoise", 1);
210+
if(declareAndLogParam("r_set_luma_denoise", false)) {
211+
colorCam->initialControl.setLumaDenoise(lumaDenoise);
212+
}
181213
}
182214
dai::CameraControl SensorParamHandler::setRuntimeParams(const std::vector<rclcpp::Parameter>& params) {
183215
dai::CameraControl ctrl;
@@ -216,6 +248,38 @@ dai::CameraControl SensorParamHandler::setRuntimeParams(const std::vector<rclcpp
216248
if(getParam<bool>("r_set_man_whitebalance")) {
217249
ctrl.setManualWhiteBalance(p.get_value<int>());
218250
}
251+
} else if(p.get_name() == getFullParamName("r_set_auto_exposure_limit")) {
252+
if(p.get_value<bool>()) {
253+
ctrl.setAutoExposureLimit(getParam<int>("r_auto_exposure_limit"));
254+
}
255+
} else if(p.get_name() == getFullParamName("r_auto_exposure_limit")) {
256+
if(getParam<bool>("r_set_auto_exposure_limit")) {
257+
ctrl.setAutoExposureLimit(p.get_value<int>());
258+
}
259+
} else if(p.get_name() == getFullParamName("r_set_sharpness")) {
260+
if(p.get_value<bool>()) {
261+
ctrl.setSharpness(getParam<int>("r_sharpness"));
262+
}
263+
} else if(p.get_name() == getFullParamName("r_sharpness")) {
264+
if(getParam<bool>("r_set_sharpness")) {
265+
ctrl.setSharpness(p.get_value<int>());
266+
}
267+
} else if(p.get_name() == getFullParamName("r_set_chroma_denoise")) {
268+
if(p.get_value<bool>()) {
269+
ctrl.setChromaDenoise(getParam<int>("r_chroma_denoise"));
270+
}
271+
} else if(p.get_name() == getFullParamName("r_chroma_denoise")) {
272+
if(getParam<bool>("r_set_chroma_denoise")) {
273+
ctrl.setChromaDenoise(p.get_value<int>());
274+
}
275+
} else if(p.get_name() == getFullParamName("r_set_luma_denoise")) {
276+
if(p.get_value<bool>()) {
277+
ctrl.setLumaDenoise(getParam<int>("r_luma_denoise"));
278+
}
279+
} else if(p.get_name() == getFullParamName("r_luma_denoise")) {
280+
if(getParam<bool>("r_set_luma_denoise")) {
281+
ctrl.setLumaDenoise(p.get_value<int>());
282+
}
219283
}
220284
}
221285
return ctrl;

depthai_ros_driver/src/param_handlers/stereo_param_handler.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void StereoParamHandler::declareParams(std::shared_ptr<dai::node::StereoDepth> s
8282
declareAndLogParam<bool>("i_left_rect_add_exposure_offset", false);
8383
declareAndLogParam<int>("i_left_rect_exposure_offset", 0);
8484
declareAndLogParam<bool>("i_left_rect_enable_feature_tracker", false);
85-
declareAndLogParam<bool>("i_left_rect_synced", true);
85+
declareAndLogParam<bool>("i_left_rect_synced", false);
8686
declareAndLogParam<bool>("i_left_rect_publish_compressed", false);
8787

8888
declareAndLogParam<bool>("i_right_rect_publish_topic", false);
@@ -95,7 +95,7 @@ void StereoParamHandler::declareParams(std::shared_ptr<dai::node::StereoDepth> s
9595
declareAndLogParam<bool>("i_right_rect_enable_feature_tracker", false);
9696
declareAndLogParam<bool>("i_right_rect_add_exposure_offset", false);
9797
declareAndLogParam<int>("i_right_rect_exposure_offset", 0);
98-
declareAndLogParam<bool>("i_right_rect_synced", true);
98+
declareAndLogParam<bool>("i_right_rect_synced", false);
9999
declareAndLogParam<bool>("i_right_rect_publish_compressed", false);
100100

101101
declareAndLogParam<bool>("i_enable_spatial_nn", false);

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.3)
3+
project(depthai_ros_msgs VERSION 2.10.4)
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.3</version>
4+
<version>2.10.4</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)