mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
Add the enable switch function for network device enumeration.
This commit is contained in:
@@ -88,6 +88,8 @@ void OBCameraNodeDriver::init() {
|
||||
serial_number_ = declare_parameter<std::string>("serial_number", "");
|
||||
device_num_ = static_cast<int>(declare_parameter<int>("device_num", 1));
|
||||
usb_port_ = declare_parameter<std::string>("usb_port", "");
|
||||
auto enumerate_net_device_ = declare_parameter<bool>("enumerate_net_device", "false");
|
||||
ctx_->enableNetDeviceEnumeration(enumerate_net_device_);
|
||||
ctx_->setDeviceChangedCallback([this](const std::shared_ptr<ob::DeviceList> &removed_list,
|
||||
const std::shared_ptr<ob::DeviceList> &added_list) {
|
||||
(void)added_list;
|
||||
|
||||
Reference in New Issue
Block a user