6#ifndef YARP_ODOMETRY2D_NWS_YARP_H
7#define YARP_ODOMETRY2D_NWS_YARP_H
18#include <yarp/rosmsg/geometry_msgs/PolygonStamped.h>
19#include <yarp/rosmsg/nav_msgs/Odometry.h>
20#include <yarp/rosmsg/tf2_msgs/TFMessage.h>
22#ifndef _USE_MATH_DEFINES
23#define _USE_MATH_DEFINES
26#define DEG2RAD M_PI/180.0
27#define DEFAULT_THREAD_PERIOD 0.02
102 bool close()
override;
116 std::string m_topicName;
117 std::string m_nodeName;
118 std::string m_odomFrame;
119 std::string m_baseFrame;
120 bool m_enable_publish_tf =
true;
#define DEFAULT_THREAD_PERIOD
Odometry2D_nws_ros: A ros nws to get odometry and publish it on a ros topic. The attached device must...
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
bool detach() override
Detach the object (you must have first called attach).
bool threadInit() override
Initialization method.
void run() override
Loop function.
void threadRelease() override
Release method.
bool attach(yarp::dev::PolyDriver *driver) override
Attach to another object.
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.