|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
17 ok &= m_poly->
view(m_iThreeAxisMagnetometers);
18 m_iThreeAxisMagnetometers->getThreeAxisMagnetometerFrameName(0, m_framename);
29 magfield_ros_data.
clear();
yarp::os::Publisher< yarp::rosmsg::sensor_msgs::MagneticField > m_publisher
yarp::rosmsg::geometry_msgs::Vector3 magnetic_field
#define YARP_LOG_COMPONENT(name,...)
yarp::rosmsg::std_msgs::Header header
bool view(T *&x)
Get an interface to the device driver.
const yarp::os::LogComponent & GENERICSENSORROSPUBLISHER()
const size_t m_sens_index
void write(bool forceStrict=false)
Write the current object being returned by Publisher::prepare.
void run() override
Loop function.
yarp::dev::IThreeAxisMagnetometers * m_iThreeAxisMagnetometers
Port & asPort() override
Get the concrete Port being used for communication.
virtual bool getThreeAxisMagnetometerMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const =0
Get the last reading of the specified sensor.
MagneticFieldRosPublisher: This wrapper connects to a device and publishes a ROS topic of type sensor...
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::Publisher::write.
bool isOpen() const
Check if the port has been opened.