Skip to content

Commit

Permalink
Update setting usb speed - Noetic (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam authored Oct 15, 2024
1 parent d684a69 commit cee5bc8
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 16 deletions.
5 changes: 5 additions & 0 deletions depthai-ros/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Changelog for package depthai-ros
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.10.3 (2024-10-14)
-------------------
* Allow setting USB speed without specifying device information

2.10.2 (2024-09-26)
-------------------
* Fix Stereo K matrix publishing
Expand Down
2 changes: 1 addition & 1 deletion depthai-ros/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS

project(depthai-ros VERSION 2.10.2 LANGUAGES CXX C)
project(depthai-ros VERSION 2.10.3 LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 14)

Expand Down
2 changes: 1 addition & 1 deletion depthai-ros/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="3">
<name>depthai-ros</name>
<version>2.10.2</version>
<version>2.10.3</version>
<description>The depthai-ros package</description>

<maintainer email="adam.serafin@luxonis.com">Adam Serafin</maintainer>
Expand Down
2 changes: 1 addition & 1 deletion depthai_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required (VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS
set (CMAKE_POSITION_INDEPENDENT_CODE ON)

project(depthai_bridge VERSION 2.10.2 LANGUAGES CXX C)
project(depthai_bridge VERSION 2.10.3 LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
2 changes: 1 addition & 1 deletion depthai_bridge/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="3">
<name>depthai_bridge</name>
<version>2.10.2</version>
<version>2.10.3</version>
<description>The depthai_bridge package</description>

<maintainer email="adam.serafin@luxonis.com">Adam Serafin</maintainer>
Expand Down
2 changes: 1 addition & 1 deletion depthai_descriptions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10.2)
project(depthai_descriptions VERSION 2.10.2 LANGUAGES CXX C)
project(depthai_descriptions VERSION 2.10.3 LANGUAGES CXX C)


find_package(catkin REQUIRED
Expand Down
2 changes: 1 addition & 1 deletion depthai_descriptions/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="2">
<name>depthai_descriptions</name>
<version>2.10.2</version>
<version>2.10.3</version>
<description>The depthai_descriptions package</description>

<maintainer email="adam.serafin@luxonis.com">Adam Serafin</maintainer>
Expand Down
2 changes: 1 addition & 1 deletion depthai_examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS
project(depthai_examples VERSION 2.10.2 LANGUAGES CXX C)
project(depthai_examples VERSION 2.10.3 LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
2 changes: 1 addition & 1 deletion depthai_examples/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="3">
<name>depthai_examples</name>
<version>2.10.2</version>
<version>2.10.3</version>
<description>The depthai_examples package</description>

<maintainer email="adam.serafin@luxonis.com">Adam Serafin</maintainer>
Expand Down
2 changes: 1 addition & 1 deletion depthai_filters/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10.2)
project(depthai_filters VERSION 2.10.2 LANGUAGES CXX C)
project(depthai_filters VERSION 2.10.3 LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
2 changes: 1 addition & 1 deletion depthai_filters/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="2">
<name>depthai_filters</name>
<version>2.10.2</version>
<version>2.10.3</version>
<description>The depthai_filters package</description>

<maintainer email="adam.serafin@luxonis.com">Adam Serafin</maintainer>
Expand Down
2 changes: 1 addition & 1 deletion depthai_ros_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16.3)
project(depthai_ros_driver VERSION 2.10.2)
project(depthai_ros_driver VERSION 2.10.3)
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()
Expand Down
2 changes: 1 addition & 1 deletion depthai_ros_driver/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>depthai_ros_driver</name>
<version>2.10.2</version>
<version>2.10.3</version>
<description>Depthai ROS Monolithic node.</description>
<maintainer email="adam.serafin@luxonis.com">Adam Serafin</maintainer>
<author>Adam Serafin</author>
Expand Down
4 changes: 3 additions & 1 deletion depthai_ros_driver/src/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ void Camera::startDevice() {
auto usb_id = ph->getParam<std::string>("i_usb_port_id");
if(mxid.empty() && ip.empty() && usb_id.empty()) {
ROS_INFO("No ip/mxid/usb_id specified, connecting to the next available device.");
device = std::make_shared<dai::Device>();
auto info = dai::Device::getAnyAvailableDevice();
auto speed = ph->getUSBSpeed();
device = std::make_shared<dai::Device>(std::get<1>(info), speed);
camRunning = true;
} else {
std::vector<dai::DeviceInfo> availableDevices = dai::Device::getAllAvailableDevices();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void CameraParamHandler::declareParams() {
declareAndLogParam<std::string>("i_pipeline_type", "RGBD");
declareAndLogParam<std::string>("i_nn_type", "spatial");
declareAndLogParam<bool>("i_enable_ir", true);
declareAndLogParam<std::string>("i_usb_speed", "SUPER_PLUS");
declareAndLogParam<std::string>("i_usb_speed", "SUPER");
declareAndLogParam<std::string>("i_mx_id", "");
declareAndLogParam<std::string>("i_ip", "");
declareAndLogParam<std::string>("i_usb_port_id", "");
Expand Down
2 changes: 1 addition & 1 deletion depthai_ros_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.10.2) # CMake version in Ubuntu 18.04 LTS

project (depthai_ros_msgs VERSION 2.10.2)
project (depthai_ros_msgs VERSION 2.10.3)

if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
Expand Down
2 changes: 1 addition & 1 deletion depthai_ros_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="3">
<name>depthai_ros_msgs</name>
<version>2.10.2</version>
<version>2.10.3</version>
<description>Package to keep interface independent of the driver</description>

<maintainer email="adam.serafin@luxonis.com">Adam Serafin</maintainer>
Expand Down

0 comments on commit cee5bc8

Please sign in to comment.