Coder Social home page Coder Social logo

robotology / yarp-device-pylon Goto Github PK

View Code? Open in Web Editor NEW
2.0 12.0 0.0 1.57 MB

Contains a YARP device driver supporting the Basler cameras

License: BSD 3-Clause "New" or "Revised" License

Shell 0.08% CMake 15.82% Makefile 1.35% C++ 82.74%
cameras-board yarp-device basler-camera pylon

yarp-device-pylon's Introduction

YARP logo yarp-device-pylon

This is the pylon device for YARP. It supports the Basler cameras.

The Basler™ cameras currently compatible with YARP are:

1. License


License

This software may be modified and distributed under the terms of the BSD-3-Clause license. See the accompanying LICENSE file for details.

The pylonCamera device uses the pylon sdk, released under the pylon license. See the relative documentation for the terms of the license.

2. How to use Basler pylon cameras as a YARP device

2.1. Dependencies

Before proceeding further, please install the following dependencies:

2.2. Build and install yarp-device-pylon

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=<installation_path> ..
make
make install

In order to make the device detectable, add <installation_path>/share/yarp to the YARP_DATA_DIRS environment variable of the system.

Alternatively, if YARP has been installed using the robotology-superbuild, it is possible to use <directory-where-you-downloaded-robotology-superbuild>/build/install as the <installation_path>.

2.3. How to run pylonCamera driver

From command line:

yarpdev --device frameGrabber_nws_yarp --subdevice pylonCamera --name /right_cam --serial_number 1234567 --period 0.033 --width 640 --height 480 --rotation 90.0

or

yarpdev --from PylonConf.ini

Where PylonConf.ini:

device frameGrabber_nws_yarp
subdevice pylonCamera
name /right_cam
serial_number 1234567
period 0.033
width 640
height 480
rotation 90.0

This is instead the minimum number of parameters for running the device, the default nws is frameGrabber_nws_yarp:

yarpdev --device pylonCamera --serial_number 1234567

3. Device documentation

This device driver exposes the yarp::dev::IFrameGrabberImage and yarp::dev::IFrameGrabberControls interfaces to read the images and operate on the available settings. See the documentation for more details about each interface.

YARP device name YARP default nws
pylonCamera frameGrabber_nws_yarp

The parameters accepted by this device are:

Parameter name SubParameter Type Units Default Value Required Description Notes
serial_number - int - - Yes Serial number of the camera to be opened
period - double s 0.0333 No Refresh period of acquistion from the camera in s The cameras has a value cap for the acquisition framerate, check the documentation
rotation - double degrees 0.0 No Rotation applied from the center of the image Depending the size requested some rotations are not allowed. The rotation worse the performance of the device. Allowed values: 0.0, 90.0, -90.0, 180.0.
width - uint pixel 640 No Width of the images requested to the camera The cameras has a value cap for the width of the image that can provide, check the documentation. Zero or negative value not accepted
height - uint pixel 480 No Height of the images requested to the camera The cameras has a value cap for the width of the image that can provide, check the documentation. Zero or negative value not accepted
rotation_with_crop - bool - false No The rotation, if the param is true, is obtained swapping x with y The image will have a resolution swapper respect to what is requested

Suggested resolutions

resolution carrier fps
640x480 mjpeg 30
1024x768 mjpeg 30
1920x1080 mjpeg 30 (Xavier NX) - 20 (Nano)

4. Informations for developers

This page contains useful informations for developers.
Board install informations this page contains the procedure for install the Xavier board and Quark carrier.

Maintainers

This repository is maintained by:

@Nicogene @triccyx

yarp-device-pylon's People

Contributors

mfussi66 avatar nicogene avatar pattacini avatar randaz81 avatar triccyx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.