roslaunch ros_gui_bridge websocket.launch
- Find vendor id and product id using
udevadm info --name=/dev/video1 --attribute-walk
For Thinkpad X1 Extreme Gen1, for cameras are listed usingls /dev/video*
. They are "video[0:4]" where "video0" and "video1" are dedicated to integrated video camera and "video2" and "video3" are dedicated to integrated IR camera. "video1" is the one you want to use and "video0" provides metadata about the video data (source) - Use
v4l2-ctl --list-formats-ext -d /dev/video0
to check the metadata including width, length, frame rate, and pixel format. - By default, $USER has to privilege to access the integrated camera. So adding privilege is needed (source) by
sudo chmod a+w /dev/bus/usb/001/003
.
roslaunch ros_gui_bridge camera.launch
- run server:
rosrun web_video_server web_video_server