MipResources::Camera::Camera | ( | int | argc, | |
const char * | argv[] | |||
) | [inherited] |
Constructor with options.
MipResources::Camera::Camera | ( | ) | [inline, inherited] |
Default constructor.
MipResources::CameraCVD::CameraCVD | ( | int | argc, | |
const char * | argv[] | |||
) | [inherited] |
Constructor with options.
MipResources::CameraCVDOptions::CameraCVDOptions | ( | ) | [inherited] |
MipResources::CameraOptions::CameraOptions | ( | ) | [inherited] |
MipResources::CameraPar::CameraPar | ( | Decimal | f = 0 , |
|
Decimal | w = 0 , |
|||
Decimal | h = 0 , |
|||
Decimal | rate = 0 , |
|||
Pose3D | mPose = Pose3D() , |
|||
Decimal | skew = 0 , |
|||
Decimal | fov = 0 , |
|||
Decimal | pPX = 0 , |
|||
Decimal | pPY = 0 , |
|||
Decimal | pR = 0 | |||
) | [inherited] |
Constructor.
f | Actual focal length. |
MipResources::CameraROS::CameraROS | ( | int | argc, | |
char ** | argv, | |||
int | opt | |||
) | [inherited] |
Constructor.
MipResources::CameraROS::CameraROS | ( | int | argc, | |
const char ** | argv | |||
) | [inherited] |
Constructor.
void MipResources::CameraROS::cameraROSCallback | ( | const sensor_msgs::Image::ConstPtr & | msg | ) | [inherited] |
void MipResources::CameraROS::cameraROSInfoCallback | ( | const sensor_msgs::CameraInfo::ConstPtr & | msg | ) | [inherited] |
MipResources::CameraRosOptions::CameraRosOptions | ( | ) | [inherited] |
MipResources::CameraROSPar::CameraROSPar | ( | const CameraROSPar & | A | ) | [inherited] |
Copy constructor.
MipResources::CameraROSPar::CameraROSPar | ( | ) | [inherited] |
Default constructor.
MipResources::CameraVar::CameraVar | ( | IplImage * | i, | |
Position3D | initPos, | |||
Orientation3D | initOri | |||
) | [inherited] |
Constructor with arguments.
i | IplImage to initialize structures. | |
initPos | Initial position (Position3D). | |
initOri | Initial Orientation. |
MipResources::CameraVar::CameraVar | ( | ) | [inherited] |
Default constructor.
Decimal MipResources::CameraPar::focLength | ( | ) | const [inherited] |
Gets focalLength.
CameraPar3DArma * MipResources::CameraROSPar::getCamPars | ( | ) | [inherited] |
Get a pointer to camera infos.
bool MipResources::CameraCVD::getFrame | ( | Image< Rgb< byte > > *& | s, | |
MipBaselib::Time & | t | |||
) | [virtual, inherited] |
Gets last frame available from video stream.
i | An Image <Rgb<byte> > object (see CVD documentation for details) in which the frame retrieved from camera is stored, if return is true. | |
t | A double in which the timestamp relative to frame is stored, if return is true. |
bool MipResources::CameraCVD::getFrame | ( | cv::Mat & | s, | |
Time & | t | |||
) | [virtual, inherited] |
Gets last frame available from video stream.
i | A cv::Mat object (see OpenCV documentation for details) in which the frame retrieved from camera is stored, if return is true. | |
t | A double in which the timestamp relative to frame is stored, if return is true. |
Reimplemented from MipResources::Camera.
bool MipResources::CameraCVD::getFrame | ( | IplImage *& | s, | |
MipBaselib::Time & | t | |||
) | [virtual, inherited] |
Gets last frame available from video stream.
i | An IplImage object (see OpenCV documentation for details) in which the frame retrieved from camera is stored, if return is true. | |
t | A double in which the timestamp relative to frame is stored, if return is true. |
Reimplemented from MipResources::Camera.
bool MipResources::Camera::getFrame | ( | cv::Mat & | s, | |
Time & | t | |||
) | [virtual, inherited] |
Gets last frame available from video stream.
i | A cv::Mat object (see OpenCV documentation for details) in which the frame retrieved from camera is stored, if return is true. | |
t | A double in which the timestamp relative to frame is stored, if return is true. |
Reimplemented in MipResources::CameraCVD.
bool MipResources::Camera::getFrame | ( | IplImage *& | s, | |
MipBaselib::Time & | t | |||
) | [virtual, inherited] |
Gets last frame available from video stream (old version).
i | An IplImage object (see OpenCV documentation for details) in which the frame retrieved from camera is stored, if return is true. | |
t | A double in which the timestamp relative to frame is stored, if return is true. |
Reimplemented in MipResources::CameraCVD.
OptionGroupsType MipResources::CameraRosOptions::getGroup | ( | ) | [inline, virtual, inherited] |
Reimplemented from Options.
OptionGroupsType MipResources::CameraCVDOptions::getGroup | ( | ) | [inline, virtual, inherited] |
Reimplemented from Options.
void MipResources::CameraROS::getImage | ( | cv::Mat & | image, | |
ros::Time & | time | |||
) | [inherited] |
Get the current time and image.
[out] | image | Image |
[out] | time | Time |
cv::Mat MipResources::CameraROS::getImage | ( | ) | [inherited] |
Get the last saved current image.
IplImage * MipResources::CameraVar::getImage | ( | ) | [inherited] |
Accesses _img pointer.
ros::Time MipResources::CameraROS::getImageTime | ( | ) | [inherited] |
Get the last saved time associated with image.
Time MipResources::CameraVar::getInitTime | ( | ) | [inherited] |
Gets lastTime value.
Time MipResources::CameraVar::getLastTime | ( | ) | [inherited] |
Gets lastTime value.
string MipResources::CameraRosOptions::getObjectName | ( | ) | const [inline, virtual, inherited] |
string MipResources::CameraCVDOptions::getObjectName | ( | ) | const [inline, virtual, inherited] |
string MipResources::CameraOptions::getObjectName | ( | ) | const [inline, virtual, inherited] |
virtual CameraPar* MipResources::Camera::getPar | ( | void | ) | [inline, virtual, inherited] |
ResourcePlate MipResources::CameraROS::getPlate | ( | ) | const [inline, virtual, inherited] |
ResourcePlate MipResources::CameraCVD::getPlate | ( | ) | const [inline, virtual, inherited] |
ResourcePlate MipResources::Camera::getPlate | ( | ) | const [virtual, inherited] |
Returns ResourcePlate.
Implements MipResources::Resource.
Reimplemented in MipResources::CameraCVD, and MipResources::CameraROS.
virtual timeval MipResources::CameraCVD::getTimeStamp | ( | ) | [inline, virtual, inherited] |
Reimplemented from MipResources::Camera.
virtual timeval MipResources::Camera::getTimeStamp | ( | ) | [inline, virtual, inherited] |
Reimplemented in MipResources::CameraCVD.
virtual CameraCVDVar* MipResources::CameraCVD::getVar | ( | void | ) | [inline, virtual, inherited] |
virtual CameraVar* MipResources::Camera::getVar | ( | void | ) | [inline, virtual, inherited] |
Constructor with options.
Reimplemented in MipResources::CameraCVD.
void MipResources::CameraROSPar::initCamPars | ( | const Decimal & | info1, | |
const Decimal & | info2, | |||
const Decimal & | info3, | |||
int | opt, | |||
const Position2DArma & | pp = Position2DArma() , |
|||
const Decimal | sk = 0.0 , |
|||
const Roto3DHomoArma & | rcfw = Roto3DHomoArma(IDENTITY_ARMA_MATRIX) , |
|||
CanonicalCameraArmaMatrix | cc = PIXEL_CAMERA_ARMA_MATRIX | |||
) | [inherited] |
Initialize the info of the camera.
[in] | info1 | First information parameter. One between width (w), height (h), focal length (f), fov width (fovW) and fov height (fovH) |
[in] | info2 | Second information parameter. One between width (w), height (h), focal length (f), fov width (fovW) and fov height (fovH) |
[in] | info3 | Third information parameter. One between width (w), height (h), focal length (f), fov width (fovW) and fov height (fovH) |
[in] | opt | Integer option to select which kind of input one wants to set. 0 = [w h f]; 1 = [w h fovW]; 2 = [w h fovH]; 3 = [w fovW fovH]; 4 = [w fovH f]; 5 = [fovW fovH f]; 6 = [h fovW fovH]; 7 = [h fovW f] |
[in] | &pp | Position of the principal point in pixels |
[in] | &rcfw | Rotation matrix in homogeneous coordinate from world to camera reference frame |
[in] | cc | Inputs in pixels (default=PIXEL_CAMERA_ARMA_MATRIX) or in meters (METRIC_CAMERA_ARMA_MATRIX) |
CameraROSPar & MipResources::CameraROSPar::operator= | ( | const CameraROSPar & | A | ) | [inherited] |
Assignment operator.
Orientation3D* MipResources::CameraVar::orientation | ( | ) | [inline, inherited] |
Gets orientation.
Position3D* MipResources::CameraVar::position | ( | ) | [inline, inherited] |
Gets position.
bool MipResources::CameraCVD::recordLastFrame | ( | ) | [virtual, inherited] |
Records last frame available from video stream.
Reimplemented from MipResources::Camera.
bool MipResources::Camera::recordLastFrame | ( | ) | [virtual, inherited] |
Records last frame available from video stream.
Reimplemented in MipResources::CameraCVD.
virtual bool MipResources::Camera::setBrightness | ( | double | b | ) | [inline, virtual, inherited] |
Sets brightness for the video device.
b | Desired value for brightness. |
void MipResources::CameraROSPar::setCamPars | ( | MipBaselib::CameraPar3DArma * | cPar | ) | [inherited] |
Set a pointer to camera infos.
[in] | cPar | A pointer to camera info |
bool MipResources::Camera::setCodec | ( | char * | c | ) | [virtual, inherited] |
Sets codec for the video device.
c | Desired codec (string, 4 chars - see OpenCV documentation.). |
virtual bool MipResources::Camera::setContrast | ( | double | c | ) | [inline, virtual, inherited] |
Sets contrast for the video device.
c | Desired value for contrast. |
void MipResources::CameraPar::setFocLength | ( | Decimal | newF | ) | [inherited] |
Sets focalLength.
virtual bool MipResources::Camera::setFrameRate | ( | double | fr | ) | [inline, virtual, inherited] |
Sets frame rate for the video device.
fr | Desired frame rate. |
virtual bool MipResources::Camera::setHue | ( | double | h | ) | [inline, virtual, inherited] |
Sets hue for the video device.
h | Desired value for hue. |
void MipResources::CameraVar::setImage | ( | IplImage * | i | ) | [inherited] |
Sets _img pointer.
void MipResources::CameraVar::setInitTime | ( | MipBaselib::Time | t | ) | [inherited] |
Sets the initTime variable.
void MipResources::CameraVar::setLastTime | ( | MipBaselib::Time | t | ) | [inherited] |
Sets the lastTime variable.
void MipResources::CameraVar::setOrientation | ( | Orientation3D | newOri | ) | [inline, inherited] |
Sets orientation.
void MipResources::CameraVar::setPosition | ( | Position3D | newPos | ) | [inline, inherited] |
Sets position.
bool MipResources::Camera::setResolution | ( | double | w, | |
double | h | |||
) | [virtual, inherited] |
Sets resolution for the video device.
w | Desired value for width. | |
h | Desired value for height. |
virtual bool MipResources::Camera::setSaturation | ( | double | s | ) | [inline, virtual, inherited] |
Sets saturation for the video device.
s | Desired value for saturation. |
void MipResources::CameraROS::updateCallbacks | ( | ) | [inherited] |
Update all the callback created by subscribers.
virtual void MipResources::Camera::videoLoop | ( | ) | [inline, virtual, inherited] |
Video loop for acquisition thread.
MipResources::Camera::~Camera | ( | ) | [inherited] |
Destructor, deallocates VideoCapture structs.
MipResources::CameraCVD::~CameraCVD | ( | ) | [inherited] |
Destructor, deallocates structs.
MipResources::CameraROS::~CameraROS | ( | ) | [inherited] |
Destructor.
CvCapture* MipResources::Camera::_cap [protected, inherited] |
Video Capture device.
cv::Mat MipResources::CameraROS::_currCVImage [protected, inherited] |
cv::Mat MipResources::CameraROS::_currCVModImage [protected, inherited] |
vector<uint8_t> MipResources::CameraROS::_currImage [protected, inherited] |
ros::Time MipResources::CameraROS::_currImageTime [protected, inherited] |
cv::VideoCapture MipResources::Camera::_device [protected, inherited] |
Video Capture device.
bool MipResources::CameraROS::_firstImageInit [protected, inherited] |
bool MipResources::CameraROS::_firstParsInit [protected, inherited] |
Boolean to check if only once the parameters are intialized.
Image<Rgb<byte> > MipResources::CameraCVD::_frameRGB [protected, inherited] |
Image Rgb to store current frame.
cv::Mat MipResources::Camera::_image [protected, inherited] |
OpenCV matrix (used to store the image)
IplImage* MipResources::CameraVar::_img [protected, inherited] |
OpenCV image pointer.
CameraRosOptions* MipResources::CameraROS::_options [protected, inherited] |
Options for the camera.
Reimplemented from MipResources::Camera.
CameraCVDOptions MipResources::CameraCVD::_options [protected, inherited] |
Orientation3D* MipResources::CameraVar::_orientation [protected, inherited] |
CameraPar* MipResources::Camera::_par [protected, inherited] |
Abstract Camera parameters.
CameraROSPar* MipResources::CameraROS::_pars [protected, inherited] |
Position3D* MipResources::CameraVar::_position [protected, inherited] |
V4LBuffer<yuv422>* MipResources::CameraCVD::_pvb [protected, inherited] |
V4L buffer to retrieve image data.
VideoFrame<yuv422>* MipResources::CameraCVD::_pVidFrame [protected, inherited] |
VideoFrame pointer to current frame.
uint MipResources::CameraROS::_step [protected, inherited] |
ros::Subscriber* MipResources::CameraROS::_subscriberCam [protected, inherited] |
ros::Subscriber* MipResources::CameraROS::_subscriberInfoCam [protected, inherited] |
CameraVar* MipResources::Camera::_var [protected, inherited] |
Abstract Camera variables.
Reimplemented in MipResources::CameraCVD.
BoolOption* MipResources::CameraRosOptions::addId [inherited] |
int MipResources::CameraCVDVar::cam_depth [inherited] |
Camera frame color depth.
int MipResources::CameraCVDVar::cam_height [inherited] |
Camera frame height.
int MipResources::CameraCVDVar::cam_width [inherited] |
Camera frame width.
StringOption* MipResources::CameraRosOptions::cameraNode [inherited] |
StringOption* MipResources::CameraOptions::codec [inherited] |
Wheter or not start video loop.
IntOption* MipResources::CameraOptions::device [inherited] |
Number of device.
DecimalOption* MipResources::CameraCVDOptions::focal [inherited] |
Camera framerate.
IntOption* MipResources::CameraOptions::frameH [inherited] |
Frame height.
IntOption* MipResources::CameraCVDOptions::frameRate [inherited] |
Camera framerate.
IntOption* MipResources::CameraOptions::frameW [inherited] |
Frame width.
IntOption* MipResources::CameraCVDOptions::height [inherited] |
Frame height.
CvSize MipResources::CameraCVDVar::imgSize [inherited] |
OpenCV image size.
MipBaselib::Time* MipResources::CameraVar::initTime [protected, inherited] |
Mantains initial timestamp.
StringOption* MipResources::CameraCVDOptions::log_name [inherited] |
Name of video log.
BoolOption* MipResources::CameraCVDOptions::make_video_log [inherited] |
whether or not register video log.
StringOption* MipResources::CameraRosOptions::nodeName [inherited] |
StringOption* MipResources::CameraRosOptions::robotName [inherited] |
Name of the robot. One supposes that the topic this software has to subscribe are in robotName/topicName.
BoolOption* MipResources::CameraOptions::videoLoop [inherited] |
Wheter or not start video loop.
cv::VideoWriter* MipResources::CameraCVDVar::videoWriter [inherited] |
video streaming writer
IntOption* MipResources::CameraCVDOptions::width [inherited] |
Frame width.