Giter Club home page Giter Club logo

bluefox2's Introduction

Build Status

Bluefox2

This driver depends on package camera_base

https://github.com/KumarRobotics/bluefox2

image

mvBluefox MLC

Supported hardware

This driver should work with any Matrix-Vision Bluefox usb2.0 MLC cameras (bluefox2).

API Stability

The ROS API of this driver should be considered unstable.

ROS API

single_node

single_node is a node for a single bluefox2 camera.

Published topics

~image_raw (sensor_msgs/Image)

The unprocessed image data.

~camera_info (sensor_msgs/CameraInfo)

Contains the camera calibration (if calibrated) and extra data about the camera configuration.

Parameters

Common interface

~device (string)

This will be the same as serial.

~rate (double)

This will be the same as fps.

Normal parameters

~serial (string, default: <device>)

bluefox2 camera serial number.

~camera_name (string, default: mv_<serial>)

Camera name used by camera_info_manager for loading calibration file, should be the same as the name in mv_<serial>.yaml.

~camera (string, default: <camera_name>)

Name of the node.

~frame_id (string, default: <camera>)

frame id of the published topics.

~calib_url (string)

camera calibration URL.

Dynamically Reconfigurable Parameters

See the dynamic_reconfigure package for details on dynamically reconfigurable parameters.

white balance parameter:

  • -1 - wbp_unavailable
  • 0~5 - wbp_tungsten and friends
  • 6 ~ wbp_user1
  • 7 - wbp_calibrate, calibrate next frame for white balance

For calibrating white balance, first point the camera at a white board, then select wbp_calibrate, the mvIMPACT driver will calibrate white balance automatically and save it to wbp_user1.

~dcfm (int, default: 1)

dark current filter mode:

  • 0 - dcfm_off
  • 1 - dcfm_on
  • 2 - dcfm_calibrate
  • 3 - correction_image

If you are using a color camera, you would want to perform a 'dark current filter calibration` to enhance the quality of acquisition. This is done with the following steps:

  1. Start the bluefox node, let it run for about 5-6 minutes until the temperature of the sensor reaches a stable value. Then you would see something like this.
    image
  2. Put the lense cap on so that the image looks like this. You can see that there are some pixels that are not completely dark, this is due to the effect of dark current.
    image
  3. Select dcfm_calibrate from the reconfigure server. The driver will do the dark current calibration and then switch the filter on. You can verify the result by selecting correction_image and you will see this.
    image
  4. Then you can switch back to dcfm_on and your image would look much better then before.
    image
  5. This calibration process cannot be done automatically since it requires the sensor be running for a few minutes and manually putting the lense cap on.

Read this article as well.

~hdr (bool, default: false)

Only 200wG camera supports this mode, set hdr to true for other cameras will have no effect.

This mode is required when high fps desired which allows 200wG to work at 90 fps and 200bG at 24 fps (with ctm = 1). Using this will result in imprecise time stamp of captured image. Use with caution.

stereo_node

stereo_node is a node for 2 bluefox2 cameras in stereo configuration.

Published topics

~left/image_raw (sensor_msgs/Image)

~right/image_raw (sensor_msgs/Image)

The unprocessed image data.

~/left/camera_info (sensor_msgs/CameraInfo)

~/right/camera_info (sensor_msgs/CameraInfo)

Contains the camera calibration (if calibrated) and extra data about the camera configuration.

Common interface

~rate (double)

This will be the same as fps.

Normal parameters

~left (string, default: <left_serial>)

~right (string, default: <right_serial>)

bluefox2 camera serial number for the left and right camera.

~left_camera_name (string, default: mv_<left_serial>)

~right_camera_name (string, default: mv_<right_serial>)

Camera name used by camera_info_manager for load calibration file, should be the same as the name in calib_<serial>.yml.

~left_calib_url (string, default: package://bluefox2/calib/calib_<left_serial>.yml)

~right_calib_url (string, default: package://bluefox2/calib/calib_<right_serial>.yml)

camera calibration URL for the left and right camera.

All the rest parameters are the same with single_node, changing them will change the corresponding settings in both cameras.

Hardware sync

Notice that if you are using two 200w cameras, there's no need to use hardware synchronization because software synchronization is supported. The stereo_node will send two request one after another and the delay could be ignored.

Using 2 mvBlueFOX-MLC cameras in Master-Slave mode

Single-board version (mvBlueFOX-MLC2xx)

Run:

./install/install.sh

This will install mvIMPACT_Acquire SDK to /opt.

wxPropView

If you install the full matrix vision driver, you will have wxPropView installed to your system. It's an GUI application that let you inspect all properties of the camera.

FAQs

  1. I have the driver locally in my ros package, but every time I plug in a camera, I need to change the permission.

    • Simple fix:

      sudo chmod 777 /dev/bus/usb/xxx/xxx

    /dev/bus/usb/xxx/xxx can be easily identified with the error information ros provids.

    • Permanent fix: Adding a rule to /etc/udev/rules.d by the following command

      sudo cp -f path_to_driver/Scripts/51-mvbf.rules /etc/udev/rules.d/
      sudo service udev reload
  2. Camera acquisition failure after being unplugged and plugged back in If you are using linux kernel 3.13.0, then it's likely that you will encounter this problem. The solution is to install the latest kernel, eg. > 3.13

bluefox2's People

Contributors

bgromov avatar gareth-cross avatar kartikmohta avatar ke-sun avatar mwatterson avatar versatran01 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.