Created by [ Rowan Dempster], last modified by [ Frank Yan] on Mar 30, 2020
Table of Contents
***ToDo (Rohit): Insert diagram detailing physical wiring with PoE boxes.***
Currently, our cameras have the following IPs (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 ———- ——- ———- ————–
To confirm that the rugged can connect to the cameras, run the following command:
$ sudo arp-scan --interface=enp4s0f1 -l
The expected output should be:
[{.confluence-embedded-image
height=”150”}]{.confluence-embedded-file-wrapper
.confluence-embedded-manual-size}
$ cd /home/autodrive/integration
This takes us to the integration folder. Here we can find the Rugged's catkin workspace (If you don't know what a catkin workspace is, read some ROS tutorials!)
$ source ./devel/setup.bash
This command should automatically execute as it is included in ~/.bashrc
(If you don't know what this command does, once again: read some ROS tutorials!)
$ roslaunch pointgrey_camera_driver stereo3cameras.launch left_camera_serial:=17453304 right_camera_serial:=17453317 center_camera_serial:=18542606
***[ToDo (Kushant): Ask Kushant if this can now be updated as
the old documentation specifies that the centre camera has not
been installed yet]{.inline-comment-marker
data-ref=”454ebac3-9d0a-4429-8dc0-67c8d808d5ab”}***
The arguments left_camera_serial,
right_camera_serial and center_camera_serial 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 to connect to
the cameras.
The cameras will start publishing ROS messages over a variety of ROS topics, some of which have been configured with our own custom names (eg. left, right and center). You can inspect the data (it may not be super useful, but it can tell you if the ROS messages are being published, helping with debugging), by running:
$ rostopic list # Lists the topics which are being published to
$ rostopic echo <someRosTopic> # Outputs the data being published to <someRosTopic>
For example, if you wanted to see the ROS messages being published by the right camera, execute the following command:
$ rostopic echo /camera/right/image_color
If this outputs a bunch of numbers, the camera is likely publishing good data. If this outputs nothing, your camera is not publishing data and you have a problem somewhere.
Run rviz by using the very simple command:
$ rviz
Relevant rostopics that will visualize data are:
/camera/left/image_color
/camera/centre/image_color
/camera/right/image_color
If you are not familiar with rviz, it would be worth your time to read up on it and practice using it, it is a very handy debugging tool for all of the sensor suite and the ROS aspects of the sensors.
Another option is to use the ROS command:
$ rosrun image_view image_view image:=/camera/right/image_color
This will cause a window to pop up, displaying what the right camera is seeing. You can do the same thing for the left and centre cameras by changing the second-level topic of the ROS topic provided to image:=
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.
TODO: Insert diagram detailing physical wiring with POE boxes.
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”}
To launch the drivers, do the following:
What should happen:
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.
\
rsz_arpscan.png (image/png)\
Document generated by Confluence on Nov 28, 2021 22:40