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