VectorNav C++ Library
searcher.h
1 #ifndef _VNSENSORS_SEARCHER_H_
2 #define _VNSENSORS_SEARCHER_H_
3 
4 #include <string>
5 #include <vector>
6 
7 #include "int.h"
8 #include "export.h"
9 
10 namespace vn {
11 namespace sensors {
12 
14 class vn_proglib_DLLEXPORT Searcher
15 {
16 
17 public:
18 
26  static void findPorts(std::vector<std::string>& portlist);
27 
35  static bool search(const std::string &portName, int32_t *foundBaudrate);
36 
41  static std::vector<std::pair<std::string, uint32_t> > search(void);
42 
48  static std::vector<std::pair<std::string, uint32_t> > search(std::vector<std::string>& portsToCheck);
49 
56  static bool test(std::string portName, uint32_t baudrate);
57 };
58 
59 }
60 }
61 
62 #endif
Definition: attitude.h:8
Helpful class for finding VectorNav sensors.
Definition: searcher.h:14