9#ifndef __eo_imu_privData_h__
10#define __eo_imu_privData_h__
13#include <yarp/sig/Vector.h>
16#include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
24 class eo_imu_privData;
33 std::uint8_t canpositionmap[eoas_sensors_numberof][eOcanports_number][16];
34 std::uint8_t ethpositionmap[eoas_sensors_numberof];
39 bool getIndex(
const eOas_inertial3_data_t *
data, uint8_t &index, eOas_sensor_t &type);
40 bool getIndex(eOas_sensor_t type, uint8_t canbus, uint8_t canaddress, uint8_t& index);
41 static bool getCanAddress(
const eOas_inertial3_data_t *
data, uint8_t &canbus, uint8_t &canaddress);
52 double conversionFactor{1.0};
58 std::vector<std::vector<sensorInfo_t>> mysens;
59 mutable std::mutex mutex;
65 bool update(eOas_sensor_t type, uint8_t index, eOas_inertial3_data_t *newdata);
66 bool updateStatus(eOas_sensor_t type, uint8_t index, eOas_inertial3_sensorstatus_t &status);
71 bool getSensorName(
size_t sens_index, eOas_sensor_t type, std::string &name)
const;
72 bool getSensorFrameName(
size_t sens_index, eOas_sensor_t type, std::string &frameName)
const;
73 bool getSensorMeasure(
size_t sens_index, eOas_sensor_t type, yarp::sig::Vector&
out,
double& timestamp)
const;
bool init(servConfigImu_t &servCfg)
bool getIndex(const eOas_inertial3_data_t *data, uint8_t &index, eOas_sensor_t &type)
static bool getCanAddress(const eOas_inertial3_data_t *data, uint8_t &canbus, uint8_t &canaddress)
bool outOfRangeErrorHandler(const std::out_of_range &oor) const
void init(servConfigImu_t &servCfg, string error_string)
bool getSensorFrameName(size_t sens_index, eOas_sensor_t type, std::string &frameName) const
bool getSensorMeasure(size_t sens_index, eOas_sensor_t type, yarp::sig::Vector &out, double ×tamp) const
bool getSensorName(size_t sens_index, eOas_sensor_t type, std::string &name) const
bool updateStatus(eOas_sensor_t type, uint8_t index, eOas_inertial3_sensorstatus_t &status)
bool update(eOas_sensor_t type, uint8_t index, eOas_inertial3_data_t *newdata)
size_t getNumOfSensors(eOas_sensor_t type) const
uint8_t getSensorStatus(size_t sens_index, eOas_sensor_t type) const
yarp::dev::PositionMaps maps
void debugPrintStateNotOK(eOas_sensor_t type, uint8_t eo_state)
yarp::dev::MAS_status sensorState_eo2yarp(eOas_sensor_t type, uint8_t eo_state)
bool fromConfig(yarp::os::Searchable &config, servConfigImu_t &servCfg)
yarp::dev::SensorsData sens
bool sendConfing2board(servConfigImu_t &servCfg)
Copyright (C) 2008 RobotCub Consortium.