Skip to content

Commit

Permalink
ignore device_num, connect to default sensor if no serial or usb is d…
Browse files Browse the repository at this point in the history
…efined

Related to:
- orbbec#42
  • Loading branch information
bmegli committed Jul 8, 2024
1 parent 934f39d commit 07daf95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ob_camera_node_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void OBCameraNodeDriver::init() {

std::shared_ptr<ob::Device> OBCameraNodeDriver::selectDevice(
const std::shared_ptr<ob::DeviceList>& list) {
if (device_num_ == 1) {
if (serial_number_.empty() && usb_port_.empty()) {
ROS_INFO_STREAM("Connecting to the default device");
return list->getDevice(0);
}
Expand Down

0 comments on commit 07daf95

Please sign in to comment.