39 #include <visp3/core/vpConfig.h> 41 #ifdef VISP_HAVE_COMEDI 45 #include <visp3/core/vpException.h> 46 #include <visp3/sensor/vpComedi.h> 52 : m_device(
"/dev/comedi0"), m_handler(NULL), m_subdevice(0), m_range(0), m_aref(AREF_DIFF), m_nchannel(6),
53 m_range_info(6), m_maxdata(6), m_chanlist(6)
76 comedi_set_global_oor_behavior(COMEDI_OOR_NAN);
82 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
116 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
123 "Cannot get %d data from device=%s subdevice=%d " 124 "channel=%d range=%d analog reference=%d",
142 std::vector<lsampl_t> raw_data = this->
getRawData();
146 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
164 unsigned int channel = 0;
178 #elif !defined(VISP_BUILD_SHARED_LIBS) 181 void dummy_vpComedi(){};
static bool isNaN(const double value)
error that can be emited by ViSP classes.
std::vector< lsampl_t > getRawData() const
std::vector< unsigned int > m_chanlist
Implementation of column vector and the associated operations.
std::vector< lsampl_t > m_maxdata
vpColVector getPhyData() const
std::string getPhyDataUnits() const
std::vector< comedi_range * > m_range_info