Public Member Functions | Private Attributes
industrial_extrinsic_cal::ROSCameraObserver Class Reference

#include <ros_camera_observer.h>

Inheritance diagram for industrial_extrinsic_cal::ROSCameraObserver:
Inheritance graph
[legend]

List of all members.

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< Targetinstance_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

Detailed Description

Definition at line 58 of file ros_camera_observer.h.


Constructor & Destructor Documentation

constructor

Parameters:
image_topicname 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.


Member Function Documentation

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

Parameters:
targa target to look for
roiRegion of interest for target
Returns:
true if successful, false if error in setting target or roi

Implements industrial_extrinsic_cal::CameraObserver.

Definition at line 32 of file ros_camera_observer.cpp.

clear all previous observations

Implements industrial_extrinsic_cal::CameraObserver.

Definition at line 97 of file ros_camera_observer.cpp.

remove all targets

Implements industrial_extrinsic_cal::CameraObserver.

Definition at line 91 of file ros_camera_observer.cpp.

return observations

Parameters:
camera_observationsoutput observations of targets defined
Returns:
0 if failed to get observations, 1 if successful

Implements industrial_extrinsic_cal::CameraObserver.

Definition at line 103 of file ros_camera_observer.cpp.

tells when camera has completed its observations

Implements industrial_extrinsic_cal::CameraObserver.

Definition at line 185 of file ros_camera_observer.cpp.

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.


Member Data Documentation

private CameraObservations which are set at the end of getObservations and cleared

Definition at line 145 of file ros_camera_observer.h.

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.

topic name for image which is input at constructor

Definition at line 113 of file ros_camera_observer.h.

cv_bridge image for input image from ROS topic image_topic_

Definition at line 165 of file ros_camera_observer.h.

cv rectangle region to crop image into

Definition at line 121 of file ros_camera_observer.h.

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.

2D values of corner/circle locations returned from cv methods

Definition at line 137 of file ros_camera_observer.h.

cv_bridge image for cropped mono output image

Definition at line 173 of file ros_camera_observer.h.

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.

circle grid target pattern true=symmetric

Definition at line 133 of file ros_camera_observer.h.


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


industrial_extrinsic_cal
Author(s): Chris Lewis
autogenerated on Wed Aug 26 2015 12:00:27