74 virtual void operator () (
const osg::Camera& )
const;
83 : img(img), show(show), scale(scale), name(name){
139 virtual const osg::Image*
getImage()
const {
return cameraImages.back().img;}
std::vector< CameraImage > CameraImages
Definition: camera.h:91
float draw
whether to draw a physical camera object
Definition: camera.h:56
Data structure for accessing the ODE.
Definition: odehandle.h:44
float behind
distance of which the camera is behind the actually drawn position (to aviod near clipping) ...
Definition: camera.h:55
virtual void update()
Definition: camera.cpp:145
bool show
whether to show the image on the screen
Definition: camera.h:58
float scale
scaling for display
Definition: camera.h:59
Matrixd Matrix
Definition: osgforwarddecl.h:47
Camera(const CameraConf &conf=getDefaultConf())
Creates a camera.
Definition: camera.cpp:59
A Robot Camera.
Definition: camera.h:69
int width
horizontal resolution (power of 2)
Definition: camera.h:51
PostDrawCallback(Camera *cam)
Definition: camera.h:72
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual ~Camera()
Definition: camera.cpp:66
std::string name
name of the camera
Definition: camera.h:60
structure to store the image data and information for display
Definition: camera.h:80
virtual void setPose(const osg::Matrix &pose)
changes the relative pose of the camera
Definition: camera.cpp:136
Graphical box.
Definition: osgprimitive.h:141
std::vector< ImageProcessor * > ImageProcessors
Definition: camera.h:46
float camSize
size of the physical camera object
Definition: camera.h:57
virtual osg::Camera * getRRTCam()
Definition: camera.h:141
CameraImage()
Definition: camera.h:81
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
float scale
scaling for display
Definition: camera.h:87
float fov
field of view in degree (opening angle of lenses)
Definition: camera.h:53
bool isInitialized()
Definition: camera.h:145
CameraImage(osg::Image *img, bool show, float scale, const std::string &name)
Definition: camera.h:82
static CameraConf getDefaultConf()
Definition: camera.h:102
virtual osg::Matrix getPose()
relative pose of the camera
Definition: camera.cpp:141
Base class for image processing units.
Definition: imageprocessor.h:39
std::string name
name of the image
Definition: camera.h:88
void removeProcessors()
removes and deletes all processor
Definition: camera.cpp:45
ImageProcessors processors
list of image processors that filter the raw image
Definition: camera.h:61
Graphical cylinder.
Definition: osgprimitive.h:215
float anamorph
anamorph ratio of focal length in vertical and horizontal direction
Definition: camera.h:54
virtual const CameraImages & getImages() const
all images (raw and processed)
Definition: camera.h:136
osg::Image * img
Definition: camera.h:85
virtual void init(const OdeHandle &odeHandle, const OsgHandle &osgHandle, Primitive *body, const osg::Matrix &pose)
initializes the camera.
Definition: camera.cpp:73
virtual const osg::Image * getImage() const
last image of processing stack
Definition: camera.h:139
bool show
whether to show the image on the screen
Definition: camera.h:86
Camera * cam
Definition: camera.h:75
int c
Definition: hexapod.cpp:56
virtual void operator()(const osg::Camera &) const
Definition: camera.cpp:52
int height
vertical resolution (power of 2)
Definition: camera.h:52