#include "prosilica/prosilica.h"
#include <stdexcept>
#include <string>
#include <boost/function.hpp>
#include <boost/thread.hpp>
#include <PvApi.h>
#include <cassert>
#include <cstdio>
#include <ctime>
#include <cstring>
#include <arpa/inet.h>
#include <ros/console.h>
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 CHECK_ERR | ( | fnc, | |||
amsg | ) |
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.