Implementation.
More...
#include "ImageSources/ImageSource.h"
#include "ImageSources/ImageSourceFactories.h"
#include <osvr/Util/MiniArgsHandling.h>
#include <boost/lexical_cast.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <vrpn_SerialPort.h>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <functional>
#include <iostream>
#include <memory>
#include <random>
#include <sstream>
#include <thread>
Go to the source code of this file.
|
using | SerialBufType = const unsigned char |
|
using | SerialIRLEDPtr = std::unique_ptr< SerialIRLED > |
|
using | SerialLEDControllerFactory = std::function< SerialIRLEDPtr(vrpn_SerialPort &)> |
|
|
template<typename T , std::size_t N> |
void | writeStringWithoutNullTerminator (vrpn_SerialPort &port, T(&buf)[N], std::size_t repetitions=1) |
|
template<typename T , std::size_t N> |
void | writeCommand (vrpn_SerialPort &port, T(&buf)[N], std::size_t repetitions=1) |
|
template<std::size_t N> |
void | writeBinaryArray (vrpn_SerialPort &port, SerialBufType(&buf)[N], std::size_t repetitions=1) |
|
int | main (int argc, char *argv[]) |
|
Implementation.
- Date
- 2015
- Author
- Sensics, Inc. http://sensics.com/osvr
Definition in file MeasureTrackingCameraLatency.cpp.
template<typename T , std::size_t N>
void writeStringWithoutNullTerminator |
( |
vrpn_SerialPort & |
port, |
|
|
T(&) |
buf[N], |
|
|
std::size_t |
repetitions = 1 |
|
) |
| |
|
inline |
Utility function to take in a (typically) string literal and write it, without its null terminator, to the serial port, optionally repeatedly. (Size deduced by template)
Definition at line 54 of file MeasureTrackingCameraLatency.cpp.
template<typename T , std::size_t N>
void writeCommand |
( |
vrpn_SerialPort & |
port, |
|
|
T(&) |
buf[N], |
|
|
std::size_t |
repetitions = 1 |
|
) |
| |
|
inline |
Utility function to take in a string literal and write it, without its null terminator, followed by a newline, to the serial port, optionally repeatedly. (Size deduced by template)
Definition at line 70 of file MeasureTrackingCameraLatency.cpp.
template<std::size_t N>
void writeBinaryArray |
( |
vrpn_SerialPort & |
port, |
|
|
SerialBufType(&) |
buf[N], |
|
|
std::size_t |
repetitions = 1 |
|
) |
| |
|
inline |
Utility function to take in a binary array and write it verbatim to the serial port, optionally repeatedly. (Size deduced by template)
Definition at line 81 of file MeasureTrackingCameraLatency.cpp.
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |