Skip to content

Commit

Permalink
Fix build when c++98 is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Apr 3, 2024
1 parent ecc0cf9 commit 648e96b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/sensor/test/force-torque/testComedi.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/****************************************************************************
*
* ViSP, open source Visual Servoing Platform software.
* Copyright (C) 2005 - 2023 by Inria. All rights reserved.
* Copyright (C) 2005 - 2024 by Inria. All rights reserved.
*
* This software is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -30,13 +30,12 @@
*
* Description:
* Test force/torque ATI sensor.
*
*****************************************************************************/
*/

/*!
\example testComedi.cpp
This example shows how to retrieve data from a sensor connected to a DAQ
board. He we have 1 signe main threads that acquires physical values at 100
board. Here we have 1 single main threads that acquires physical values at 100
Hz (10 ms) and records data in recorded-physical-data-sync.txt file.
*/
Expand All @@ -58,9 +57,11 @@ int main()
vpPlot scope(1, 700, 700, 100, 200,
std::string("ATI physical sensor data (") + comedi.getPhyDataUnits() + std::string(")"));
scope.initGraph(0, comedi.getNChannel());
#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
for (unsigned int i = 0; i < comedi.getNChannel(); i++) {
scope.setLegend(0, i, "G" + ((std::ostringstream() << i)).str());
}
#endif
#endif

std::string file("recorded-physical-data-sync.txt");
Expand Down

0 comments on commit 648e96b

Please sign in to comment.