File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ int main() {
29
29
std::string serial = device_info->serialNumber ();
30
30
std::string uid = device_info->uid ();
31
31
auto usb_port = orbbec_camera::parseUsbPort (uid);
32
+ std::stringstream pid_hex;
33
+ pid_hex<< std::hex << std::setw (4 ) << std::setfill (' 0' ) << device_info->getPid ();
32
34
RCLCPP_INFO_STREAM (rclcpp::get_logger (" list_device_node" ),
33
35
" - Name: " << device_info->getName () << " , PID: 0x"
34
- << device_info-> getPid () << " , SN/ID: " << serial
36
+ << pid_hex. str () << " , SN/ID: " << serial
35
37
<< " , Connection: " << device_info->getConnectionType ());
36
38
RCLCPP_INFO_STREAM (rclcpp::get_logger (" list_device_node" ), " serial: " << serial);
37
39
RCLCPP_INFO_STREAM (rclcpp::get_logger (" list_device_node" ), " usb port: " << usb_port);
You can’t perform that action at this time.
0 commit comments