36 #include <visp3/core/vpConfig.h>
38 #ifdef VISP_HAVE_COMEDI
42 #include <visp3/core/vpException.h>
43 #include <visp3/sensor/vpComedi.h>
50 : m_device(
"/dev/comedi0"), m_handler(nullptr), m_subdevice(0), m_range(0), m_aref(AREF_DIFF), m_nchannel(6),
51 m_range_info(6), m_maxdata(6), m_chanlist(6)
73 comedi_set_global_oor_behavior(COMEDI_OOR_NAN);
79 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
113 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
120 "Cannot get %d data from device=%s subdevice=%d "
121 "channel=%d range=%d analog reference=%d",
139 std::vector<lsampl_t> raw_data = this->
getRawData();
143 for (
unsigned int channel = 0; channel <
m_nchannel; channel++) {
161 unsigned int channel = 0;
175 #elif !defined(VISP_BUILD_SHARED_LIBS)
177 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)