YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeLaser_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>
12
13#include <catch2/catch_amalgamated.hpp>
14#include <harness.h>
15
16using namespace yarp::dev;
17using namespace yarp::sig;
18using namespace yarp::os;
19
20TEST_CASE("dev::FakeLaserTest", "[yarp::dev]")
21{
22 YARP_REQUIRE_PLUGIN("fakeLaser", "device");
23
24 Network::setLocalMode(true);
25
26 SECTION("Checking FakeLaserTest device")
27 {
29 IRangefinder2D* irng = nullptr;
30
32 {
34 las_cfg.put("device", "fakeLaser");
35 las_cfg.put("test", "use_constant");
36 Property& cm_cfg= las_cfg.addGroup("CONSTANT_MODE");
37 cm_cfg.put("const_distance", 0.5);
40
42 }
43
44 //execute tests
46
47 //"Close all polydrivers and check"
49 }
50
51 Network::setLocalMode(false);
52}
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:32
TEST_CASE("dev::FakeLaserTest", "[yarp::dev]")
void exec_iRangefinder2D_test_1(IRangefinder2D *irf, const ValuestoCheck &v=ValuestoCheck())
void exec_params_test(yarp::dev::PolyDriver *pdrv)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.