Go to the documentation of this file.
43 #ifndef SPINNAKER_CAMERA_DRIVER_SPINNAKERCAMERA_H
44 #define SPINNAKER_CAMERA_DRIVER_SPINNAKERCAMERA_H
46 #include <sensor_msgs/Image.h>
57 #include <spinnaker_camera_driver/SpinnakerConfig.h>
64 #include "Spinnaker.h"
65 #include "SpinGenApi/SpinnakerGenApi.h"
89 void setNewConfiguration(
const spinnaker_camera_driver::SpinnakerConfig& config,
const uint32_t& level);
140 void grabImage(sensor_msgs::Image* image,
const std::string& frame_id);
163 void setGain(
const float& gain);
167 Spinnaker::GenApi::CNodePtr
readProperty(
const Spinnaker::GenICam::gcstring property_name);
211 #endif // SPINNAKER_CAMERA_DRIVER_SPINNAKERCAMERA_H
Spinnaker::CameraPtr pCam_
void connect()
Function that connects to a specified camera.
uint32_t serial_
A variable to hold the serial number of the desired camera.
void grabImage(sensor_msgs::Image *image, const std::string &frame_id)
Loads the raw data from the cameras buffer.
void setGain(const float &gain)
bool isColor_
If true, camera is currently running in color mode, otherwise camera is running in mono mode.
void setTimeout(const double &timeout)
Will set grabImage timeout for the camera.
static const uint8_t LEVEL_RECONFIGURE_RUNNING
bool auto_packet_size_
If true, GigE packet size is automatically determined, otherwise packet_size_ is used:
void setNewConfiguration(const spinnaker_camera_driver::SpinnakerConfig &config, const uint32_t &level)
Function that allows reconfiguration of the camera.
unsigned int packet_delay_
GigE packet delay:
void ConfigureChunkData(const Spinnaker::GenApi::INodeMap &nodeMap)
volatile bool captureRunning_
std::mutex mutex_
A mutex to make sure that we don't try to grabImages while reconfiguring or vice versa.
void start()
Starts the camera loading data into its buffer.
bool readableProperty(const Spinnaker::GenICam::gcstring property_name)
void setDesiredCamera(const uint32_t &id)
Used to set the serial number for the camera you wish to connect to.
Spinnaker::ChunkData image_metadata_
static const uint8_t LEVEL_RECONFIGURE_STOP
Spinnaker::CameraList camList_
static const uint8_t LEVEL_RECONFIGURE_CLOSE
Spinnaker::SystemPtr system_
Spinnaker::GenApi::INodeMap * node_map_
std::shared_ptr< Camera > camera_
unsigned int packet_size_
GigE packet size:
void disconnect()
Disconnects from the camera.
void stop()
Stops the camera loading data into its buffer.
Interface to Point Grey cameras.
Spinnaker::GenApi::CNodePtr readProperty(const Spinnaker::GenICam::gcstring property_name)