1 #include <visiontransfer/deviceenumeration.h>
2 #include <visiontransfer/imagetransfer.h>
3 #include <visiontransfer/imageset.h>
4 #include <visiontransfer/deviceparameters.h>
10 using namespace visiontransfer;
12 int main(
int,
char**) {
18 if(devices.size() == 0) {
19 std::cout <<
"No devices discovered!" << std::endl;
24 std::cout <<
"Discovered devices:" << std::endl;
25 for(
unsigned int i = 0; i< devices.size(); i++) {
26 std::cout << devices[i].toString() << std::endl;
28 std::cout << std::endl;
34 std::cout <<
"SOC temperature: " << parameters.getParameter(
"RT_temp_soc").getCurrent<
double>() <<
" °C" << std::endl;
35 std::cout <<
"Left sensor temperature: " << parameters.getParameter(
"RT_temp_sensor_left").getCurrent<
double>() <<
" °C" << std::endl;
36 std::cout <<
"Right sensor temperature: " << parameters.getParameter(
"RT_temp_sensor_right").getCurrent<
double>() <<
" °C" << std::endl;
39 }
catch(
const std::exception& ex) {
40 std::cerr <<
"Exception occurred: " << ex.what() << std::endl;