36 #include <visp3/core/vpConfig.h>
38 #ifdef VISP_HAVE_COMEDI
42 #include <visp3/core/vpException.h>
43 #include <visp3/sensor/vpComedi.h>
49 : m_device(
"/dev/comedi0"), m_handler(nullptr), m_subdevice(0), m_range(0), m_aref(AREF_DIFF), m_nchannel(6),
50 m_range_info(6), m_maxdata(6), m_chanlist(6)
72 comedi_set_global_oor_behavior(COMEDI_OOR_NAN);
78 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
112 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
119 "Cannot get %d data from device=%s subdevice=%d "
120 "channel=%d range=%d analog reference=%d",
138 std::vector<lsampl_t> raw_data = this->
getRawData();
142 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
160 unsigned int channel = 0;
174 #elif !defined(VISP_BUILD_SHARED_LIBS)
176 void dummy_vpComedi() { };
Implementation of column vector and the associated operations.
std::vector< lsampl_t > m_maxdata
std::vector< lsampl_t > getRawData() const
vpColVector getPhyData() const
std::vector< comedi_range * > m_range_info
std::vector< unsigned int > m_chanlist
std::string getPhyDataUnits() const
error that can be emitted by ViSP classes.
static bool isNaN(double value)