Public Member Functions | Private Member Functions | Private Attributes | List of all members
Callbacks Class Reference

Public Member Functions

bool callbackEndSave (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
 
 Callbacks ()
 
bool callbackStartSave (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
 
void callbackWithCameraInfo (const sensor_msgs::ImageConstPtr &image_msg, const sensor_msgs::CameraInfoConstPtr &info)
 
void callbackWithoutCameraInfo (const sensor_msgs::ImageConstPtr &image_msg)
 

Private Member Functions

bool saveImage (const sensor_msgs::ImageConstPtr &image_msg, std::string &filename)
 

Private Attributes

size_t count_
 
ros::Time end_time_
 
bool has_camera_info_
 
bool is_first_image_
 
ros::Time start_time_
 

Detailed Description

Class to deal with which callback to call whether we have CameraInfo or not

Definition at line 59 of file image_saver.cpp.

Constructor & Destructor Documentation

◆ Callbacks()

Callbacks::Callbacks ( )
inline

Definition at line 61 of file image_saver.cpp.

Member Function Documentation

◆ callbackEndSave()

bool Callbacks::callbackEndSave ( std_srvs::Trigger::Request &  req,
std_srvs::Trigger::Response &  res 
)
inline

Definition at line 75 of file image_saver.cpp.

◆ callbackStartSave()

bool Callbacks::callbackStartSave ( std_srvs::Trigger::Request &  req,
std_srvs::Trigger::Response &  res 
)
inline

Definition at line 64 of file image_saver.cpp.

◆ callbackWithCameraInfo()

void Callbacks::callbackWithCameraInfo ( const sensor_msgs::ImageConstPtr &  image_msg,
const sensor_msgs::CameraInfoConstPtr &  info 
)
inline

Definition at line 118 of file image_saver.cpp.

◆ callbackWithoutCameraInfo()

void Callbacks::callbackWithoutCameraInfo ( const sensor_msgs::ImageConstPtr &  image_msg)
inline

Definition at line 85 of file image_saver.cpp.

◆ saveImage()

bool Callbacks::saveImage ( const sensor_msgs::ImageConstPtr &  image_msg,
std::string &  filename 
)
inlineprivate

Definition at line 145 of file image_saver.cpp.

Member Data Documentation

◆ count_

size_t Callbacks::count_
private

Definition at line 193 of file image_saver.cpp.

◆ end_time_

ros::Time Callbacks::end_time_
private

Definition at line 195 of file image_saver.cpp.

◆ has_camera_info_

bool Callbacks::has_camera_info_
private

Definition at line 192 of file image_saver.cpp.

◆ is_first_image_

bool Callbacks::is_first_image_
private

Definition at line 191 of file image_saver.cpp.

◆ start_time_

ros::Time Callbacks::start_time_
private

Definition at line 194 of file image_saver.cpp.


The documentation for this class was generated from the following file:


image_view
Author(s): Patrick Mihelich
autogenerated on Wed Jan 24 2024 03:57:22