19 "yarp.carrier.portmonitor.sensorMeasurements_to_vector",
50 ssd->OrientationSensors.measurements.size() != 1 ||
51 ssd->OrientationSensors.measurements[0].measurement.size() != 3 ||
52 ssd->PositionSensors.measurements.size() != 1 ||
53 ssd->PositionSensors.measurements[0].measurement.size() != 3)
55 yCError(
SM2VEC,
"SensorMeasurements_to_vector: received invalid data type!");
69 out[0] =
ssd->PositionSensors.measurements[
sensor_id].measurement[0];
70 out[1] =
ssd->PositionSensors.measurements[
sensor_id].measurement[1];
71 out[2] =
ssd->PositionSensors.measurements[
sensor_id].measurement[2];
72 out[3] =
ssd->OrientationSensors.measurements[
sensor_id].measurement[0];
73 out[4] =
ssd->OrientationSensors.measurements[
sensor_id].measurement[1];
74 out[5] =
ssd->OrientationSensors.measurements[
sensor_id].measurement[2];
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
bool setparam(const yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
yarp::os::Things & update(yarp::os::Things &thing) override
After data get accpeted in the accept() callback, an instance of that is given to the update function...
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
void destroy() override
This will be called when the portmonitor object destroyes.
bool getparam(yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
A mini-server for performing network communication in the background.
static LogCallback printCallback()
Get current print callback.
static LogType minimumPrintLevel()
Get current minimum print level.
A class for storing options and configuration information.
Base class for generic things.
void setPortWriter(yarp::os::PortWriter *writer)
Set the reference to a PortWriter object.
void resize(size_t size) override
Resize the vector.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
An interface to the operating system, including Port based communication.