watonomous.github.io

  1. Electrical Division
  2. Electrical Division Home
  3. Sensor Interfacing Group

[ Electrical Division : Camera Setup ]

Created by [ Rowan Dempster], last modified by [ Frank Yan] on Mar 30, 2020


Table of Contents

Document Abstract

Wiring

***ToDo (Rohit): Insert diagram detailing physical wiring with PoE boxes.***

Networking

Persistent IP Context

Persistent IP Configuration

Verifying Camera Connections and Persistent IPs

[Drivers

Launching the drivers

Debugging

Inspecting ROS Data

Inspecting Visual Data

Inspecting ROS Data (again, but visually!)


Old Documentation  

OLD DOCUMENTATION BELOW (old being earlier than 03/30/2020)

This page contains information about how to setup, debug and use cameras deployed on the vehicle. In year 3, we intend on using 3 BF (IMX249) cameras.

Wiring

TODO: Insert diagram detailing physical wiring with POE boxes.

Networking

Cameras have persistent IPs that can be manually configured through Flycap2 or Spinnaker GUIs. A persistent IP means that the camera's interface has the same IP address between power cycles. We do this so that our computer can immediately connect to the cameras when the system boots up. Otherwise, the default IP might be something non deterministic, depending on the configurations. See this link (Method 1, Steps 2-3) for instructions on how to set persistent IP. To verify that the IP is persisting, power cycle the camera, and inspect the registers with the GUI.

Currently our cameras have the following persistent IPs. The network masks should be /24.


Position Model Serial IP address Right BF 17453317 169.254.0.30 Left BF 17353304 169.254.0.31 Center BF 18542606 169.254.0.32 ———- ——- ———- ————–

Quick way to confirm if the Rugged is able to connect with the cameras is to run the following command on the terminal.

sudo arp-scan --interface=enp4s0f1 -l

[The terminal should then display the camera IP and MAC addresses.]{.inline-comment-marker data-ref=”b44ae450-eba0-4b3c-9bc0-54119cecc93b”}

[[{.confluence-embedded-image height=”150”}]{.confluence-embedded-file-wrapper .confluence-embedded-manual-size}]{.inline-comment-marker data-ref=”b44ae450-eba0-4b3c-9bc0-54119cecc93b”}

Drivers

To launch the drivers, do the following:

  1. Power up the Rugged, all sensors should automatically power up too. Wait for the system to finish booting up. The 10G switch takes a while to turn on so be patient.
  2. cd /home/autodrive/integration. The integration folder in the home directory is where we keep the Rugged's catkin workspace. If you don't know what a catkin workspace is, read some ROS tutorials!
  3. source ./devel/setup.bash. This should be done in ~/.bashrc. Again, if you don't know what this does, ROS tutorials.
  4. roslaunch pointgrey_camera_driver stereo3cameras.launch left_camera_serial:=17453304 right_camera_serial:=17453317 center_camera_serial:=18542606. Currently the centre camera has not been installed yet, so just omit centre camera's serial number for now. The arguments left_camera_serial[,]right_camera_serial[, and][values are parameter names that the launch file stereo.launch is expecting. It will use those serial numbers (which uniquely identify each camera) to launch the drivers and connect to cameras.]

What should happen:

  1. The camera driver nodes will launch, connect to the appropriate cameras, and start publishing ROS messages over a variety of ROS topics, some of which we have configured with our own names custom names (eg. left, right and center). Use rostopic list, and rostopic echo to inspect not very useful data.
  2. To visualize camera output, use either: 
    • Flycap2
    • rviz

To check via rviz, run rviz in a different terminal tab/window. Once rviz has launched, press the add button near the button of the left hand side window to select what rostopics you want rviz to display. The rostopics you are looking for are camera/right/image_color and camera/left/image_color. If you are not familiar with rviz, please read up on it and practice using it because it's a very powerful tool to oversee all of the sensor suite and the ROS aspects of the sensors.

Flycap2 is another tool that can be used to check if the cameras are working. If the cameras are connected and there are no issues, the serial IDs of the cameras should show up when launching Flycap2. Clicking on any of camera's serial ids and pressing "OK" at the bottom will load that camera's live feed.

You can also use the ros command, rosrun image_view image_view image:=/camera/right/image_color to check the cameras. A new window will pop up displaying what the right camera is seeing. Same idea for left and center camera.

\

Attachments:

rsz_arpscan.png (image/png)\

Document generated by Confluence on Nov 28, 2021 22:40

Atlassian