0
$\begingroup$

Rosanswers logo

Hi,

I'm currently using Kinect_aux for multiple kinects. I adjust the device_index param each time I want to switch to another kinect. The point is when I replace the USB connectors or restart the OS the index arrangement changes randomly. So I need to choose a kinect based on its serial no. or any other device specific id.


Originally posted by Amin on ROS Answers with karma: 93 on 2012-05-09

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

boost::shared_ptr<FreenectDevice> device_;

then

std::string serial_number = device_->getSerialNumber();

take a look at how freenect_stack has implemented this: https://github.com/piyushk/freenect_stack/blob/master/freenect_camera/src/nodelets/driver.cpp


Originally posted by wchar with karma: 61 on 2014-12-24

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.