#include <ros_camera_observer.h>
Public Member Functions | |
bool | addTarget (boost::shared_ptr< Target > targ, Roi &roi) |
add a target to look for and region to look in | |
void | clearObservations () |
clear all previous observations | |
void | clearTargets () |
remove all targets | |
int | getObservations (CameraObservations &camera_observations) |
return observations | |
bool | observationsDone () |
tells when camera has completed its observations | |
ROSCameraObserver (const std::string &image_topic) | |
constructor | |
void | triggerCamera () |
tells observer to process next incomming image to find the targets in list | |
~ROSCameraObserver () | |
Default destructor. | |
Private Attributes | |
CameraObservations | camera_obs_ |
private CameraObservations which are set at the end of getObservations and cleared | |
cv::Mat | image_roi_ |
cropped image based on original image and region of interest | |
ros::Subscriber | image_sub_ |
ROS subscriber to image_topic_. | |
std::string | image_topic_ |
topic name for image which is input at constructor | |
cv_bridge::CvImagePtr | input_bridge_ |
cv_bridge image for input image from ROS topic image_topic_ | |
cv::Rect | input_roi_ |
cv rectangle region to crop image into | |
boost::shared_ptr< Target > | instance_target_ |
private target which is initialized to input target | |
ros::NodeHandle | nh_ |
ROS node handle for initializing point cloud publisher. | |
std::vector< cv::Point2f > | observation_pts_ |
2D values of corner/circle locations returned from cv methods | |
cv_bridge::CvImagePtr | out_bridge_ |
cv_bridge image for cropped mono output image | |
cv_bridge::CvImagePtr | output_bridge_ |
cv_bridge image for cropped color output image | |
PatternOption | pattern_ |
int | pattern_cols_ |
target pattern grid number of columns | |
int | pattern_rows_ |
target pattern grid number of rows | |
ros::Publisher | results_pub_ |
ROS publisher of out_bridge_ or output_bridge_. | |
bool | sym_circle_ |
circle grid target pattern true=symmetric |
Definition at line 58 of file ros_camera_observer.h.
industrial_extrinsic_cal::ROSCameraObserver::ROSCameraObserver | ( | const std::string & | image_topic | ) |
constructor
image_topic | name of published image topic |
Definition at line 24 of file ros_camera_observer.cpp.
Default destructor.
Definition at line 71 of file ros_camera_observer.h.
bool industrial_extrinsic_cal::ROSCameraObserver::addTarget | ( | boost::shared_ptr< Target > | targ, |
Roi & | roi | ||
) | [virtual] |
add a target to look for and region to look in
targ | a target to look for |
roi | Region of interest for target |
Implements industrial_extrinsic_cal::CameraObserver.
Definition at line 32 of file ros_camera_observer.cpp.
void industrial_extrinsic_cal::ROSCameraObserver::clearObservations | ( | ) | [virtual] |
clear all previous observations
Implements industrial_extrinsic_cal::CameraObserver.
Definition at line 97 of file ros_camera_observer.cpp.
void industrial_extrinsic_cal::ROSCameraObserver::clearTargets | ( | ) | [virtual] |
remove all targets
Implements industrial_extrinsic_cal::CameraObserver.
Definition at line 91 of file ros_camera_observer.cpp.
int industrial_extrinsic_cal::ROSCameraObserver::getObservations | ( | CameraObservations & | camera_observations | ) | [virtual] |
return observations
camera_observations | output observations of targets defined |
Implements industrial_extrinsic_cal::CameraObserver.
Definition at line 103 of file ros_camera_observer.cpp.
bool industrial_extrinsic_cal::ROSCameraObserver::observationsDone | ( | ) | [virtual] |
tells when camera has completed its observations
Implements industrial_extrinsic_cal::CameraObserver.
Definition at line 185 of file ros_camera_observer.cpp.
void industrial_extrinsic_cal::ROSCameraObserver::triggerCamera | ( | ) | [virtual] |
tells observer to process next incomming image to find the targets in list
Implements industrial_extrinsic_cal::CameraObserver.
Definition at line 163 of file ros_camera_observer.cpp.
private CameraObservations which are set at the end of getObservations and cleared
Definition at line 145 of file ros_camera_observer.h.
cv::Mat industrial_extrinsic_cal::ROSCameraObserver::image_roi_ [private] |
cropped image based on original image and region of interest
Definition at line 117 of file ros_camera_observer.h.
ROS subscriber to image_topic_.
Definition at line 155 of file ros_camera_observer.h.
std::string industrial_extrinsic_cal::ROSCameraObserver::image_topic_ [private] |
topic name for image which is input at constructor
Definition at line 113 of file ros_camera_observer.h.
cv_bridge::CvImagePtr industrial_extrinsic_cal::ROSCameraObserver::input_bridge_ [private] |
cv_bridge image for input image from ROS topic image_topic_
Definition at line 165 of file ros_camera_observer.h.
cv::Rect industrial_extrinsic_cal::ROSCameraObserver::input_roi_ [private] |
cv rectangle region to crop image into
Definition at line 121 of file ros_camera_observer.h.
boost::shared_ptr<Target> industrial_extrinsic_cal::ROSCameraObserver::instance_target_ [private] |
private target which is initialized to input target
Definition at line 141 of file ros_camera_observer.h.
ROS node handle for initializing point cloud publisher.
Definition at line 151 of file ros_camera_observer.h.
std::vector<cv::Point2f> industrial_extrinsic_cal::ROSCameraObserver::observation_pts_ [private] |
2D values of corner/circle locations returned from cv methods
Definition at line 137 of file ros_camera_observer.h.
cv_bridge::CvImagePtr industrial_extrinsic_cal::ROSCameraObserver::out_bridge_ [private] |
cv_bridge image for cropped mono output image
Definition at line 173 of file ros_camera_observer.h.
cv_bridge::CvImagePtr industrial_extrinsic_cal::ROSCameraObserver::output_bridge_ [private] |
cv_bridge image for cropped color output image
Definition at line 169 of file ros_camera_observer.h.
Definition at line 109 of file ros_camera_observer.h.
target pattern grid number of columns
Definition at line 129 of file ros_camera_observer.h.
target pattern grid number of rows
Definition at line 125 of file ros_camera_observer.h.
ROS publisher of out_bridge_ or output_bridge_.
Definition at line 159 of file ros_camera_observer.h.
bool industrial_extrinsic_cal::ROSCameraObserver::sym_circle_ [private] |
circle grid target pattern true=symmetric
Definition at line 133 of file ros_camera_observer.h.