![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpWireFrameSimulator.h>
Public Types | |
| enum | vpSceneObject { THREE_PTS , CUBE , PLATE , SMALL_PLATE , RECTANGLE , SQUARE_10CM , DIAMOND , TRAPEZOID , THREE_LINES , ROAD , TIRE , PIPE , CIRCLE , SPHERE , CYLINDER , PLAN , POINT_CLOUD } |
| enum | vpSceneDesiredObject { D_STANDARD , D_CIRCLE , D_TOOL } |
| enum | vpCameraTrajectoryDisplayType { CT_LINE , CT_POINT } |
Implementation of a wire frame simulator. Compared to the vpSimulator class, it does not require third party libraries to be used.
The simulator uses several frames to display the scene in the image. There are:
The most used homogeneous matrices which describes the displacement between two frames are :
The following picture summarize all the previous information.
The simulator uses .bnd or .wrl files as 3D scene descriptors. Several scenes can be found in the data folder which is in the directory where you build ViSP.
You can move the main external view while clicking in the image. The left click enables to turn, the middle button enables to zoom and the left to translate along x and y.
The simulator is able to take into account to camera parameters. You can set the internal and external cameras parameters thanks to a vpCameraParameters.
The following example shows how it is easy to use.
Tutorials
If you are interested in using this class to achieve a visual servoing simulation, you may have a look at:
Definition at line 162 of file vpWireFrameSimulator.h.
| Enumerator | |
|---|---|
| CT_LINE | |
| CT_POINT | |
Definition at line 228 of file vpWireFrameSimulator.h.
Type of scene used to display the object at the desired pose (in the internal view).
| Enumerator | |
|---|---|
| D_STANDARD | The object displayed at the desired position is the same than the scene object defined in vpSceneObject. |
| D_CIRCLE | The object displayed at the desired position is a circle. |
| D_TOOL | A cylindrical tool is attached to the camera. |
Definition at line 220 of file vpWireFrameSimulator.h.
Type of scene used to display the object at the current position.
Definition at line 168 of file vpWireFrameSimulator.h.
| vpWireFrameSimulator::vpWireFrameSimulator | ( | ) |
Basic constructor.
Set the path to the scene files (*.bnd and *.sln) used by the simulator. If the path set in vpConfig.h in VISP_SCENES_DIR macro is not valid, the path is set from the VISP_SCENES_DIR environment variable that the user has to set.
Definition at line 170 of file vpWireFrameSimulator.cpp.
References blocked, blockedr, blockedt, blockedz, camColor, camera, cameraFactor, cameraTrajectory, camMf, camMf2, camTrajColor, camTrajType, cdMo, vpIoTools::checkDirectory(), cMo, CT_LINE, curColor, D_STANDARD, desColor, desiredObject, desiredScene, displayCamera, displayCameraTrajectory, displayDesiredObject, displayImageSimulator, displayObject, extCamChanged, f2Mf, fMc, fMo, fMoList, vpIoTools::getenv(), nbrPtLimit, object, objectImage, old_iPr, old_iPt, old_iPz, PLATE, poseList, px_ext, px_int, py_ext, py_int, vpMath::rad(), refMo, rotz, scene, sceneInitialized, vpIoTools::splitChain(), and thickness_.
Referenced by vpRobotWireFrameSimulator::vpRobotWireFrameSimulator(), and vpRobotWireFrameSimulator::vpRobotWireFrameSimulator().
|
virtual |
Basic destructor
Definition at line 224 of file vpWireFrameSimulator.cpp.
References camera, cameraTrajectory, desiredScene, displayCamera, displayDesiredObject, displayObject, fMoList, poseList, scene, and sceneInitialized.
|
inline |
Delete the history of the main camera position which are displayed in the external views.
Definition at line 303 of file vpWireFrameSimulator.h.
References cameraTrajectory, fMoList, and poseList.
|
protected |
Definition at line 119 of file vpWireFrameSimulator.cpp.
References vpDisplay::displayLine(), and thickness_.
|
protected |
Definition at line 75 of file vpWireFrameSimulator.cpp.
References vpDisplay::displayLine(), and thickness_.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), and vpRobotWireFrameSimulator::getInternalView().
| void vpWireFrameSimulator::displayTrajectory | ( | const vpImage< unsigned char > & | I, |
| const std::list< vpHomogeneousMatrix > & | list_cMo, | ||
| const std::list< vpHomogeneousMatrix > & | list_fMo, | ||
| const vpHomogeneousMatrix & | cMf ) |
Display a trajectory thanks to a list of homogeneous matrices which give the position of the camera relative to the object and the position of the object relative to the world reference frame. The trajectory is projected into the view of an external camera whose position is given in parameter.
The two lists must have the same size of homogeneous matrices must have the same size.
| I | : The image where the trajectory is displayed. |
| list_cMo | : The homogeneous matrices list containing the position of the camera relative to the object. |
| list_fMo | : The homogeneous matrices list containing the position of the object relative to the world reference frame. |
| cMf | : A homogeneous matrix which gives the position of the external camera (used to project the trajectory) relative to the world reference frame. |
Definition at line 1278 of file vpWireFrameSimulator.cpp.
References camTrajColor, camTrajType, CT_LINE, CT_POINT, vpException::dimensionError, vpDisplay::displayLine(), vpDisplay::displayPoint(), projectCameraTrajectory(), rotz, and thickness_.
| void vpWireFrameSimulator::displayTrajectory | ( | const vpImage< vpRGBa > & | I, |
| const std::list< vpHomogeneousMatrix > & | list_cMo, | ||
| const std::list< vpHomogeneousMatrix > & | list_fMo, | ||
| const vpHomogeneousMatrix & | cMf ) |
Display a trajectory thanks to a list of homogeneous matrices which give the position of the camera relative to the object and the position of the object relative to the world reference frame. The trajectory is projected into the view of an external camera whose position is given in parameter.
The two lists must have the same size of homogeneous matrices must have the same size.
| I | : The image where the trajectory is displayed. |
| list_cMo | : The homogeneous matrices list containing the position of the camera relative to the object. |
| list_fMo | : The homogeneous matrices list containing the position of the object relative to the world reference frame. |
| cMf | : A homogeneous matrix which gives the position of the external camera (used to project the trajectory) relative to the world reference frame. |
Definition at line 1325 of file vpWireFrameSimulator.cpp.
References camTrajColor, camTrajType, CT_LINE, CT_POINT, vpException::dimensionError, vpDisplay::displayLine(), vpDisplay::displayPoint(), projectCameraTrajectory(), rotz, and thickness_.
|
inline |
Get the pose between the object and the camera.
Definition at line 414 of file vpWireFrameSimulator.h.
|
inline |
Get the homogeneous matrices cMo stored to display the camera trajectory.
| cMo_history | : The list of the homogeneous matrices cMo. |
Definition at line 422 of file vpWireFrameSimulator.h.
|
inline |
Get the pose between the object and the fixed world frame.
Definition at line 435 of file vpWireFrameSimulator.h.
References fMo.
|
inline |
Get the homogeneous matrices fMo stored to display the camera trajectory.
| fMo_history | : The list of the homogeneous matrices fMo. |
Definition at line 443 of file vpWireFrameSimulator.h.
References fMoList.
|
inline |
Get the parameters of the virtual external camera.
| I | : The image used to display the view of the camera. |
Definition at line 322 of file vpWireFrameSimulator.h.
References vpMath::maximum(), vpMath::minimum(), px_ext, and py_ext.
Referenced by projectCameraTrajectory(), projectCameraTrajectory(), projectCameraTrajectory(), and projectCameraTrajectory().
|
inline |
Get the parameters of the virtual external camera.
| I | : The image used to display the view of the camera. |
Definition at line 341 of file vpWireFrameSimulator.h.
References vpMath::maximum(), vpMath::minimum(), px_ext, and py_ext.
|
inline |
Get the main external camera's position relative to the the world reference frame.
Definition at line 360 of file vpWireFrameSimulator.h.
Referenced by vpRobotWireFrameSimulator::getExternalCameraPosition().
| void vpWireFrameSimulator::getExternalImage | ( | vpImage< unsigned char > & | I | ) |
Get the external view. It corresponds to the view of the scene from a reference frame you have to set.
| I | : The image where the external view is displayed. |
Definition at line 1078 of file vpWireFrameSimulator.cpp.
References camColor, camera, cameraTrajectory, camMf, camMf2, camTrajColor, camTrajType, cMo, CT_LINE, CT_POINT, CUBE, curColor, vpDisplay::display(), display_scene(), displayCamera, displayCameraTrajectory, displayImageSimulator, vpDisplay::displayLine(), displayObject, vpDisplay::displayPoint(), extCamChanged, f2Mf, fMc, fMo, fMoList, vpImageSimulator::getImage(), getInternalCameraParameters(), vpMath::maximum(), vpMath::minimum(), navigation(), nbrPtLimit, objectImage, poseList, projectCameraTrajectory(), px_ext, py_ext, rotz, scene, vpImageSimulator::setCameraPosition(), SPHERE, and thickness_.
| void vpWireFrameSimulator::getExternalImage | ( | vpImage< unsigned char > & | I, |
| const vpHomogeneousMatrix & | cam_Mf ) |
Get an external view. The point of view is set thanks to the pose between the camera camMf and the fixed world frame.
| I | : The image where the external view is displayed. |
| cam_Mf | : The pose between the point of view and the fixed world frame. |
Definition at line 1211 of file vpWireFrameSimulator.cpp.
References camColor, camera, cMo, curColor, vpDisplay::display(), display_scene(), displayCamera, displayImageSimulator, displayObject, fMo, vpImageSimulator::getImage(), getInternalCameraParameters(), vpHomogeneousMatrix::inverse(), vpMath::maximum(), vpMath::minimum(), objectImage, px_ext, py_ext, rotz, scene, and vpImageSimulator::setCameraPosition().
Get the external view. It corresponds to the view of the scene from a reference frame you have to set.
| I | : The image where the external view is displayed. |
Definition at line 809 of file vpWireFrameSimulator.cpp.
References camColor, camera, cameraTrajectory, camMf, camMf2, camTrajColor, camTrajType, cMo, CT_LINE, CT_POINT, CUBE, curColor, vpDisplay::display(), display_scene(), displayCamera, displayCameraTrajectory, displayImageSimulator, vpDisplay::displayLine(), displayObject, vpDisplay::displayPoint(), extCamChanged, f2Mf, fMc, fMo, fMoList, vpImageSimulator::getImage(), getInternalCameraParameters(), vpMath::maximum(), vpMath::minimum(), navigation(), nbrPtLimit, objectImage, poseList, projectCameraTrajectory(), px_ext, py_ext, rotz, scene, vpImageSimulator::setCameraPosition(), SPHERE, and thickness_.
| void vpWireFrameSimulator::getExternalImage | ( | vpImage< vpRGBa > & | I, |
| const vpHomogeneousMatrix & | cam_Mf ) |
Get an external view. The point of view is set thanks to the pose between the camera camMf and the fixed world frame.
| I | : The image where the external view is displayed. |
| cam_Mf | : The pose between the point of view and the fixed world frame. |
Definition at line 943 of file vpWireFrameSimulator.cpp.
References camColor, camera, cMo, curColor, vpDisplay::display(), display_scene(), displayCamera, displayImageSimulator, displayObject, fMo, vpImageSimulator::getImage(), getInternalCameraParameters(), vpHomogeneousMatrix::inverse(), vpMath::maximum(), vpMath::minimum(), objectImage, px_ext, py_ext, rotz, scene, and vpImageSimulator::setCameraPosition().
|
inline |
Get the parameters of the virtual internal camera.
| I | : The image used to display the view of the camera. |
Definition at line 374 of file vpWireFrameSimulator.h.
References vpMath::maximum(), vpMath::minimum(), px_int, and py_int.
Referenced by getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), and getInternalImage().
|
inline |
Get the parameters of the virtual internal camera.
| I | : The image used to display the view of the camera. |
Definition at line 393 of file vpWireFrameSimulator.h.
References vpMath::maximum(), vpMath::minimum(), px_int, and py_int.
| void vpWireFrameSimulator::getInternalImage | ( | vpImage< unsigned char > & | I | ) |
Get the internal view ie the view of the camera.
| I | : The image where the internal view is displayed. |
Definition at line 1003 of file vpWireFrameSimulator.cpp.
References camMf, cdMo, cMo, curColor, D_TOOL, desColor, desiredObject, desiredScene, vpDisplay::display(), display_scene(), displayDesiredObject, displayImageSimulator, displayObject, fMo, vpImageSimulator::getImage(), getInternalCameraParameters(), vpMath::maximum(), vpMath::minimum(), vpException::notInitialized, objectImage, px_int, py_int, vpColor::red, rotz, scene, sceneInitialized, and vpImageSimulator::setCameraPosition().
Get the internal view ie the view of the camera.
| I | : The image where the internal view is displayed. |
Definition at line 734 of file vpWireFrameSimulator.cpp.
References cdMo, cMo, curColor, D_TOOL, desColor, desiredObject, desiredScene, vpDisplay::display(), display_scene(), displayDesiredObject, displayImageSimulator, displayObject, vpImageSimulator::getImage(), getInternalCameraParameters(), vpMath::maximum(), vpMath::minimum(), vpException::notInitialized, objectImage, px_int, py_int, vpColor::red, rotz, scene, sceneInitialized, and vpImageSimulator::setCameraPosition().
| void vpWireFrameSimulator::initScene | ( | const char * | obj | ) |
Initialize the simulator. It enables to choose the type of scene which will be used to display the object at the current position. The object at the desired position is not displayed.
Here you can use the scene you want. You have to set the path to a .bnd or a .wrl file which is a 3D model file.
| obj | : Path to the scene file you want to use. |
Definition at line 662 of file vpWireFrameSimulator.cpp.
References camera, cameraFactor, displayCamera, displayObject, vpException::memoryAllocationError, scene, sceneInitialized, THREE_PTS, and vpERROR_TRACE.
| void vpWireFrameSimulator::initScene | ( | const char * | obj, |
| const char * | desired_object ) |
Initialize the simulator. It enables to choose the type of scene which will be used to display the object at the current position and at the desired position.
Here you can use the scene you want. You have to set the path to a .bnd or a .wrl file which is a 3D model file.
| obj | : Path to the scene file you want to use. |
| desired_object | : Path to the scene file you want to use. |
Definition at line 429 of file vpWireFrameSimulator.cpp.
References camera, cameraFactor, D_STANDARD, desiredObject, desiredScene, displayCamera, displayDesiredObject, displayObject, vpException::memoryAllocationError, scene, sceneInitialized, THREE_PTS, and vpERROR_TRACE.
| void vpWireFrameSimulator::initScene | ( | const char * | obj, |
| const char * | desired_object, | ||
| const std::list< vpImageSimulator > & | imObj ) |
Initialize the simulator. It enables to choose the type of scene which will be used to display the object at the current position and at the desired position.
Here you can use the scene you want. You have to set the path to a .bnd or a .wrl file which is a 3D model file.
It is also possible to add a list of vpImageSimulator instances. They will be automatically projected into the image. The position of the four corners have to be given in the object frame.
| obj | : Path to the scene file you want to use. |
| desired_object | : Path to the scene file you want to use. |
| imObj | : A list of vpImageSimulator instances. |
Definition at line 503 of file vpWireFrameSimulator.cpp.
References displayImageSimulator, initScene(), and objectImage.
| void vpWireFrameSimulator::initScene | ( | const char * | obj, |
| const std::list< vpImageSimulator > & | imObj ) |
Initialize the simulator. It enables to choose the type of scene which will be used to display the object at the current position. The object at the desired position is not displayed.
Here you can use the scene you want. You have to set the path to a .bnd or a .wrl file which is a 3D model file.
It is also possible to add a list of vpImageSimulator instances. They will be automatically projected into the image. The position of the four corners have to be given in the object frame.
| obj | : Path to the scene file you want to use. |
| imObj | : A list of vpImageSimulator instances. |
Definition at line 719 of file vpWireFrameSimulator.cpp.
References displayImageSimulator, initScene(), and objectImage.
| void vpWireFrameSimulator::initScene | ( | const vpSceneObject & | obj | ) |
Initialize the simulator. It enables to choose the type of object which will be used to display the object at the current position. The object at the desired position is not displayed.
It exists several default scenes you can use. Use the vpSceneObject attributes to use them in this method. The corresponding files are stored in the "data" folder which is in the ViSP build directory.
| obj | : Type of scene used to display the object at the current position. |
Definition at line 523 of file vpWireFrameSimulator.cpp.
References camera, cameraFactor, CIRCLE, CUBE, CYLINDER, DIAMOND, displayCamera, displayDesiredObject, displayImageSimulator, displayObject, vpException::memoryAllocationError, PIPE, PLAN, PLATE, POINT_CLOUD, RECTANGLE, ROAD, scene, sceneInitialized, SMALL_PLATE, SPHERE, SQUARE_10CM, THREE_LINES, THREE_PTS, TIRE, and TRAPEZOID.
| void vpWireFrameSimulator::initScene | ( | const vpSceneObject & | obj, |
| const std::list< vpImageSimulator > & | imObj ) |
Initialize the simulator. It enables to choose the type of object which will be used to display the object at the current position. The object at the desired position is not displayed.
It exists several default scenes you can use. Use the vpSceneObject attributes to use them in this method. The corresponding files are stored in the "data" folder which is in the ViSP build directory.
It is also possible to add a list of vpImageSimulator instances. They will be automatically projected into the image. The position of the four corners have to be given in the object frame.
| obj | : Type of scene used to display the object at the current position. |
| imObj | : A list of vpImageSimulator instances. |
Definition at line 645 of file vpWireFrameSimulator.cpp.
References displayImageSimulator, initScene(), and objectImage.
| void vpWireFrameSimulator::initScene | ( | const vpSceneObject & | obj, |
| const vpSceneDesiredObject & | desired_object ) |
Initialize the simulator. It enables to choose the type of scene which will be used to display the object at the current position and at the desired position.
It exists several default scenes you can use. Use the vpSceneObject and the vpSceneDesiredObject attributes to use them in this method. The corresponding files are stored in the "data" folder which is in the ViSP build directory.
| obj | : Type of scene used to display the object at the current position. |
| desired_object | : Type of scene used to display the object at the desired pose (in the internal view). |
Definition at line 257 of file vpWireFrameSimulator.cpp.
References camera, cameraFactor, CIRCLE, CUBE, CYLINDER, D_CIRCLE, D_STANDARD, D_TOOL, desiredObject, desiredScene, DIAMOND, displayCamera, displayDesiredObject, displayImageSimulator, displayObject, vpException::memoryAllocationError, PIPE, PLAN, PLATE, POINT_CLOUD, RECTANGLE, ROAD, scene, sceneInitialized, SMALL_PLATE, SPHERE, SQUARE_10CM, THREE_LINES, THREE_PTS, TIRE, and TRAPEZOID.
Referenced by vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), initScene(), initScene(), initScene(), and initScene().
| void vpWireFrameSimulator::initScene | ( | const vpSceneObject & | obj, |
| const vpSceneDesiredObject & | desired_object, | ||
| const std::list< vpImageSimulator > & | imObj ) |
Initialize the simulator. It enables to choose the type of scene which will be used to display the object at the current position and at the desired position.
It exists several default scenes you can use. Use the vpSceneObject and the vpSceneDesiredObject attributes to use them in this method. The corresponding files are stored in the "data" folder which is in the ViSP build directory.
It is also possible to add a list of vpImageSimulator instances. They will be automatically projected into the image. The position of the four corners have to be given in the object frame.
| obj | : Type of scene used to display the object at the current position. |
| desired_object | : Type of scene used to display the object at the desired pose (in the internal view). |
| imObj | : A list of vpImageSimulator instances. |
Definition at line 410 of file vpWireFrameSimulator.cpp.
References displayImageSimulator, initScene(), and objectImage.
|
protected |
Enables to change the external camera position.
Definition at line 1445 of file vpWireFrameSimulator.cpp.
References blocked, blockedr, blockedt, blockedz, vpHomogeneousMatrix::buildFrom(), vpMouseButton::button1, vpMouseButton::button2, vpMouseButton::button3, vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplay::getClick(), vpDisplay::getClickUp(), vpDisplay::getPointerPosition(), vpMath::minimum(), old_iPr, old_iPt, old_iPz, and vpMath::rad().
|
protected |
Enables to change the external camera position.
Definition at line 1357 of file vpWireFrameSimulator.cpp.
References blocked, blockedr, blockedt, blockedz, vpHomogeneousMatrix::buildFrom(), vpMouseButton::button1, vpMouseButton::button2, vpMouseButton::button3, vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplay::getClick(), vpDisplay::getClickUp(), vpDisplay::getPointerPosition(), vpMath::minimum(), old_iPr, old_iPt, old_iPz, and vpMath::rad().
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), and getExternalImage().
|
protected |
Project the center of the internal camera into the external camera view.
Definition at line 1553 of file vpWireFrameSimulator.cpp.
References camMf, vpMeterPixelConversion::convertPoint(), vpPoint::get_x(), vpPoint::get_y(), getExternalCameraParameters(), vpHomogeneousMatrix::inverse(), rotz, vpPoint::setWorldCoordinates(), and vpForwardProjection::track().
|
protected |
Project the center of the internal camera into the external camera view.
Definition at line 1591 of file vpWireFrameSimulator.cpp.
References vpMeterPixelConversion::convertPoint(), vpPoint::get_x(), vpPoint::get_y(), getExternalCameraParameters(), vpHomogeneousMatrix::inverse(), rotz, vpPoint::setWorldCoordinates(), and vpForwardProjection::track().
|
protected |
Project the center of the internal camera into the external camera view.
Definition at line 1535 of file vpWireFrameSimulator.cpp.
References camMf, vpMeterPixelConversion::convertPoint(), vpPoint::get_x(), vpPoint::get_y(), getExternalCameraParameters(), vpHomogeneousMatrix::inverse(), rotz, vpPoint::setWorldCoordinates(), and vpForwardProjection::track().
Referenced by displayTrajectory(), displayTrajectory(), getExternalImage(), and getExternalImage().
|
protected |
Project the center of the internal camera into the external camera view.
Definition at line 1572 of file vpWireFrameSimulator.cpp.
References vpMeterPixelConversion::convertPoint(), vpPoint::get_x(), vpPoint::get_y(), getExternalCameraParameters(), vpHomogeneousMatrix::inverse(), rotz, vpPoint::setWorldCoordinates(), and vpForwardProjection::track().
|
inline |
Set the pose between the object and the fixed world frame.
| fMo_ | : The pose between the object and the fixed world frame. |
Definition at line 597 of file vpWireFrameSimulator.h.
|
inline |
Set the color used to display the camera in the external view.
| col | : The desired color. |
Definition at line 461 of file vpWireFrameSimulator.h.
References camColor.
|
inline |
Set the transformation between the camera frame and the object frame.
| cMo_ | : The pose of the object in the camera frame. |
Definition at line 467 of file vpWireFrameSimulator.h.
References fMc, fMo, vpHomogeneousMatrix::inverse(), and rotz.
|
inline |
Set the position of the the world reference frame relative to the camera.
| fMc_ | : The pose of the camera. |
Definition at line 479 of file vpWireFrameSimulator.h.
References cMo, fMo, vpHomogeneousMatrix::inverse(), and rotz.
|
inline |
Set the parameter which enables to choose the size of the main camera in the external camera views. By default this parameter is set to 1.
| factor | : The ration for the camera size. |
Definition at line 491 of file vpWireFrameSimulator.h.
References cameraFactor.
|
inline |
Set the color used to display the camera trajectory in the external view.
| col | : The desired color. |
Definition at line 499 of file vpWireFrameSimulator.h.
References camTrajColor.
|
inline |
Set the way to display the history of the main camera trajectory in the main external view. The choice is given between displaying lines and points.
| camTraj_type | : The chosen way to display the camera trajectory. |
Definition at line 508 of file vpWireFrameSimulator.h.
|
inline |
Set the color used to display the object at the current position.
| col | : The desired color. |
Definition at line 518 of file vpWireFrameSimulator.h.
References curColor.
|
inline |
Set the transformation between the desired position of the camera and the object.
| cdMo_ | : The position of the object in the desired camera frame |
Definition at line 524 of file vpWireFrameSimulator.h.
References rotz.
Referenced by vpRobotWireFrameSimulator::setDesiredCameraPosition().
|
inline |
Set the color used to display the object at the desired position.
| col | : The desired color. |
Definition at line 530 of file vpWireFrameSimulator.h.
References desColor.
|
inline |
Enable or disable the displaying of the camera trajectory in the main external camera view.
By default the trajectory is displayed.
| do_display | : Set to true to display the camera trajectory. |
Definition at line 539 of file vpWireFrameSimulator.h.
|
inline |
Set the internal camera parameters.
| cam | : The desired camera parameters. |
Definition at line 546 of file vpWireFrameSimulator.h.
References px_ext, and py_ext.
Referenced by vpSimulatorAfma6::initDisplay(), and vpSimulatorViper850::initDisplay().
|
inline |
Set the external camera point of view.
| cam_Mf | : The pose of the external camera relative to the world reference frame. |
Definition at line 557 of file vpWireFrameSimulator.h.
References vpHomogeneousMatrix::buildFrom(), camMf2, extCamChanged, vpHomogeneousMatrix::extract(), f2Mf, and rotz.
Referenced by vpRobotWireFrameSimulator::setExternalCameraPosition().
|
inline |
Specify the thickness of the graphics drawings.
Definition at line 570 of file vpWireFrameSimulator.h.
|
inline |
Set the internal camera parameters.
| cam | : The desired camera parameters. |
Definition at line 577 of file vpWireFrameSimulator.h.
|
inline |
Set the maximum number of main camera's positions which are stored. Those position can be displayed in the external camera field of view. By default this parameter is set to 1000.
| nbPt | : The desired number of position which are saved. |
Definition at line 590 of file vpWireFrameSimulator.h.
References nbrPtLimit.
|
protected |
Definition at line 265 of file vpWireFrameSimulator.h.
Referenced by navigation(), navigation(), and vpWireFrameSimulator().
|
protected |
Definition at line 262 of file vpWireFrameSimulator.h.
Referenced by navigation(), navigation(), and vpWireFrameSimulator().
|
protected |
Definition at line 264 of file vpWireFrameSimulator.h.
Referenced by navigation(), navigation(), and vpWireFrameSimulator().
|
protected |
Definition at line 263 of file vpWireFrameSimulator.h.
Referenced by navigation(), navigation(), and vpWireFrameSimulator().
|
protected |
Definition at line 246 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), vpRobotWireFrameSimulator::setCameraColor(), setCameraColor(), and vpWireFrameSimulator().
|
protected |
Definition at line 233 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), vpSimulatorAfma6::initArms(), vpSimulatorViper850::initArms(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), initScene(), initScene(), initScene(), initScene(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 280 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::initArms(), vpSimulatorViper850::initArms(), initScene(), initScene(), initScene(), initScene(), setCameraSizeFactor(), and vpWireFrameSimulator().
|
protected |
Definition at line 254 of file vpWireFrameSimulator.h.
Referenced by deleteCameraPositionHistory(), getExternalImage(), getExternalImage(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 238 of file vpWireFrameSimulator.h.
Referenced by getExternalCameraPosition(), vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), projectCameraTrajectory(), projectCameraTrajectory(), and vpWireFrameSimulator().
|
protected |
Definition at line 267 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), setExternalCameraPosition(), and vpWireFrameSimulator().
|
protected |
Definition at line 247 of file vpWireFrameSimulator.h.
Referenced by displayTrajectory(), displayTrajectory(), getExternalImage(), getExternalImage(), setCameraTrajectoryColor(), and vpWireFrameSimulator().
|
protected |
Definition at line 282 of file vpWireFrameSimulator.h.
Referenced by displayTrajectory(), displayTrajectory(), getExternalImage(), getExternalImage(), and vpWireFrameSimulator().
|
protected |
Definition at line 241 of file vpWireFrameSimulator.h.
Referenced by getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), and vpWireFrameSimulator().
|
protected |
Definition at line 240 of file vpWireFrameSimulator.h.
Referenced by get_cMo(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), setCameraPositionRelWorld(), and vpWireFrameSimulator().
|
protected |
Definition at line 248 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::setCurrentViewColor(), setCurrentViewColor(), and vpWireFrameSimulator().
|
protected |
Definition at line 249 of file vpWireFrameSimulator.h.
Referenced by getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::setDesiredViewColor(), setDesiredViewColor(), and vpWireFrameSimulator().
|
protected |
Definition at line 244 of file vpWireFrameSimulator.h.
Referenced by getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), initScene(), initScene(), and vpWireFrameSimulator().
|
protected |
Definition at line 232 of file vpWireFrameSimulator.h.
Referenced by getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), initScene(), initScene(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 277 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), vpSimulatorAfma6::initArms(), vpSimulatorViper850::initArms(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), vpRobotWireFrameSimulator::initScene(), initScene(), initScene(), initScene(), initScene(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 253 of file vpWireFrameSimulator.h.
Referenced by getExternalImage(), getExternalImage(), and vpWireFrameSimulator().
|
protected |
Definition at line 276 of file vpWireFrameSimulator.h.
Referenced by getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), initScene(), initScene(), initScene(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 278 of file vpWireFrameSimulator.h.
Referenced by getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), initScene(), initScene(), initScene(), initScene(), initScene(), initScene(), and vpWireFrameSimulator().
|
protected |
Definition at line 275 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), initScene(), initScene(), initScene(), initScene(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 284 of file vpWireFrameSimulator.h.
Referenced by getExternalImage(), getExternalImage(), setExternalCameraPosition(), and vpWireFrameSimulator().
|
protected |
Definition at line 268 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), setExternalCameraPosition(), and vpWireFrameSimulator().
|
protected |
Definition at line 237 of file vpWireFrameSimulator.h.
Referenced by getExternalImage(), getExternalImage(), setCameraPositionRelObj(), and vpWireFrameSimulator().
|
protected |
Definition at line 236 of file vpWireFrameSimulator.h.
Referenced by vpRobotWireFrameSimulator::get_cMo(), vpRobotWireFrameSimulator::get_fMo(), get_fMo(), vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpSimulatorAfma6::initialiseCameraRelativeToObject(), vpSimulatorViper850::initialiseCameraRelativeToObject(), vpSimulatorAfma6::initialiseObjectRelativeToCamera(), vpSimulatorViper850::initialiseObjectRelativeToCamera(), vpRobotWireFrameSimulator::set_fMo(), setCameraPositionRelObj(), setCameraPositionRelWorld(), and vpWireFrameSimulator().
|
protected |
Definition at line 256 of file vpWireFrameSimulator.h.
Referenced by deleteCameraPositionHistory(), get_fMo_History(), getExternalImage(), getExternalImage(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 257 of file vpWireFrameSimulator.h.
Referenced by getExternalImage(), getExternalImage(), setNbPtTrajectory(), and vpWireFrameSimulator().
|
protected |
Definition at line 243 of file vpWireFrameSimulator.h.
Referenced by vpWireFrameSimulator().
|
protected |
Definition at line 234 of file vpWireFrameSimulator.h.
Referenced by getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), initScene(), initScene(), initScene(), initScene(), and vpWireFrameSimulator().
|
protected |
Definition at line 259 of file vpWireFrameSimulator.h.
Referenced by navigation(), navigation(), and vpWireFrameSimulator().
|
protected |
Definition at line 261 of file vpWireFrameSimulator.h.
Referenced by navigation(), navigation(), and vpWireFrameSimulator().
|
protected |
Definition at line 260 of file vpWireFrameSimulator.h.
Referenced by navigation(), navigation(), and vpWireFrameSimulator().
|
protected |
Definition at line 255 of file vpWireFrameSimulator.h.
Referenced by deleteCameraPositionHistory(), get_cMo_History(), getExternalImage(), getExternalImage(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 272 of file vpWireFrameSimulator.h.
Referenced by vpRobotWireFrameSimulator::getExternalCameraParameters(), getExternalCameraParameters(), getExternalCameraParameters(), vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), setExternalCameraParameters(), and vpWireFrameSimulator().
|
protected |
Definition at line 270 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), getInternalCameraParameters(), getInternalCameraParameters(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpSimulatorAfma6::initDisplay(), vpSimulatorViper850::initDisplay(), vpSimulatorAfma6::setCameraParameters(), vpSimulatorViper850::setCameraParameters(), setInternalCameraParameters(), and vpWireFrameSimulator().
|
protected |
Definition at line 273 of file vpWireFrameSimulator.h.
Referenced by vpRobotWireFrameSimulator::getExternalCameraParameters(), getExternalCameraParameters(), getExternalCameraParameters(), vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), setExternalCameraParameters(), and vpWireFrameSimulator().
|
protected |
Definition at line 271 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), getInternalCameraParameters(), getInternalCameraParameters(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpSimulatorAfma6::initDisplay(), vpSimulatorViper850::initDisplay(), vpSimulatorAfma6::setCameraParameters(), vpSimulatorViper850::setCameraParameters(), setInternalCameraParameters(), and vpWireFrameSimulator().
|
protected |
Definition at line 239 of file vpWireFrameSimulator.h.
Referenced by vpWireFrameSimulator().
|
protected |
Definition at line 286 of file vpWireFrameSimulator.h.
Referenced by displayTrajectory(), displayTrajectory(), get_cMo(), get_cMo_History(), getExternalCameraPosition(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), projectCameraTrajectory(), projectCameraTrajectory(), projectCameraTrajectory(), projectCameraTrajectory(), setCameraPositionRelObj(), setCameraPositionRelWorld(), setDesiredCameraPosition(), setExternalCameraPosition(), and vpWireFrameSimulator().
|
protected |
Definition at line 231 of file vpWireFrameSimulator.h.
Referenced by vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getExternalImage(), getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), initScene(), initScene(), initScene(), initScene(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 251 of file vpWireFrameSimulator.h.
Referenced by getInternalImage(), getInternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpSimulatorAfma6::initDisplay(), vpSimulatorViper850::initDisplay(), initScene(), initScene(), initScene(), initScene(), vpWireFrameSimulator(), and ~vpWireFrameSimulator().
|
protected |
Definition at line 288 of file vpWireFrameSimulator.h.
Referenced by display_scene(), display_scene(), displayTrajectory(), displayTrajectory(), getExternalImage(), getExternalImage(), vpRobotWireFrameSimulator::setGraphicsThickness(), vpSimulatorAfma6::updateArticularPosition(), vpSimulatorViper850::updateArticularPosition(), and vpWireFrameSimulator().