Public Member Functions | Public Attributes | Private Attributes
GPSSensor Class Reference

#include <GPSSensor.h>

List of all members.

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< osgOceanSceneoscene_
osg::ref_ptr< osg::Node > parent_
osg::Matrixd rMl_
boost::mt19937 rng_
 Boost random number generator.
double std_

Detailed Description

Definition at line 24 of file GPSSensor.h.


Constructor & Destructor Documentation

GPSSensor::GPSSensor ( osgOceanScene oscene,
std::string  sensor_name,
osg::Node *  parent,
osg::Matrixd  rMl,
double  std = 0 
) [inline]

Constructor

Parameters:
namethe name of the pressure sensor
parentthe node of the scene graph that holds the sensor
rMlthe 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)
stdthe 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.


Member Function Documentation

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.


Member Data Documentation

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.


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


uwsim
Author(s): Mario Prats
autogenerated on Mon Oct 6 2014 08:24:07