YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameTransformStorage_test.cpp
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
9#include <yarp/os/Property.h>
10#include <yarp/os/Network.h>
11#include <iostream>
12
14
15#include <catch2/catch_amalgamated.hpp>
16#include <harness.h>
17
18TEST_CASE("dev::frameTransformStorage", "[yarp::dev]")
19{
20 #if defined(DISABLE_FAILING_TESTS)
21 YARP_SKIP_TEST("Skipping failing tests")
22 #endif
23
24 YARP_REQUIRE_PLUGIN("frameTransformStorage", "device");
25
27 const bool verboseDebug = true;
28
29 SECTION("test the frameTransformStorage")
30 {
33
34 p.put("device", "frameTransformStorage");
35 REQUIRE(pd.open(p));
36
40
42
43 REQUIRE(pd.view(itf_get));
44 REQUIRE(pd.view(itf_set));
45 REQUIRE(pd.view(itf_utils));
46
48
49 REQUIRE(pd.close());
50 }
51
53}
TEST_CASE("dev::frameTransformStorage", "[yarp::dev]")
A container for a device driver.
Definition PolyDriver.h:23
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
static bool setLocalMode(bool flag)
Chooses whether communication is process-local.
Definition Network.cpp:1049
A class for storing options and configuration information.
Definition Property.h:33
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
Definition Property.cpp:987
void exec_frameTransformStorage_test_1(IFrameTransformStorageSet *itfSet, IFrameTransformStorageGet *itfGet, IFrameTransformStorageUtils *itfUtils)
void delay(double seconds)
Wait for a certain number of seconds.
Definition Time.cpp:111