Assigning a USB port to an identifier. [closed]

asked 2019-03-21 05:31:37 -0500

Alsing gravatar image

I am using two identical cameras, for example one for the front and the other for the back of a robot. Using udevadm info --attribute-walk, I am unable to find any differences between the two. The only other option I feel I have left would be to assign udev rules based on the usb ports.

But I'm unfamiliar with how I'd start writing /sys/bus/usb/ into a format that's acceptable by the udev rules. Would be open to other suggestions. Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by gvdhoorn
close date 2019-03-21 05:36:48.066026

Comments

I can understand why you'd post this here (you're going to use these cameras with ROS nodes), but this is not a ROS question. As we have over 45000+ questions here on ROS Answers, we must stay on-topic to keep the site usable.

As such, I'd suggest to ask your question on either something like Ask Ubuntu (or a support forum for your particular OS) or on another more suitable forum.

If you do post this somewhere else, it would be very much appreciated if you could post a link to it here in a comment, so we can keep things connected.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-21 05:36:37 -0500 )edit

Roger that! Just thought it might be a problem more commonly faced here than elsewhere.

Alsing gravatar image Alsing  ( 2019-03-21 22:37:17 -0500 )edit

Well .. it's true that people use USB cameras with ROS. But the fact that you have two that report as identical ones is not very ROS specific.

Please do post a link here to wherever you end up posting this question.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-22 05:30:50 -0500 )edit