mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
update OrbbecSDK version to 2.8.3
This commit is contained in:
@@ -1394,6 +1394,22 @@ public:
|
||||
return ipSrcType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the user-defined name of the device at the specified index.
|
||||
*
|
||||
* @attention Only valid for Ethernet devices, otherwise returns "unknown".
|
||||
*
|
||||
* @param[in] index The index of the device.
|
||||
*
|
||||
* @return const char* The user-defined name string.
|
||||
*/
|
||||
const char *getUserName(uint32_t index) const {
|
||||
ob_error *error = nullptr;
|
||||
auto userName = ob_device_list_get_device_user_name(impl_, index, &error);
|
||||
Error::handle(&error);
|
||||
return userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the device object at the specified index
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user