YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::IThreeAxisMagnetometers Class Referenceabstract

Device interface to one or multiple three axis magnetometers. More...

#include <yarp/dev/MultipleAnalogSensorsInterfaces.h>

+ Inheritance diagram for yarp::dev::IThreeAxisMagnetometers:

Public Member Functions

virtual yarp::dev::ReturnValue getNrOfThreeAxisMagnetometers (size_t &num) const =0
 Get the number of magnetometers exposed by this device.
 
virtual yarp::dev::MAS_status getThreeAxisMagnetometerStatus (size_t sens_index) const =0
 Get the status of the specified sensor.
 
virtual yarp::dev::ReturnValue getThreeAxisMagnetometerName (size_t sens_index, std::string &name) const =0
 Get the name of the specified sensor.
 
virtual yarp::dev::ReturnValue getThreeAxisMagnetometerFrameName (size_t sens_index, std::string &frameName) const =0
 Get the name of the frame of the specified sensor.
 
virtual yarp::dev::ReturnValue getThreeAxisMagnetometerMeasure (size_t sens_index, yarp::sig::Vector &out, double &timestamp) const =0
 Get the last reading of the specified sensor.
 
virtual ~IThreeAxisMagnetometers ()
 

Detailed Description

Device interface to one or multiple three axis magnetometers.

Sensor Tag
ThreeAxisMagnetometers

Definition at line 203 of file MultipleAnalogSensorsInterfaces.h.

Constructor & Destructor Documentation

◆ ~IThreeAxisMagnetometers()

virtual yarp::dev::IThreeAxisMagnetometers::~IThreeAxisMagnetometers ( )
inlinevirtual

Definition at line 238 of file MultipleAnalogSensorsInterfaces.h.

Member Function Documentation

◆ getNrOfThreeAxisMagnetometers()

virtual yarp::dev::ReturnValue yarp::dev::IThreeAxisMagnetometers::getNrOfThreeAxisMagnetometers ( size_t &  num) const
pure virtual

Get the number of magnetometers exposed by this device.

Implemented in FakeIMU, BoschIMU, MultipleAnalogSensorsRemapper, and MultipleAnalogSensorsClient.

◆ getThreeAxisMagnetometerFrameName()

virtual yarp::dev::ReturnValue yarp::dev::IThreeAxisMagnetometers::getThreeAxisMagnetometerFrameName ( size_t  sens_index,
std::string &  frameName 
) const
pure virtual

Get the name of the frame of the specified sensor.

Returns
false if an error occurred, true otherwise.

Implemented in FakeIMU, BoschIMU, MultipleAnalogSensorsRemapper, and MultipleAnalogSensorsClient.

◆ getThreeAxisMagnetometerMeasure()

virtual yarp::dev::ReturnValue yarp::dev::IThreeAxisMagnetometers::getThreeAxisMagnetometerMeasure ( size_t  sens_index,
yarp::sig::Vector &  out,
double &  timestamp 
) const
pure virtual

Get the last reading of the specified sensor.

Parameters
[in]sens_indexThe index of the specified sensor (should be between 0 and getNrOfThreeAxisMagnetometers()-1).
[out]outThe requested measure. The vector should be 3-dimensional. The measure is expressed in tesla .
[out]timestampThe timestamp of the requested measure, expressed in seconds.
Returns
false if an error occurred, true otherwise.

Implemented in FakeIMU, BoschIMU, MultipleAnalogSensorsRemapper, and MultipleAnalogSensorsClient.

◆ getThreeAxisMagnetometerName()

virtual yarp::dev::ReturnValue yarp::dev::IThreeAxisMagnetometers::getThreeAxisMagnetometerName ( size_t  sens_index,
std::string &  name 
) const
pure virtual

Get the name of the specified sensor.

Returns
false if an error occurred, true otherwise.

Implemented in FakeIMU, BoschIMU, MultipleAnalogSensorsRemapper, and MultipleAnalogSensorsClient.

◆ getThreeAxisMagnetometerStatus()

virtual yarp::dev::MAS_status yarp::dev::IThreeAxisMagnetometers::getThreeAxisMagnetometerStatus ( size_t  sens_index) const
pure virtual

Get the status of the specified sensor.

Implemented in FakeIMU, BoschIMU, MultipleAnalogSensorsRemapper, and MultipleAnalogSensorsClient.


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