Public Member Functions | Private Attributes
CobColorCameraNode Class Reference

List of all members.

Public Member Functions

 CobColorCameraNode (const ros::NodeHandle &node_handle)
bool init ()
 Opens the camera sensor.
bool loadParameters ()
void pollCallback (polled_camera::GetPolledImage::Request &req, polled_camera::GetPolledImage::Response &res, sensor_msgs::Image &image_msg, sensor_msgs::CameraInfo &info)
 Callback function for image requests on topic 'request_image'.
bool setCameraInfo (sensor_msgs::SetCameraInfo::Request &req, sensor_msgs::SetCameraInfo::Response &rsp)
 ~CobColorCameraNode ()

Private Attributes

int camera_index_
 Camera index of the color camera for IPA configuration file.
sensor_msgs::CameraInfo camera_info_msg_
 ROS camera information message (e.g. holding intrinsic parameters)
ros::ServiceServer camera_info_service_
AbstractColorCameraPtr color_camera_
 Color camera instance.
int color_camera_intrinsic_id_
 Instrinsic matrix id of left color camera.
ipa_CameraSensors::t_cameraType color_camera_intrinsic_type_
 Instrinsic matrix type of left color camera.
cv::Mat color_image_8U3_
std::string config_directory_
 Directory of related IPA configuration file.
polled_camera::PublicationServer image_poll_server_
ros::NodeHandle node_handle_

Detailed Description

ROS node to interface color cameras.

Definition at line 44 of file color_camera.cpp.


Constructor & Destructor Documentation

CobColorCameraNode::CobColorCameraNode ( const ros::NodeHandle node_handle) [inline]

Void

Definition at line 64 of file color_camera.cpp.

Definition at line 72 of file color_camera.cpp.


Member Function Documentation

bool CobColorCameraNode::init ( ) [inline]

Opens the camera sensor.

Read camera properties of range tof sensor

Setup camera toolbox

Advertise service for other nodes to set intrinsic calibration parameters

Topics to publish

Definition at line 79 of file color_camera.cpp.

Parameters are set within the launch file

Parameters are set within the launch file

Definition at line 218 of file color_camera.cpp.

void CobColorCameraNode::pollCallback ( polled_camera::GetPolledImage::Request &  req,
polled_camera::GetPolledImage::Response &  res,
sensor_msgs::Image &  image_msg,
sensor_msgs::CameraInfo &  info 
) [inline]

Callback function for image requests on topic 'request_image'.

Acquire new image

Set time stamp

Definition at line 174 of file color_camera.cpp.

bool CobColorCameraNode::setCameraInfo ( sensor_msgs::SetCameraInfo::Request &  req,
sensor_msgs::SetCameraInfo::Response &  rsp 
) [inline]

Enables the user to modify camera parameters.

Parameters:
reqRequested camera parameters
rspResponse, telling if requested parameters have been set
Returns:
True

: Enable the setting of intrinsic parameters

Definition at line 161 of file color_camera.cpp.


Member Data Documentation

Camera index of the color camera for IPA configuration file.

Definition at line 53 of file color_camera.cpp.

sensor_msgs::CameraInfo CobColorCameraNode::camera_info_msg_ [private]

ROS camera information message (e.g. holding intrinsic parameters)

Definition at line 57 of file color_camera.cpp.

Definition at line 59 of file color_camera.cpp.

AbstractColorCameraPtr CobColorCameraNode::color_camera_ [private]

Color camera instance.

Definition at line 50 of file color_camera.cpp.

Instrinsic matrix id of left color camera.

Definition at line 54 of file color_camera.cpp.

Instrinsic matrix type of left color camera.

Definition at line 55 of file color_camera.cpp.

Definition at line 61 of file color_camera.cpp.

Directory of related IPA configuration file.

Definition at line 52 of file color_camera.cpp.

Definition at line 48 of file color_camera.cpp.

Definition at line 47 of file color_camera.cpp.


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


cob_camera_sensors
Author(s): Jan Fischer , Richard Bormann
autogenerated on Sat Jun 8 2019 21:02:02