YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ILocalization2DTest.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef ILOCALIZATION2DTEST_H
7#define ILOCALIZATION2DTEST_H
8
10#include <catch2/catch_amalgamated.hpp>
11
12using namespace yarp::dev;
13using namespace yarp::os;
14
15namespace yarp::dev::tests
16{
18 {
19 REQUIRE(iloc != nullptr);
20
21 bool b;
22
26 std::vector<yarp::dev::Nav2D::Map2DLocation> poses;
27 b = iloc->getCurrentPosition(ll); CHECK(b);
28 b = iloc->startLocalizationService(); CHECK(b);
29 b = iloc->stopLocalizationService(); CHECK(b);
30 b = iloc->setInitialPose(ll); CHECK(b);
31 b = iloc->getEstimatedOdometry(odom); CHECK(b);
32 b = iloc->getEstimatedPoses(poses); CHECK(b);
33 b = iloc->getLocalizationStatus(status); CHECK(b);
34 }
35}
36
37#endif
ILocalization2D interface.
A mini-server for performing network communication in the background.
void exec_iLocalization2D_test_1(yarp::dev::Nav2D::ILocalization2D *iloc)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.