18#include <catch2/catch_amalgamated.hpp>
25TEST_CASE(
"dev::MultipleAnalogSensorsClientTest",
"[yarp::dev]")
35 Network::setLocalMode(
true);
37 SECTION(
"Test the multiple analog sensors device on a single IMU (deferred attach)")
44 p.
put(
"device",
"fakeIMU");
45 p.
put(
"constantValue", 1);
56 pWrapper.put(
"device",
"multipleanalogsensorsserver");
72 pClient.put(
"device",
"multipleanalogsensorsclient");
74 pClient.put(
"local",
"/test/mas/client");
82 std::this_thread::sleep_for(std::chrono::milliseconds(100));
93 INFO(
"multipleanalogsensorsclient closed");
98 INFO(
"multipleanalogsensorsserver closed");
102 INFO(
"fakeIMU closed");
105 INFO(
"Test complete");
108 Network::setLocalMode(
false);
bool view(T *&x)
Get an interface to the device driver.
Interface for an object that can wrap/attach to to another.
Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algori...
A container for a device driver.
bool close() override
Close the DeviceDriver.
bool open(const std::string &txt)
Construct and configure a device by its common name.
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.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
TEST_CASE("dev::MultipleAnalogSensorsClientTest", "[yarp::dev]")
void exec_IOrientationSensors_test_1(IOrientationSensors *ios)
For streams capable of holding different kinds of content, check what they actually have.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.