Public Types | Public Member Functions | Protected Attributes | List of all members
jsk_recognition_utils::CameraDepthSensor Class Reference

#include <camera_depth_sensor.h>

Inheritance diagram for jsk_recognition_utils::CameraDepthSensor:
Inheritance graph
[legend]

Public Types

typedef boost::shared_ptr< CameraDepthSensorPtr
 
- Public Types inherited from jsk_recognition_utils::PointCloudSensorModel
typedef boost::shared_ptr< PointCloudSensorModelPtr
 

Public Member Functions

 CameraDepthSensor ()
 
virtual double expectedPointCloudNum (double distance, double area) const
 Return the expected number of points according to distance and area. it is calculated according to: f^2\frac{s}{r^2}. More...
 
virtual image_geometry::PinholeCameraModel getPinholeCameraModel () const
 get instance of image_geometry::PinholeCameraModel. More...
 
virtual int height () const
 height of camera in pixels. More...
 
virtual cv::Mat image (const int type) const
 return an image from internal camera parameter. More...
 
virtual bool isInside (const cv::Point &p) const
 return true if point p is inside of field-of-view. More...
 
virtual cv::Point limit2DPoint (const cv::Point &p) const
 force point to be inside of field of view. More...
 
virtual void setCameraInfo (const sensor_msgs::CameraInfo &info)
 
virtual int width () const
 width of camera in pixels. More...
 

Protected Attributes

sensor_msgs::CameraInfo camera_info_
 
image_geometry::PinholeCameraModel model_
 

Detailed Description

Definition at line 77 of file camera_depth_sensor.h.

Member Typedef Documentation

◆ Ptr

Definition at line 112 of file camera_depth_sensor.h.

Constructor & Destructor Documentation

◆ CameraDepthSensor()

jsk_recognition_utils::CameraDepthSensor::CameraDepthSensor ( )
inline

Definition at line 113 of file camera_depth_sensor.h.

Member Function Documentation

◆ expectedPointCloudNum()

virtual double jsk_recognition_utils::CameraDepthSensor::expectedPointCloudNum ( double  distance,
double  area 
) const
inlinevirtual

Return the expected number of points according to distance and area. it is calculated according to: f^2\frac{s}{r^2}.

Implements jsk_recognition_utils::PointCloudSensorModel.

Definition at line 146 of file camera_depth_sensor.h.

◆ getPinholeCameraModel()

virtual image_geometry::PinholeCameraModel jsk_recognition_utils::CameraDepthSensor::getPinholeCameraModel ( ) const
inlinevirtual

get instance of image_geometry::PinholeCameraModel.

Definition at line 125 of file camera_depth_sensor.h.

◆ height()

virtual int jsk_recognition_utils::CameraDepthSensor::height ( ) const
inlinevirtual

height of camera in pixels.

Definition at line 174 of file camera_depth_sensor.h.

◆ image()

virtual cv::Mat jsk_recognition_utils::CameraDepthSensor::image ( const int  type) const
inlinevirtual

return an image from internal camera parameter.

Definition at line 156 of file camera_depth_sensor.h.

◆ isInside()

virtual bool jsk_recognition_utils::CameraDepthSensor::isInside ( const cv::Point p) const
inlinevirtual

return true if point p is inside of field-of-view.

Definition at line 134 of file camera_depth_sensor.h.

◆ limit2DPoint()

virtual cv::Point jsk_recognition_utils::CameraDepthSensor::limit2DPoint ( const cv::Point p) const
inlinevirtual

force point to be inside of field of view.

Definition at line 183 of file camera_depth_sensor.h.

◆ setCameraInfo()

virtual void jsk_recognition_utils::CameraDepthSensor::setCameraInfo ( const sensor_msgs::CameraInfo &  info)
inlinevirtual

Definition at line 115 of file camera_depth_sensor.h.

◆ width()

virtual int jsk_recognition_utils::CameraDepthSensor::width ( ) const
inlinevirtual

width of camera in pixels.

Definition at line 165 of file camera_depth_sensor.h.

Member Data Documentation

◆ camera_info_

sensor_msgs::CameraInfo jsk_recognition_utils::CameraDepthSensor::camera_info_
protected

Definition at line 191 of file camera_depth_sensor.h.

◆ model_

image_geometry::PinholeCameraModel jsk_recognition_utils::CameraDepthSensor::model_
protected

Definition at line 190 of file camera_depth_sensor.h.


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


jsk_recognition_utils
Author(s):
autogenerated on Tue Jan 7 2025 04:04:52