Skip to content
Nick Walker edited this page Oct 11, 2017 · 1 revision

Code Repositories

Axis Camera Drivers

https://github.com/clearpathrobotics/axis_camera

Camera Info Manager

https://github.com/jack-oquin/camera_info_manager_py/tree/fuerte

NOTE: The camera info manager drivers must be pulled from the fuerte branch at this time

Setup the camera

  • Plug the axis camera in. If the ethernet port is not POE (power over ethernet), you must provide additional power through the provided cable
  • Download avahi to find the camera on the network

sudo apt-get install avahi-discover

  • Run avahi

avahi-discover

  • Search for an axis camera on the network, and select it
  • From the address line at the bottom, copy the address (not the IP) and navigate to the page in a browser. From here you may use the settings to edit user accounts, which will be used later for connection.

admin username: root password: BWI account password secondary username: fri password: fri account password

  • If above username and passwords do not work, reset the camera to create these two accounts.
    • To reset, completely power down the camera, and hold the button on the back down while plugging back in. Continue to hold until the front LEDs blink amber, then release.
    • On first power up, a root password must be supplied. Enter in the BWI password.
    • Once logged in, navigate to settings, then system settings.
    • Create a new account, with admin privileges. username: fri: fri password

Running the camera node

  • Launch roscore

roscore

  • set the current terminal to a new namespace (allows for multiple cameras to be active at the same time; each running camera must have a unique namespace name)

export ROS_NAMESPACE=

  • Launch the axis_camera node

rosrun axis_camera axis.py _hostname:= _username:= _password:=

NOTE: for multiple cameras, each terminal window must contain a different namespace, and all unique windows corresponding to a camera run both commands.

Calibrating the camera

If a camera needs to be calibrated, run the following commands. These must be run for each individual camera to be calibrated.

  • In another terminal, republish the compressed images in raw format:

ROS_NAMESPACE= rosrun image_transport republish compressed in:=image_raw raw out:=image_raw

  • in another terminal, run camera calibration

rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=//image_raw camera:=/

Viewing the camera

rosrun image_view image_view image:=//image_raw _image_transport:=compressed

Clone this wiki locally