YARP
Yet Another Robot Platform
ILocalization2D.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_ILOCALIZATION2D_H
7 #define YARP_DEV_ILOCALIZATION2D_H
8 
9 #include <yarp/os/Vocab.h>
10 #include <yarp/dev/api.h>
11 #include <yarp/dev/Map2DLocation.h>
12 #include <yarp/dev/OdometryData.h>
13 #include <yarp/sig/Matrix.h>
14 #include <vector>
15 
16 namespace yarp {
17  namespace dev {
18  namespace Nav2D {
19  class ILocalization2D;
20 
22  {
26  };
27  }
28  }
29 }
30 
37 {
38 public:
42  virtual ~ILocalization2D() {}
43 
48  virtual bool startLocalizationService() = 0;
49 
54  virtual bool stopLocalizationService() = 0;
55 
60  virtual bool getLocalizationStatus(LocalizationStatusEnum& status) = 0;
61 
66  virtual bool getEstimatedPoses(std::vector<yarp::dev::Nav2D::Map2DLocation>& poses) = 0;
67 
74 
82 
89 
90 
96  virtual bool setInitialPose(const yarp::dev::Nav2D::Map2DLocation& loc) = 0;
97 
104  virtual bool setInitialPose(const yarp::dev::Nav2D::Map2DLocation& loc, const yarp::sig::Matrix& cov) = 0;
105 };
106 
108 
114 
138 
139 
140 #endif // YARP_DEV_ILOCALIZATION2D_H
constexpr yarp::conf::vocab32_t VOCAB_NAV_DELETE_X
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_LOCALIZER_POSES
constexpr yarp::conf::vocab32_t VOCAB_NAV_GOTOABS_AND_NAME
constexpr yarp::conf::vocab32_t VOCAB_NAV_VELOCITY_CMD
constexpr yarp::conf::vocab32_t VOCAB_INAVIGATION
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_LIST_X
constexpr yarp::conf::vocab32_t VOCAB_NAV_AREA
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_ABS_TARGET
constexpr yarp::conf::vocab32_t VOCAB_NAV_RECOMPUTE_PATH
constexpr yarp::conf::vocab32_t VOCAB_NAV_STORE_X
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_REL_TARGET
constexpr yarp::conf::vocab32_t VOCAB_NAV_LOCALIZATION_STOP
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_X
constexpr yarp::conf::vocab32_t VOCAB_NAV_SET_INITIAL_POSCOV
constexpr yarp::conf::vocab32_t VOCAB_NAV_RENAME_X
constexpr yarp::conf::vocab32_t VOCAB_NAV_LOCATION
constexpr yarp::conf::vocab32_t VOCAB_NAV_GOTOREL
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_NAME_TARGET
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_CURRENT_POS
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_LOCALIZER_STATUS
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_ESTIMATED_ODOM
constexpr yarp::conf::vocab32_t VOCAB_NAV_TEMPORARY_FLAGS
constexpr yarp::conf::vocab32_t VOCAB_NAV_SET_INITIAL_POS
constexpr yarp::conf::vocab32_t VOCAB_NAV_CLEARALL_X
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_CURRENT_POSCOV
constexpr yarp::conf::vocab32_t VOCAB_NAV_GET_NAVIGATION_STATUS
constexpr yarp::conf::vocab32_t VOCAB_NAV_GOTOABS
constexpr yarp::conf::vocab32_t VOCAB_NAV_PATH
constexpr yarp::conf::vocab32_t VOCAB_NAV_LOCALIZATION_START
contains the definition of a Map2DLocation type
contains the definition of a Matrix type
ILocalization2D interface.
virtual bool getEstimatedOdometry(yarp::dev::OdometryData &odom)=0
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local...
virtual bool getCurrentPosition(yarp::dev::Nav2D::Map2DLocation &loc)=0
Gets the current position of the robot w.r.t world reference frame.
virtual bool getEstimatedPoses(std::vector< yarp::dev::Nav2D::Map2DLocation > &poses)=0
Gets a set of pose estimates computed by the localization algorithm.
virtual bool startLocalizationService()=0
Starts the localization service.
virtual bool setInitialPose(const yarp::dev::Nav2D::Map2DLocation &loc, const yarp::sig::Matrix &cov)=0
Sets the initial pose for the localization algorithm which estimates the current position of the robo...
virtual bool getCurrentPosition(yarp::dev::Nav2D::Map2DLocation &loc, yarp::sig::Matrix &cov)=0
Gets the current position of the robot w.r.t world reference frame, plus the covariance.
virtual bool stopLocalizationService()=0
Stops the localization service.
virtual bool setInitialPose(const yarp::dev::Nav2D::Map2DLocation &loc)=0
Sets the initial pose for the localization algorithm which estimates the current position of the robo...
virtual ~ILocalization2D()
Destructor.
virtual bool getLocalizationStatus(LocalizationStatusEnum &status)=0
Gets the current status of the localization task.
A class for a Matrix.
Definition: Matrix.h:43
std::int32_t vocab32_t
Definition: numeric.h:78
@ localization_status_not_yet_localized
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
Definition: Vocab.h:28
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18