39 #ifndef _vpQbDevice_h_ 40 #define _vpQbDevice_h_ 42 #include <visp3/core/vpConfig.h> 43 #ifdef VISP_HAVE_QBDEVICE 70 double getCurrentMax()
const;
71 std::vector<short int> getPositionLimits()
const;
72 void setMaxRepeats(
const int &max_repeats);
78 virtual int activate(
const int &
id,
const bool &command,
const int &max_repeats);
79 virtual int activate(
const int &
id,
const int &max_repeats);
80 virtual bool close(
const std::string &serial_port);
81 virtual int deactivate(
const int &
id,
const int &max_repeats);
83 virtual int getCurrents(
const int &
id,
const int &max_repeats, std::vector<short int> ¤ts);
85 virtual int getInfo(
const int &
id,
const int &max_repeats, std::string &info);
86 virtual int getMeasurements(
const int &
id,
const int &max_repeats, std::vector<short int> ¤ts, std::vector<short int> &positions);
88 virtual int getParameters(
const int &
id, std::vector<int> &limits, std::vector<int> &resolutions);
89 virtual int getPositions(
const int &
id,
const int &max_repeats, std::vector<short int> &positions);
90 virtual int getSerialPortsAndDevices(
const int &max_repeats);
92 virtual bool init(
const int &
id);
94 virtual int isActive(
const int &
id,
const int &max_repeats,
bool &status);
95 int isConnected(
const int &
id,
const int &max_repeats);
96 virtual bool isInConnectedSet(
const int &
id);
97 virtual bool isInOpenMap(
const std::string &serial_port);
98 bool isReliable(
int const &failures,
int const &max_repeats);
99 virtual int open(
const std::string &serial_port);
101 virtual int setCommandsAndWait(
const int &
id,
const int &max_repeats, std::vector<short int> &commands);
102 virtual int setCommandsAsync(
const int &
id, std::vector<short int> &commands);
bool m_init_done
Flag used to indicate if the device is initialized.
int m_max_repeats
Max number of trials to send a command.