Manages the driver / streamer. More...
#include <streamer.hpp>
Manages the driver / streamer.
Definition at line 301 of file streamer.hpp.
streamerNode::streamerNode | ( | ros::NodeHandle & | nh, |
streamerData | startupData | ||
) |
Definition at line 2146 of file streamer.cpp.
void streamerNode::acceptImage | ( | void * | ptr | ) |
Definition at line 791 of file streamer.cpp.
void streamerNode::act_on_image | ( | ) |
Definition at line 2714 of file streamer.cpp.
void streamerNode::assignCameraInfo | ( | ) |
Definition at line 476 of file streamer.cpp.
Definition at line 2126 of file streamer.cpp.
bool streamerNode::configureSerialComms | ( | ) |
Definition at line 3922 of file streamer.cpp.
Definition at line 3325 of file streamer.cpp.
bool streamerNode::getNucSettingsReading | ( | int & | delay, |
double & | diff | ||
) |
Definition at line 4360 of file streamer.cpp.
void streamerNode::getRectification | ( | ) |
Definition at line 2504 of file streamer.cpp.
float streamerNode::getThermistorReading | ( | ) |
Definition at line 4394 of file streamer.cpp.
cv::VideoCapture * streamerNode::getVideoCapture | ( | ) |
Definition at line 3329 of file streamer.cpp.
void streamerNode::handle_camera | ( | const sensor_msgs::ImageConstPtr & | msg_ptr, |
const sensor_msgs::CameraInfoConstPtr & | info_msg | ||
) |
Definition at line 2667 of file streamer.cpp.
void streamerNode::handle_image | ( | const sensor_msgs::ImageConstPtr & | msg_ptr | ) |
Definition at line 2763 of file streamer.cpp.
void streamerNode::handle_info | ( | const sensor_msgs::CameraInfoConstPtr & | info_msg | ) |
Definition at line 2543 of file streamer.cpp.
void streamerNode::handle_nuc_instruction | ( | const std_msgs::Float32::ConstPtr & | nuc_msg | ) |
Definition at line 2527 of file streamer.cpp.
void streamerNode::initializeMessages | ( | ) |
Definition at line 1298 of file streamer.cpp.
bool streamerNode::isVideoValid | ( | ) |
Definition at line 3309 of file streamer.cpp.
Definition at line 386 of file streamer.cpp.
int streamerNode::open_port | ( | ) |
Definition at line 3861 of file streamer.cpp.
void streamerNode::overwriteCameraDims | ( | ) |
Definition at line 2139 of file streamer.cpp.
bool streamerNode::performNuc | ( | ) |
Definition at line 1616 of file streamer.cpp.
void streamerNode::prepareForTermination | ( | ) |
Definition at line 67 of file streamer.cpp.
bool streamerNode::processFolder | ( | ) |
Definition at line 348 of file streamer.cpp.
bool streamerNode::processImage | ( | ) |
Definition at line 839 of file streamer.cpp.
void streamerNode::publishTopics | ( | ) |
Definition at line 1343 of file streamer.cpp.
Definition at line 2582 of file streamer.cpp.
void streamerNode::releaseDevice | ( | ) |
Definition at line 168 of file streamer.cpp.
bool streamerNode::runBag | ( | ) |
Definition at line 324 of file streamer.cpp.
bool streamerNode::runDevice | ( | ) |
Definition at line 187 of file streamer.cpp.
bool streamerNode::runLoad | ( | ) |
Definition at line 255 of file streamer.cpp.
bool streamerNode::runRead | ( | ) |
Definition at line 278 of file streamer.cpp.
bool streamerNode::sendSerialCommand | ( | char * | command, |
int | max_attempts = 1 |
||
) |
Definition at line 1916 of file streamer.cpp.
void streamerNode::serialCallback | ( | const ros::TimerEvent & | e | ) |
Definition at line 1627 of file streamer.cpp.
void streamerNode::serverCallback | ( | thermalvis::streamerConfig & | config, |
uint32_t | level | ||
) |
Definition at line 3374 of file streamer.cpp.
bool streamerNode::setCameraInfo | ( | sensor_msgs::SetCameraInfo::Request & | req, |
sensor_msgs::SetCameraInfo::Response & | rsp | ||
) |
Definition at line 642 of file streamer.cpp.
bool streamerNode::setupDevice | ( | ) |
Definition at line 119 of file streamer.cpp.
void streamerNode::setValidity | ( | bool | val | ) |
Definition at line 3320 of file streamer.cpp.
double streamerNode::smoothThermistorReading | ( | ) |
Definition at line 4313 of file streamer.cpp.
bool streamerNode::streamCallback | ( | bool | capture = true | ) |
Definition at line 659 of file streamer.cpp.
void streamerNode::timerCallback | ( | const ros::TimerEvent & | e | ) |
Definition at line 1963 of file streamer.cpp.
void streamerNode::updateCameraInfo | ( | ) |
Definition at line 392 of file streamer.cpp.
Definition at line 624 of file streamer.cpp.
void streamerNode::updateMap | ( | ) |
Definition at line 3333 of file streamer.cpp.
void streamerNode::writeData | ( | ) |
Definition at line 1530 of file streamer.cpp.
cv::Mat streamerNode::_16bitMat [private] |
Definition at line 418 of file streamer.hpp.
cv::Mat streamerNode::_16bitMat_pub [private] |
Definition at line 420 of file streamer.hpp.
cv::Mat streamerNode::_8bitMat [private] |
Definition at line 418 of file streamer.hpp.
cv::Mat streamerNode::_8bitMat_pub [private] |
Definition at line 420 of file streamer.hpp.
bool streamerNode::alphaChanged [private] |
Definition at line 404 of file streamer.hpp.
int streamerNode::alternateCounter [private] |
Definition at line 334 of file streamer.hpp.
bool streamerNode::altStatus [private] |
Definition at line 329 of file streamer.hpp.
string streamerNode::callLogFile [private] |
Definition at line 339 of file streamer.hpp.
sensor_msgs::CameraInfo streamerNode::camera_info [private] |
Definition at line 430 of file streamer.hpp.
Definition at line 352 of file streamer.hpp.
bool streamerNode::canRadiometricallyCorrect [private] |
Definition at line 318 of file streamer.hpp.
cv::VideoCapture streamerNode::cap [private] |
Definition at line 445 of file streamer.hpp.
CvCapture* streamerNode::capture |
Definition at line 457 of file streamer.hpp.
bool streamerNode::centerPrincipalPoint [private] |
Definition at line 376 of file streamer.hpp.
cScheme streamerNode::colourMap [private] |
Definition at line 390 of file streamer.hpp.
cv::Mat streamerNode::colourMat [private] |
Definition at line 418 of file streamer.hpp.
cv::Mat streamerNode::colourMat_pub [private] |
Definition at line 420 of file streamer.hpp.
streamerData streamerNode::configData [private] |
Definition at line 349 of file streamer.hpp.
bool streamerNode::currentDesiredNucProtectionMode [private] |
Definition at line 308 of file streamer.hpp.
bool streamerNode::currentNucProtectionMode [private] |
Definition at line 308 of file streamer.hpp.
cv_bridge::CvImagePtr streamerNode::cv_ptr [private] |
Definition at line 370 of file streamer.hpp.
bool streamerNode::deviceCreated [private] |
Definition at line 307 of file streamer.hpp.
ros::Time streamerNode::dodgeTime [private] |
Definition at line 356 of file streamer.hpp.
string streamerNode::duplicatesLogFile [private] |
Definition at line 339 of file streamer.hpp.
dynamic_reconfigure::Server<thermalvis::streamerConfig>::CallbackType streamerNode::f [private] |
Definition at line 448 of file streamer.hpp.
int streamerNode::fileCount [private] |
Definition at line 439 of file streamer.hpp.
int64_t streamerNode::firmwareTime [private] |
Definition at line 368 of file streamer.hpp.
bool streamerNode::firstCall [private] |
Definition at line 311 of file streamer.hpp.
bool streamerNode::firstFrame [private] |
Definition at line 384 of file streamer.hpp.
bool streamerNode::firstServerCallbackProcessed [private] |
Definition at line 373 of file streamer.hpp.
cv::Mat streamerNode::frame [private] |
Definition at line 421 of file streamer.hpp.
int streamerNode::frameCounter [private] |
Definition at line 393 of file streamer.hpp.
double streamerNode::fusionFactor [private] |
Definition at line 375 of file streamer.hpp.
camData_ streamerNode::globalCameraInfo [private] |
Definition at line 425 of file streamer.hpp.
Definition at line 427 of file streamer.hpp.
Definition at line 350 of file streamer.hpp.
ros::Time streamerNode::image_time [private] |
Definition at line 356 of file streamer.hpp.
ros::Subscriber streamerNode::info_sub [private] |
Definition at line 351 of file streamer.hpp.
ros::Time streamerNode::info_time [private] |
Definition at line 356 of file streamer.hpp.
vector<string> streamerNode::inputList [private] |
Definition at line 438 of file streamer.hpp.
unsigned long streamerNode::internal_time [private] |
Definition at line 366 of file streamer.hpp.
string streamerNode::internalLogFile [private] |
Definition at line 339 of file streamer.hpp.
bool streamerNode::isActuallyGray [private] |
Definition at line 434 of file streamer.hpp.
image_transport::ImageTransport* streamerNode::it [private] |
Definition at line 348 of file streamer.hpp.
double streamerNode::lastDisplayed [private] |
Definition at line 320 of file streamer.hpp.
ros::Time streamerNode::lastFlagReceived [private] |
Definition at line 356 of file streamer.hpp.
cv::Mat streamerNode::lastFrame [private] |
Definition at line 382 of file streamer.hpp.
bool streamerNode::lastIsDuplicate [private] |
Definition at line 324 of file streamer.hpp.
double streamerNode::lastLowerLimit [private] |
Definition at line 378 of file streamer.hpp.
double streamerNode::lastMaxDisplayTemp [private] |
Definition at line 306 of file streamer.hpp.
double streamerNode::lastMedian [private] |
Definition at line 378 of file streamer.hpp.
double streamerNode::lastMinDisplayTemp [private] |
Definition at line 306 of file streamer.hpp.
Definition at line 356 of file streamer.hpp.
float streamerNode::lastThermistorReading [private] |
Definition at line 346 of file streamer.hpp.
double streamerNode::lastUpperLimit [private] |
Definition at line 378 of file streamer.hpp.
int streamerNode::lastWritten [private] |
Definition at line 394 of file streamer.hpp.
int streamerNode::mainfd [private] |
Definition at line 451 of file streamer.hpp.
streamerSource* streamerNode::mainVideoSource [private] |
Definition at line 444 of file streamer.hpp.
cv::Mat streamerNode::map1 [private] |
Definition at line 386 of file streamer.hpp.
cv::Mat streamerNode::map2 [private] |
Definition at line 386 of file streamer.hpp.
double streamerNode::maxVal [private] |
Definition at line 380 of file streamer.hpp.
double streamerNode::medianPercentile [private] |
Definition at line 344 of file streamer.hpp.
double streamerNode::minVal [private] |
Definition at line 380 of file streamer.hpp.
sensor_msgs::Image streamerNode::msg_16bit [private] |
Definition at line 371 of file streamer.hpp.
sensor_msgs::Image streamerNode::msg_8bit [private] |
Definition at line 371 of file streamer.hpp.
sensor_msgs::Image streamerNode::msg_color [private] |
Definition at line 371 of file streamer.hpp.
cv::Mat streamerNode::newImage [private] |
Definition at line 421 of file streamer.hpp.
double streamerNode::newMedian [private] |
Definition at line 378 of file streamer.hpp.
float streamerNode::newThermistorReading [private] |
Definition at line 346 of file streamer.hpp.
char streamerNode::nodeName[256] [private] |
Definition at line 304 of file streamer.hpp.
cv::Mat streamerNode::normalizedMat [private] |
Definition at line 421 of file streamer.hpp.
Definition at line 354 of file streamer.hpp.
ofstream streamerNode::ofs [private] |
Definition at line 332 of file streamer.hpp.
ofstream streamerNode::ofs_call_log [private] |
Definition at line 340 of file streamer.hpp.
ofstream streamerNode::ofs_duplicates_log [private] |
Definition at line 340 of file streamer.hpp.
ofstream streamerNode::ofs_internal_log [private] |
Definition at line 340 of file streamer.hpp.
ofstream streamerNode::ofs_retrieve_log [private] |
Definition at line 340 of file streamer.hpp.
ofstream streamerNode::ofs_thermistor_log [private] |
Definition at line 340 of file streamer.hpp.
ofstream streamerNode::ofs_write_log [private] |
Definition at line 340 of file streamer.hpp.
double streamerNode::oldMaxDiff [private] |
Definition at line 378 of file streamer.hpp.
unsigned long streamerNode::original_bx [private] |
Definition at line 363 of file streamer.hpp.
unsigned long streamerNode::original_by [private] |
Definition at line 363 of file streamer.hpp.
sensor_msgs::CameraInfo streamerNode::original_camera_info [private] |
Definition at line 430 of file streamer.hpp.
ros::Time streamerNode::original_time [private] |
Definition at line 356 of file streamer.hpp.
float streamerNode::originalInternalTime [private] |
Definition at line 357 of file streamer.hpp.
int streamerNode::pastMeanIndex [private] |
Definition at line 337 of file streamer.hpp.
double streamerNode::pastMeans[256] [private] |
Definition at line 336 of file streamer.hpp.
bool streamerNode::performingNuc [private] |
Definition at line 330 of file streamer.hpp.
cv::Mat streamerNode::preFilteredMat [private] |
Definition at line 419 of file streamer.hpp.
Definition at line 413 of file streamer.hpp.
Definition at line 407 of file streamer.hpp.
Definition at line 414 of file streamer.hpp.
Definition at line 408 of file streamer.hpp.
Definition at line 412 of file streamer.hpp.
Definition at line 406 of file streamer.hpp.
Definition at line 416 of file streamer.hpp.
Definition at line 410 of file streamer.hpp.
rScheme streamerNode::radMapper [private] |
Definition at line 322 of file streamer.hpp.
bool streamerNode::readyToPublish [private] |
Definition at line 400 of file streamer.hpp.
unsigned int streamerNode::recordedThermistorReadings [private] |
Definition at line 315 of file streamer.hpp.
string streamerNode::retrieveLogFile [private] |
Definition at line 339 of file streamer.hpp.
cv::Mat streamerNode::rzMat [private] |
Definition at line 388 of file streamer.hpp.
cv::Mat streamerNode::scaled16Mat [private] |
Definition at line 419 of file streamer.hpp.
ros::Timer streamerNode::serial_timer [private] |
Definition at line 402 of file streamer.hpp.
dynamic_reconfigure::Server<thermalvis::streamerConfig> streamerNode::server [private] |
Definition at line 447 of file streamer.hpp.
Definition at line 432 of file streamer.hpp.
bool streamerNode::settingsDisabled [private] |
Definition at line 313 of file streamer.hpp.
double streamerNode::shiftDiff [private] |
Definition at line 361 of file streamer.hpp.
cv::Mat streamerNode::smoothedMat [private] |
Definition at line 419 of file streamer.hpp.
cv::Mat streamerNode::temperatureMat [private] |
Definition at line 342 of file streamer.hpp.
cv::Mat streamerNode::testMat [private] |
Definition at line 342 of file streamer.hpp.
double streamerNode::thermistorBuffer[MAX_THERMISTOR_READINGS_TO_STORE][2] [private] |
Definition at line 316 of file streamer.hpp.
string streamerNode::thermistorLogFile [private] |
Definition at line 339 of file streamer.hpp.
ros::Timer streamerNode::timer [private] |
Definition at line 402 of file streamer.hpp.
cv::Mat streamerNode::undistorted [private] |
Definition at line 421 of file streamer.hpp.
bool streamerNode::updateDetectorMode [private] |
Definition at line 327 of file streamer.hpp.
bool streamerNode::updateNucInterval [private] |
Definition at line 326 of file streamer.hpp.
bool streamerNode::updateUSBMode [private] |
Definition at line 327 of file streamer.hpp.
cv::VideoWriter streamerNode::vid_writer [private] |
Definition at line 396 of file streamer.hpp.
bool streamerNode::videoInitialized [private] |
Definition at line 398 of file streamer.hpp.
bool streamerNode::videoValid [private] |
Definition at line 443 of file streamer.hpp.
bool streamerNode::wantsToDisableNuc [private] |
Definition at line 309 of file streamer.hpp.
cv::Mat streamerNode::workingFrame [private] |
Definition at line 421 of file streamer.hpp.
int streamerNode::writeIndex [private] |
Definition at line 392 of file streamer.hpp.
string streamerNode::writeLogFile [private] |
Definition at line 339 of file streamer.hpp.