#include <GPSSensor.h>
Public Member Functions | |
double | depthBelowWater () |
osg::Vec3d | getMeasurement () |
double | getStandardDeviation () |
GPSSensor (osgOceanScene *oscene, std::string sensor_name, osg::Node *parent, osg::Matrixd rMl, double std=0) | |
virtual | ~GPSSensor () |
Public Attributes | |
std::string | name |
Private Attributes | |
osg::ref_ptr< osg::Node > | node_ |
osg::ref_ptr< osgOceanScene > | oscene_ |
osg::ref_ptr< osg::Node > | parent_ |
osg::Matrixd | rMl_ |
boost::mt19937 | rng_ |
Boost random number generator. | |
double | std_ |
Definition at line 24 of file GPSSensor.h.
GPSSensor::GPSSensor | ( | osgOceanScene * | oscene, |
std::string | sensor_name, | ||
osg::Node * | parent, | ||
osg::Matrixd | rMl, | ||
double | std = 0 |
||
) | [inline] |
Constructor
name | the name of the pressure sensor |
parent | the node of the scene graph that holds the sensor |
rMl | the sensor measures are given with respect to the root (r). Use rMl to transform them to another frame ('l' is the new frame, typically the localized world) |
std | the standard deviation on the sensor measures |
Definition at line 36 of file GPSSensor.h.
virtual GPSSensor::~GPSSensor | ( | ) | [inline, virtual] |
Definition at line 53 of file GPSSensor.h.
double GPSSensor::depthBelowWater | ( | ) |
Returns the depth of the sensor (in meters) under the water
Definition at line 30 of file GPSSensor.cpp.
osg::Vec3d GPSSensor::getMeasurement | ( | ) |
Definition at line 17 of file GPSSensor.cpp.
double GPSSensor::getStandardDeviation | ( | ) | [inline] |
Definition at line 45 of file GPSSensor.h.
std::string GPSSensor::name |
Definition at line 28 of file GPSSensor.h.
osg::ref_ptr<osg::Node> GPSSensor::node_ [private] |
Definition at line 62 of file GPSSensor.h.
osg::ref_ptr<osgOceanScene> GPSSensor::oscene_ [private] |
Definition at line 58 of file GPSSensor.h.
osg::ref_ptr<osg::Node> GPSSensor::parent_ [private] |
Definition at line 59 of file GPSSensor.h.
osg::Matrixd GPSSensor::rMl_ [private] |
Definition at line 60 of file GPSSensor.h.
boost::mt19937 GPSSensor::rng_ [private] |
Boost random number generator.
Definition at line 64 of file GPSSensor.h.
double GPSSensor::std_ [private] |
Definition at line 61 of file GPSSensor.h.