#include <GPSSensor.h>
Public Member Functions | |
double | depthBelowWater () |
osg::Vec3d | getMeasurement () |
double | getStandardDeviation () |
int | getTFTransform (tf::Pose &pose, std::string &parent) |
GPSSensor (osgOceanScene *oscene, std::string sensor_name, std::string parentName, osg::Node *parent, osg::Matrixd rMl, double std=0) | |
virtual | ~GPSSensor () |
Public Attributes | |
std::string | name |
std::string | parentLinkName |
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 25 of file GPSSensor.h.
GPSSensor::GPSSensor | ( | osgOceanScene * | oscene, |
std::string | sensor_name, | ||
std::string | parentName, | ||
osg::Node * | parent, | ||
osg::Matrixd | rMl, | ||
double | std = 0 |
||
) | [inline] |
Constructor
name | the name of the GPS sensor |
parentName | the name of the link that holds the GPS 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 38 of file GPSSensor.h.
virtual GPSSensor::~GPSSensor | ( | ) | [inline, virtual] |
Definition at line 56 of file GPSSensor.h.
double GPSSensor::depthBelowWater | ( | ) |
Returns the depth of the sensor (in meters) under the water
Definition at line 32 of file GPSSensor.cpp.
osg::Vec3d GPSSensor::getMeasurement | ( | ) |
Definition at line 19 of file GPSSensor.cpp.
double GPSSensor::getStandardDeviation | ( | ) | [inline] |
Definition at line 48 of file GPSSensor.h.
int GPSSensor::getTFTransform | ( | tf::Pose & | pose, |
std::string & | parent | ||
) |
Definition at line 38 of file GPSSensor.cpp.
std::string GPSSensor::name |
Definition at line 29 of file GPSSensor.h.
osg::ref_ptr<osg::Node> GPSSensor::node_ [private] |
Definition at line 65 of file GPSSensor.h.
osg::ref_ptr<osgOceanScene> GPSSensor::oscene_ [private] |
Definition at line 61 of file GPSSensor.h.
osg::ref_ptr<osg::Node> GPSSensor::parent_ [private] |
Definition at line 62 of file GPSSensor.h.
std::string GPSSensor::parentLinkName |
Definition at line 29 of file GPSSensor.h.
osg::Matrixd GPSSensor::rMl_ [private] |
Definition at line 63 of file GPSSensor.h.
boost::mt19937 GPSSensor::rng_ [private] |
Boost random number generator.
Definition at line 67 of file GPSSensor.h.
double GPSSensor::std_ [private] |
Definition at line 64 of file GPSSensor.h.