YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
laserFromDepth_test.cpp
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
7#include <yarp/os/Network.h>
11
12#include <catch2/catch_amalgamated.hpp>
13#include <harness.h>
14
15using namespace yarp::dev;
16using namespace yarp::sig;
17using namespace yarp::os;
18
19TEST_CASE("dev::laserFromDepth", "[yarp::dev]")
20{
21 #if defined(YARP_DISABLE_FAILING_TESTS)
22 YARP_SKIP_TEST("Skipping failing tests")
23 #endif
24
25 YARP_REQUIRE_PLUGIN("laserFromDepth", "device");
26
27 Network::setLocalMode(true);
28
29 SECTION("Checking laserFromDepth device")
30 {
32 IRangefinder2D* irng = nullptr;
33
35 {
37 las_cfg.put("device", "laserFromDepth");
39 REQUIRE(laserdev.view(irng));
40 }
41
42 //execute tests
44
45 //"Close all polydrivers and check"
47 }
48
49 Network::setLocalMode(false);
50}
A generic interface for planar laser range finders.
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.
A class for storing options and configuration information.
Definition Property.h:33
TEST_CASE("dev::laserFromDepth", "[yarp::dev]")
void exec_iRangefinder2D_test_1(IRangefinder2D *irf)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.