19#include <catch2/catch_amalgamated.hpp>
22TEST_CASE(
"pm::sensorMeasurements_to_vectorTest",
"[yarp::pm]")
24 YARP_REQUIRE_PLUGIN(
"sensorMeasurements_to_vector",
"portmonitor")
37 TestCase {
"fast_tcp",
false},
38 TestCase {
"fast_tcp+recv.portmonitor+file.sensorMeasurements_to_vector+type.dll",
true}
41 SECTION(
"Test SensorStreamingData to Vector conversion")
47 receiver.
open(
"/recv");
77 if (tc.use_converter) {
82 REQUIRE(vec.
size() == 6);
92 receiver.
read(received_ssd);
contains the definition of a Vector type
yarp::sig::Vector measurement
std::vector< SensorMeasurementData > measurements
SensorMeasurementsData OrientationSensors
SensorMeasurementsData PositionSensors
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.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::BufferedPort::write.
static bool connect(const std::string &src, const std::string &dest, const std::string &carrier="", bool quiet=true)
Request that an output port connect to an input port.
static bool setLocalMode(bool flag)
Chooses whether communication is process-local.
Utilities for manipulating the YARP network, including initialization and shutdown.
A mini-server for network communication.
bool read(PortReader &reader, bool willReply=false) override
Read an object from the port.
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.
void resize(size_t size) override
Resize the vector.
void delay(double seconds)
Wait for a certain number of seconds.
The main, catch-all namespace for YARP.
TEST_CASE("pm::sensorMeasurements_to_vectorTest", "[yarp::pm]")