Namespaces | Defines | Functions | Variables
prosilica.cpp File Reference
#include "prosilica/prosilica.h"
#include <PvRegIo.h>
#include <cassert>
#include <cstdio>
#include <ctime>
#include <cstring>
#include <arpa/inet.h>
#include <ros/console.h>
Include dependency graph for prosilica.cpp:

Go to the source code of this file.

Namespaces

namespace  prosilica

Defines

#define CHECK_ERR(fnc, amsg)

Functions

void prosilica::fini ()
uint64_t prosilica::getGuid (size_t i)
static void prosilica::getStringValuedAttribute (std::string &value, boost::function< tPvErr(char *, unsigned long, unsigned long *)> get_fn)
void prosilica::init ()
size_t prosilica::numCameras ()
static void prosilica::openCamera (boost::function< tPvErr(tPvCameraInfo *)> info_fn, boost::function< tPvErr(tPvAccessFlags)> open_fn)

Variables

static const char * prosilica::acquisitionModes [] = {"Continuous","SingleFrame","MultiFrame","Recorder"}
static const char * prosilica::autoValues [] = {"Manual", "Auto", "AutoOnce"}
static tPvCameraInfo prosilica::cameraList [MAX_CAMERA_LIST]
static unsigned long prosilica::cameraNum = 0
static const char * prosilica::errorStrings []
static const unsigned int prosilica::MAX_CAMERA_LIST = 10
static const char * prosilica::triggerModes [] = {"Freerun", "SyncIn1", "SyncIn2", "FixedRate", "Software"}
static const unsigned long prosilica::USER_ADDRESS = 0x17200

Define Documentation

#define CHECK_ERR (   fnc,
  amsg 
)
Value:
do {                                                       \
  tPvErr err = fnc;                                        \
  if (err != ePvErrSuccess) {                              \
    char msg[256];                                         \
    snprintf(msg, 256, "%s: %s", amsg, errorStrings[err]); \
    throw ProsilicaException(err, msg);                    \
  }                                                        \
} while (false)

Definition at line 45 of file prosilica.cpp.



prosilica_camera
Author(s): Maintained by William Woodall - wwoodall@willowgarage.com
autogenerated on Mon Oct 6 2014 03:56:56