Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
jafar::stereosimu::Stereosimu Class Reference

A class for representing a simulation of stereo For moment, we have a base DTM and we compute some 3d Image on the base of this DTM and a model of camera. More...


Detailed Description

A class for representing a simulation of stereo For moment, we have a base DTM and we compute some 3d Image on the base of this DTM and a model of camera.

For moment, the camera model is pretty basic (we consider an uniform disposition of point).

Definition at line 65 of file Stereosimu.hpp.

#include <Stereosimu.hpp>

List of all members.

Public Member Functions

 Stereosimu (jafar::geom::T3D &s2m, double delta_angle, double angle, double max)
 A constructor.
 ~Stereosimu ()
 The destructor.
void load_dtm (const std::string &path)
 Load the base DTM (aka the DTM that the camera will 'see')
void dtm_scale (double scale)
 Set the scale of the dtm (if we don't want the defaut one (read from the file)).
double dtm_scale () const
 Get the scale of the dtm.
double cam_angle () const
 Get the max angle of the camera.
void cam_angle (double angle)
 Set the max angle of the simulated camera.
const jafar::geom::T3Dcam_transfo () const
 Get the transformation between the robot and the camera (const version)
jafar::geom::T3Dcam_transfo ()
 Get the transformation between the robot and the camera.
void cam_transfo (jafar::geom::T3D &t3d)
 Set the transformation between the robot and the camera.
void get_im3d (jafar::geom::T3D &m2r, jafar::calife::Image3d &im3d)
 Compute the image that the camera sees.

Private Member Functions

void clear_dtm ()
void update_dtm_info ()
bool get_intersection (Point &A, Point &B, Point &res)
bool check_point (Point &pt)

Private Attributes

geom::T3DEuler _sensorToMain
double _max_vision
double _cam_angle_delta
double _cam_angle
std::vector< CosSin_cos_sin_table
jafar::dtm::Dtm_dtm
double _dtm_scale
double _dtm_x_orig
double _dtm_y_orig

Constructor & Destructor Documentation

jafar::stereosimu::Stereosimu::Stereosimu ( jafar::geom::T3D s2m,
double  delta_angle,
double  angle,
double  max 
)

A constructor.

Parameters:
s2mdescribes the transformation between the robot and the simulated camera
delta_angledescribes the difference between two mesures of the angle
angledescribe the camera angle
maxrepresents the max distance seen by the camera

Member Function Documentation

Get the max angle of the camera.

Returns:
_cam_angle

Set the max angle of the simulated camera.

It is here that we precompute the _cos_sin_table.

Parameters:
anglerepresents the new max angle
Returns:
Nothing.
_cam_angle and _cos_sin_table are modified.

Get the transformation between the robot and the camera (const version)

Returns:
a const copy of _sensorToMain

Get the transformation between the robot and the camera.

Returns:
_sensorToMain

Set the transformation between the robot and the camera.

Parameters:
t3drepresents the new transformation
Returns:
Nothing.
_sensorToMain is modified.

Set the scale of the dtm (if we don't want the defaut one (read from the file)).

Parameters:
scalerepresents the new scale of dtm
Returns:
Nothing.
_dtm_scale is modified

Get the scale of the dtm.

Returns:
_dtm_scale

Compute the image that the camera sees.

Parameters:
m2rrepresents the position of the robot in the global frame
im3drepresents the resulting image
Returns:
Nothing.
im3d is modified
void jafar::stereosimu::Stereosimu::load_dtm ( const std::string &  path)

Load the base DTM (aka the DTM that the camera will 'see')

Parameters:
pathrepresents the ASCII file from which it can read the base DTM
Returns:
Nothing.
_dtm is modified

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:51 for Jafar by doxygen 1.7.6.1
LAAS-CNRS