Public Member Functions | Private Attributes
Format7 Class Reference

#include <format7.h>

List of all members.

Public Member Functions

bool active (void)
bool checkCameraInfo (const sensor_msgs::CameraInfo &cinfo)
 Format7 ()
void setOperationalParameters (sensor_msgs::CameraInfo &cinfo)
bool start (dc1394camera_t *camera, dc1394video_mode_t mode, Config &newconfig)
void stop (void)
void unpackData (sensor_msgs::Image &image, uint8_t *capture_buffer)
 ~Format7 ()

Private Attributes

bool active_
dc1394color_filter_t BayerPattern_
uint32_t binning_x_
uint32_t binning_y_
dc1394color_coding_t coding_
uint32_t maxHeight_
uint32_t maxWidth_
sensor_msgs::RegionOfInterest roi_

Detailed Description

Definition at line 63 of file format7.h.


Constructor & Destructor Documentation

Format7::Format7 ( ) [inline]

Definition at line 67 of file format7.h.

Format7::~Format7 ( ) [inline]

Definition at line 75 of file format7.h.


Member Function Documentation

bool Format7::active ( void  ) [inline]

Format7 mode currently started

Definition at line 78 of file format7.h.

bool Format7::checkCameraInfo ( const sensor_msgs::CameraInfo &  cinfo)

check whether CameraInfo matches current Format7 image size

Precondition:
active_ is true.
Parameters:
cinfoCameraInfo message to check
Returns:
true if camera dimensions match calibration
Postcondition:
fields filled in (if successful): roi (region of interest) binning_x, binning_y

Definition at line 406 of file format7stereo.cpp.

void Format7::setOperationalParameters ( sensor_msgs::CameraInfo &  cinfo)

set operational data fields in CameraInfo message

Precondition:
active_ is true.
Parameters:
cinfoCameraInfo message to update
Returns:
true if camera dimensions match calibration
Postcondition:
fields filled in (if successful): roi (region of interest) binning_x, binning_y

Definition at line 440 of file format7stereo.cpp.

bool Format7::start ( dc1394camera_t *  camera,
dc1394video_mode_t  mode,
Config newconfig 
)

Start the 1394 device in Format7 mode

Parameters:
camerapointer to dc1394camera_t structure.
modecurrently selected Format7 video mode.
[in,out]newconfignew configuration parameters.
Returns:
true, if successful.
Postcondition:
active_ true, if successful
Todo:
Add some sensible recovery for bad Format7 size.

Definition at line 58 of file format7stereo.cpp.

void Format7::stop ( void  )

stop Format7 processing

Definition at line 287 of file format7stereo.cpp.

void Format7::unpackData ( sensor_msgs::Image &  image,
uint8_t *  capture_buffer 
)

Unpack Format7 data for an Image frame

Definition at line 295 of file format7stereo.cpp.


Member Data Documentation

bool Format7::active_ [private]

Definition at line 91 of file format7.h.

dc1394color_filter_t Format7::BayerPattern_ [private]

order of pixels in raw image format

Definition at line 104 of file format7.h.

uint32_t Format7::binning_x_ [private]

current Format7 video mode binning

Definition at line 100 of file format7.h.

uint32_t Format7::binning_y_ [private]

Definition at line 101 of file format7.h.

dc1394color_coding_t Format7::coding_ [private]

Definition at line 92 of file format7.h.

uint32_t Format7::maxHeight_ [private]

Definition at line 94 of file format7.h.

uint32_t Format7::maxWidth_ [private]

Definition at line 93 of file format7.h.

sensor_msgs::RegionOfInterest Format7::roi_ [private]

currently configured region of interest

Definition at line 97 of file format7.h.


The documentation for this class was generated from the following files:


camera1394stereo
Author(s): Joan Pau Beltran
autogenerated on Thu Jun 6 2019 21:29:11