|
Jafar
|
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...
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>
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::T3D & | cam_transfo () const |
| Get the transformation between the robot and the camera (const version) | |
| jafar::geom::T3D & | cam_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 |
| jafar::stereosimu::Stereosimu::Stereosimu | ( | jafar::geom::T3D & | s2m, |
| double | delta_angle, | ||
| double | angle, | ||
| double | max | ||
| ) |
A constructor.
| s2m | describes the transformation between the robot and the simulated camera |
| delta_angle | describes the difference between two mesures of the angle |
| angle | describe the camera angle |
| max | represents the max distance seen by the camera |
| double jafar::stereosimu::Stereosimu::cam_angle | ( | ) | const |
Get the max angle of the camera.
| void jafar::stereosimu::Stereosimu::cam_angle | ( | double | angle | ) |
Set the max angle of the simulated camera.
It is here that we precompute the _cos_sin_table.
| angle | represents the new max angle |
| const jafar::geom::T3D& jafar::stereosimu::Stereosimu::cam_transfo | ( | ) | const |
Get the transformation between the robot and the camera (const version)
Get the transformation between the robot and the camera.
| void jafar::stereosimu::Stereosimu::cam_transfo | ( | jafar::geom::T3D & | t3d | ) |
Set the transformation between the robot and the camera.
| t3d | represents the new transformation |
| void jafar::stereosimu::Stereosimu::dtm_scale | ( | double | scale | ) |
Set the scale of the dtm (if we don't want the defaut one (read from the file)).
| scale | represents the new scale of dtm |
| double jafar::stereosimu::Stereosimu::dtm_scale | ( | ) | const |
Get the scale of the dtm.
| void jafar::stereosimu::Stereosimu::get_im3d | ( | jafar::geom::T3D & | m2r, |
| jafar::calife::Image3d & | im3d | ||
| ) |
Compute the image that the camera sees.
| m2r | represents the position of the robot in the global frame |
| im3d | represents the resulting image |
| void jafar::stereosimu::Stereosimu::load_dtm | ( | const std::string & | path | ) |
Load the base DTM (aka the DTM that the camera will 'see')
| path | represents the ASCII file from which it can read the base DTM |
| Generated on Wed Oct 15 2014 00:37:51 for Jafar by doxygen 1.7.6.1 |
|