/notebook/deprecated/ros/18-raspi4-uvc

Getting UVC working with Raspberry Pi


Steps

  1. install uvc stuff.

    ```bash sudo apt update sudo apt install -y libuvc-dev guvcview cheese v4l-utils

    sudo apt install -y uvccapture uvcdynctrl

    ```

  2. try guvcview or cheese to see if you can see video output(may need to install):

    ```bash

    cheese # only need to try one command

    guvcview ```

  3. (optional, seems already done, perhaps by previous step) add yourself to video group

    bash sudo usermod -a -G video $(whoami)

    1. Logout & login again , check if your vboxusers displays in this command

    bash groups

  4. (optional, seems already done, perhaps by previous step) copy rules from idealab_ros_tools to rules folder (according to this ref)

cd ~/code/code_idealab_ros/src
sudo cp 99-uvc-c930.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger
sudo reboot
  1. get workspace prepared with dependencies:

    ```bash cd ~

    git clone https://github.com/ros-drivers/libuvc_ros cd libuvc_ros cp -r libuvc_camera ~/code/code_idealab_ros/src cp -r libuvc_ros ~/code/code_idealab_ros/src

    cd ~

    git clone https://github.com/ros/nodelet_core cd nodelet_core cp -r nodelet ~/code/code_idealab_ros/src cp -r nodelet_core ~/code/code_idealab_ros/src

    git clone https://github.com/ros/bond_core cd bond_core cp -r * ~/code/code_idealab_ros/src

    cd ~

    cd code_idealab_ros/ catkin_make ```

  2. identify desired video device:

v4l2-ctl --list-devices
  1. start roscore on master uri

  2. run node

rosrun libuvc_camera camera_node

About

I am an engineer and educator, having spent ten years as a professor. My goal is to help you build your knowledge of design and technology, get your hardware working, and propel your startup or small business. Get in touch!