47 InertialMeasurementUnitListenerPrx batchPrx = IMUTopicPrx->ice_batchOneway();
48 for (
auto nam2idx : devs)
50 const auto devidx = nam2idx.second;
51 const auto& dev = nam2idx.first;
57 Ice::FloatSeq(
s->linearAcceleration.data(),
58 s->linearAcceleration.data() +
59 s->linearAcceleration.rows() *
s->linearAcceleration.cols());
60 data.gyroscopeRotation = Ice::FloatSeq(
61 s->angularVelocity.data(),
62 s->angularVelocity.data() +
s->angularVelocity.rows() *
s->angularVelocity.cols());
64 data.orientationQuaternion = {
65 s->orientation.w(),
s->orientation.x(),
s->orientation.y(),
s->orientation.z()};
67 batchPrx->reportSensorValues(dev, frame,
data, t);
69 batchPrx->ice_flushBatchRequests();