Open tonynajjar opened 2 weeks ago
Hi @tonynajjar What do you believe the advantages would be of finding a D457 by its physical ID compared to using the serial number, please?
Same advantage as with specifying usb port - when you have a fleet of robot and the cameras are always hooked to the same ports (or the udev rules remaps symlinks to knowns ports), then we don't have to configure the serial numbers for each robot if we use the physical ID
Thanks very much. I will highlight your request to the RealSense ROS team.
Hi @tonynajjar. We want to understand better what specific feature can help you. For now, it is looking like that:
rs-enumerate-devices
Name : Intel RealSense D455
Physical Port : /sys/devices/platform/bus@0/3610000.usb/usb2/2-3/2-3.2/2-3.2.1/2-3.2.1:1.0/video4linux/video6
Name : Intel RealSense D457
Physical Port : /dev/video-rs-depth-0
The actual device path is:
ls -l /sys/class/video4linux/
(GMSL) video0 -> /sys/devices/platform/tegra-capture-vi/video4linux/video0
(USB) video6 -> /sys/devices/platform/bus@0/3610000.usb/usb2/2-3/2-3.2/2-3.2.1/2-3.2.1:1.0/video4linux/video6
Would you like to have pointers for each camera, USB and GMSL
/dev/video-rs-depth-0
/dev/video-rs-depth-1
/dev/video-rs-depth-2
/dev/video-rs-depth-3
etc..
Or you ask to have long links like for USB:
/sys/devices/platform/bus@0/3610000.usb/usb2/2-3/2-3.2/2-3.2.1/2-3.2.1:1.0/video4linux/video6
And for GMSL:
/sys/devices/platform/tegra-capture-vi/video4linux/video0
In GMSL case, you cannot tell which video nodes corresponds to what cameras.
To collect sensors to their cameras we scan media link and extrapolate parentship.
This is different for USB devices - you can know from device path.
My which would be to specify /dev/video-rs-depth-0
but I'm happy with whatever string I don't need to configure for each machine.
Currently we can connect to a device via serial number, device type or usb port. I have 2 D457 GMSL/FAKRA that need to be recognized so I can only use the serial number option. I'd like to ask for the feature to lookup via the physical id. Thanks