#include <VirtualCamera.h>
Classes | |
class | MyNodeTrackerCallback |
Public Member Functions | |
void | createCamera () |
int | getTFTransform (tf::Pose &pose, std::string &parent) |
osg::ref_ptr< osgWidget::Window > | getWidgetWindow () |
void | init (osg::Group *uwsim_root, std::string name, std::string parentName, osg::Node *trackNode, int width, int height, double baseline, std::string frameId, Parameters *params, int range, double fov, double aspectRatio, double near, double far, int bw, int widget, SceneBuilder *oscene, float std) |
void | loadShaders (SceneBuilder *oscene) |
void | showPath (double rate) |
VirtualCamera (osg::Group *uwsim_root, std::string name, std::string parentName, osg::Node *trackNode, int width, double fov, double range) | |
VirtualCamera (osg::Group *uwsim_root, std::string name, std::string parentName, osg::Node *trackNode, int width, int height, double fov, double aspectRatio) | |
VirtualCamera (osg::Group *uwsim_root, std::string name, std::string parentName, osg::Node *trackNode, int width, int height, double baseline, std::string frameId, double fov, SceneBuilder *oscene, float std, Parameters *params, int range, int bw) | |
VirtualCamera () | |
Public Attributes | |
double | aspectRatio |
double | baseline |
int | bw |
double | cx |
double | cy |
intrinsic parameters | |
osg::ref_ptr< osg::Image > | depthTexture |
double | far |
double | fov |
std::string | frameId |
double | fx |
double | fy |
int | height |
double | k |
std::string | name |
double | near |
osg::ref_ptr < MyNodeTrackerCallback > | node_tracker |
int | paramsOn |
std::string | parentLinkName |
int | range |
osg::ref_ptr< osg::Image > | renderTexture |
float | std |
osg::ref_ptr< osg::Camera > | textureCamera |
osg::Node * | trackNode |
double | Tx |
double | Ty |
osg::ref_ptr< osg::Group > | uwsim_root |
int | widget |
int | width |
A camera associated to a viewer
Definition at line 43 of file VirtualCamera.h.
VirtualCamera::VirtualCamera | ( | osg::Group * | uwsim_root, |
std::string | name, | ||
std::string | parentName, | ||
osg::Node * | trackNode, | ||
int | width, | ||
double | fov, | ||
double | range | ||
) |
Definition at line 147 of file VirtualCamera.cpp.
VirtualCamera::VirtualCamera | ( | osg::Group * | uwsim_root, |
std::string | name, | ||
std::string | parentName, | ||
osg::Node * | trackNode, | ||
int | width, | ||
int | height, | ||
double | fov, | ||
double | aspectRatio | ||
) |
Definition at line 155 of file VirtualCamera.cpp.
VirtualCamera::VirtualCamera | ( | osg::Group * | uwsim_root, |
std::string | name, | ||
std::string | parentName, | ||
osg::Node * | trackNode, | ||
int | width, | ||
int | height, | ||
double | baseline, | ||
std::string | frameId, | ||
double | fov, | ||
SceneBuilder * | oscene, | ||
float | std, | ||
Parameters * | params = NULL , |
||
int | range = 0 , |
||
int | bw = 0 |
||
) |
Definition at line 161 of file VirtualCamera.cpp.
Definition at line 84 of file VirtualCamera.cpp.
void VirtualCamera::createCamera | ( | void | ) |
Definition at line 167 of file VirtualCamera.cpp.
int VirtualCamera::getTFTransform | ( | tf::Pose & | pose, |
std::string & | parent | ||
) |
Definition at line 304 of file VirtualCamera.cpp.
osg::ref_ptr< osgWidget::Window > VirtualCamera::getWidgetWindow | ( | ) | [virtual] |
Implements CustomWidget.
Definition at line 289 of file VirtualCamera.cpp.
void VirtualCamera::init | ( | osg::Group * | uwsim_root, |
std::string | name, | ||
std::string | parentName, | ||
osg::Node * | trackNode, | ||
int | width, | ||
int | height, | ||
double | baseline, | ||
std::string | frameId, | ||
Parameters * | params, | ||
int | range, | ||
double | fov, | ||
double | aspectRatio, | ||
double | near, | ||
double | far, | ||
int | bw, | ||
int | widget, | ||
SceneBuilder * | oscene, | ||
float | std | ||
) |
Definition at line 88 of file VirtualCamera.cpp.
void VirtualCamera::loadShaders | ( | SceneBuilder * | oscene | ) |
Definition at line 237 of file VirtualCamera.cpp.
void VirtualCamera::showPath | ( | double | rate | ) | [inline] |
Definition at line 200 of file VirtualCamera.h.
double VirtualCamera::aspectRatio |
Definition at line 170 of file VirtualCamera.h.
double VirtualCamera::baseline |
Definition at line 171 of file VirtualCamera.h.
Definition at line 175 of file VirtualCamera.h.
double VirtualCamera::cx |
Definition at line 169 of file VirtualCamera.h.
double VirtualCamera::cy |
intrinsic parameters
Definition at line 169 of file VirtualCamera.h.
osg::ref_ptr<osg::Image> VirtualCamera::depthTexture |
Definition at line 180 of file VirtualCamera.h.
double VirtualCamera::far |
Definition at line 170 of file VirtualCamera.h.
double VirtualCamera::fov |
Definition at line 170 of file VirtualCamera.h.
std::string VirtualCamera::frameId |
Definition at line 173 of file VirtualCamera.h.
double VirtualCamera::fx |
Definition at line 169 of file VirtualCamera.h.
double VirtualCamera::fy |
Definition at line 169 of file VirtualCamera.h.
Definition at line 168 of file VirtualCamera.h.
double VirtualCamera::k |
Definition at line 170 of file VirtualCamera.h.
std::string VirtualCamera::name |
Definition at line 162 of file VirtualCamera.h.
double VirtualCamera::near |
Definition at line 170 of file VirtualCamera.h.
osg::ref_ptr<MyNodeTrackerCallback> VirtualCamera::node_tracker |
Definition at line 166 of file VirtualCamera.h.
Definition at line 174 of file VirtualCamera.h.
std::string VirtualCamera::parentLinkName |
Definition at line 162 of file VirtualCamera.h.
Definition at line 168 of file VirtualCamera.h.
osg::ref_ptr<osg::Image> VirtualCamera::renderTexture |
Definition at line 179 of file VirtualCamera.h.
float VirtualCamera::std |
Definition at line 177 of file VirtualCamera.h.
osg::ref_ptr<osg::Camera> VirtualCamera::textureCamera |
Definition at line 164 of file VirtualCamera.h.
osg::Node* VirtualCamera::trackNode |
Definition at line 165 of file VirtualCamera.h.
double VirtualCamera::Tx |
Definition at line 172 of file VirtualCamera.h.
double VirtualCamera::Ty |
Definition at line 172 of file VirtualCamera.h.
osg::ref_ptr<osg::Group> VirtualCamera::uwsim_root |
Definition at line 163 of file VirtualCamera.h.
Definition at line 176 of file VirtualCamera.h.
Definition at line 168 of file VirtualCamera.h.