Definition at line 63 of file prosilica_nodelet.cpp.
virtual prosilica_camera::ProsilicaNodelet::~ProsilicaNodelet |
( |
| ) |
|
|
inlinevirtual |
Make sure we interrupt initialization (if it happened to still execute).
Definition at line 68 of file prosilica_nodelet.cpp.
prosilica_camera::ProsilicaNodelet::ProsilicaNodelet |
( |
| ) |
|
|
inline |
bool prosilica_camera::ProsilicaNodelet::frameToImage |
( |
tPvFrame * |
frame, |
|
|
sensor_msgs::Image & |
image |
|
) |
| |
|
inlineprivate |
std::string prosilica_camera::ProsilicaNodelet::getAvailableCameras |
( |
| ) |
|
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::kill |
( |
unsigned long |
guid | ) |
|
|
inlineprivate |
Make sure we interrupt initialization (if it happened to still execute).
Definition at line 422 of file prosilica_nodelet.cpp.
void prosilica_camera::ProsilicaNodelet::loadIntrinsics |
( |
| ) |
|
|
inlineprivate |
virtual void prosilica_camera::ProsilicaNodelet::onInit |
( |
| ) |
|
|
inlineprivatevirtual |
We will be retrying to open camera until it is open, which may block the thread. Nodelet::onInit() should not block, hence spawning a new thread to do initialization.
Implements nodelet::Nodelet.
Definition at line 165 of file prosilica_nodelet.cpp.
void prosilica_camera::ProsilicaNodelet::onInitImpl |
( |
| ) |
|
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::openCamera |
( |
| ) |
|
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::pollCallback |
( |
polled_camera::GetPolledImage::Request & |
req, |
|
|
polled_camera::GetPolledImage::Response & |
rsp, |
|
|
sensor_msgs::Image & |
image, |
|
|
sensor_msgs::CameraInfo & |
info |
|
) |
| |
|
inlineprivate |
bool prosilica_camera::ProsilicaNodelet::processFrame |
( |
tPvFrame * |
frame, |
|
|
sensor_msgs::Image & |
img, |
|
|
sensor_msgs::CameraInfo & |
cam_info |
|
) |
| |
|
inlineprivate |
- Todo:
- Match time stamp from frame to ROS time?
- Todo:
- Binning values retrieved here may differ from the ones used to actually capture the frame! Maybe need to clear queue when changing binning and/or stuff binning values into context?
Definition at line 561 of file prosilica_nodelet.cpp.
void prosilica_camera::ProsilicaNodelet::publishImage |
( |
tPvFrame * |
frame | ) |
|
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::publishImage |
( |
tPvFrame * |
frame, |
|
|
ros::Time |
time |
|
) |
| |
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::reconfigureCallback |
( |
prosilica_camera::ProsilicaCameraConfig & |
config, |
|
|
uint32_t |
level |
|
) |
| |
|
inlineprivate |
Trigger mode
- Todo:
- Replicating logic from polledCallback
If exception thrown due to bad settings, it will fail to start camera Reload last good config
Definition at line 689 of file prosilica_nodelet.cpp.
bool prosilica_camera::ProsilicaNodelet::setCameraInfo |
( |
sensor_msgs::SetCameraInfoRequest & |
req, |
|
|
sensor_msgs::SetCameraInfoResponse & |
rsp |
|
) |
| |
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::start |
( |
| ) |
|
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::stop |
( |
| ) |
|
|
inlineprivate |
void prosilica_camera::ProsilicaNodelet::updateCallback |
( |
const ros::TimerEvent & |
event | ) |
|
|
inlineprivate |
bool prosilica_camera::ProsilicaNodelet::auto_adjust_stream_bytes_per_second_ |
|
private |
sensor_msgs::CameraInfo prosilica_camera::ProsilicaNodelet::cam_info_ |
|
private |
boost::recursive_mutex prosilica_camera::ProsilicaNodelet::config_mutex_ |
|
private |
int prosilica_camera::ProsilicaNodelet::count_ |
|
private |
tPvUint32 prosilica_camera::ProsilicaNodelet::dummy |
|
private |
std::string prosilica_camera::ProsilicaNodelet::frame_id_ |
|
private |
RollingSum<unsigned long> prosilica_camera::ProsilicaNodelet::frames_completed_acc_ |
|
private |
unsigned long prosilica_camera::ProsilicaNodelet::frames_completed_total_ |
|
private |
RollingSum<unsigned long> prosilica_camera::ProsilicaNodelet::frames_dropped_acc_ |
|
private |
unsigned long prosilica_camera::ProsilicaNodelet::frames_dropped_total_ |
|
private |
unsigned long prosilica_camera::ProsilicaNodelet::guid_ |
|
private |
sensor_msgs::Image prosilica_camera::ProsilicaNodelet::img_ |
|
private |
boost::thread prosilica_camera::ProsilicaNodelet::init_thread_ |
|
private |
std::string prosilica_camera::ProsilicaNodelet::intrinsics_ |
|
private |
std::string prosilica_camera::ProsilicaNodelet::ip_address_ |
|
private |
prosilica_camera::ProsilicaCameraConfig prosilica_camera::ProsilicaNodelet::last_config_ |
|
private |
tPvUint32 prosilica_camera::ProsilicaNodelet::max_binning_x |
|
private |
tPvUint32 prosilica_camera::ProsilicaNodelet::max_binning_y |
|
private |
double prosilica_camera::ProsilicaNodelet::open_camera_retry_period_ |
|
private |
RollingSum<unsigned long> prosilica_camera::ProsilicaNodelet::packets_missed_acc_ |
|
private |
unsigned long prosilica_camera::ProsilicaNodelet::packets_missed_total_ |
|
private |
RollingSum<unsigned long> prosilica_camera::ProsilicaNodelet::packets_received_acc_ |
|
private |
unsigned long prosilica_camera::ProsilicaNodelet::packets_received_total_ |
|
private |
tPvUint32 prosilica_camera::ProsilicaNodelet::sensor_height_ |
|
private |
tPvUint32 prosilica_camera::ProsilicaNodelet::sensor_width_ |
|
private |
std::string prosilica_camera::ProsilicaNodelet::state_info_ |
|
private |
ros::Time prosilica_camera::ProsilicaNodelet::trig_time_ |
|
private |
std::string prosilica_camera::ProsilicaNodelet::trig_timestamp_topic_ |
|
private |
int prosilica_camera::ProsilicaNodelet::trigger_mode_ |
|
private |
double prosilica_camera::ProsilicaNodelet::update_rate_ |
|
private |
ros::Timer prosilica_camera::ProsilicaNodelet::update_timer_ |
|
private |
const int prosilica_camera::ProsilicaNodelet::WINDOW_SIZE = 100 |
|
staticprivate |
The documentation for this class was generated from the following file: