Public Member Functions | Protected Member Functions
StereoCameraSensor Class Reference

Stereo camera sensor. More...

#include <StereoCameraSensor.hh>

Inheritance diagram for StereoCameraSensor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 StereoCameraSensor (Body *body)
 Constructor.
virtual ~StereoCameraSensor ()
 Destructor.
virtual std::string GetMaterialName () const
 Return the material the camera renders to.
virtual const unsigned char * GetImageData (unsigned int i=0)
 Get a pointer to the image data.
const float * GetDepthData (unsigned int i=0)
 Get a point to the depth data.
double GetBaseline () const
 Get the baselien of the camera.

Protected Member Functions

virtual void LoadChild (XMLConfigNode *node)
 Load the camera using parameter from an XMLConfig node.
virtual void SaveChild (std::string &prefix, std::ostream &stream)
 Save the sensor info in XML format.
virtual void InitChild ()
 Initialize the camera.
virtual void UpdateChild ()
 Update the sensor information.
virtual void FiniChild ()
 Finalize the camera.
virtual void SaveFrame ()

Detailed Description

Stereo camera sensor.

This sensor is used for simulating a stereo camera.


Member Function Documentation

const float* GetDepthData ( unsigned int  i = 0)

Get a point to the depth data.

Parameters:
i0=left, 1=right
virtual const unsigned char* GetImageData ( unsigned int  i = 0) [virtual]

Get a pointer to the image data.

Parameters:
i0=left, 1=right
virtual void LoadChild ( XMLConfigNode *  node) [protected, virtual]

Load the camera using parameter from an XMLConfig node.

Parameters:
nodeThe XMLConfig node

The documentation for this class was generated from the following file: