YARP
Yet Another Robot Platform
IOdometry2D.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_IODOMETRY2D_H
7#define YARP_DEV_IODOMETRY2D_H
8
9#include <yarp/dev/api.h>
11
12namespace yarp::dev::Nav2D {
13class IOdometry2D;
14} // namespace yarp
15
22{
23public:
27 virtual ~IOdometry2D();
28
34 virtual bool getOdometry(yarp::dev::OdometryData& odom, double* timestamp = nullptr) = 0;
35
40 virtual bool resetOdometry() = 0;
41};
42
43#endif // YARP_DEV_IODOMETRY2D_H
IOdometry2D interface.
Definition: IOdometry2D.h:22
virtual bool getOdometry(yarp::dev::OdometryData &odom, double *timestamp=nullptr)=0
Gets the odometry of the robot, including its velocity expressed in the world and in the local refere...
virtual bool resetOdometry()=0
Resets the odometry of the robot to zero.
virtual ~IOdometry2D()
Destructor.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18