Set an odometry output CSV file.
| 331 | |
| 332 | // Set an odometry output CSV file. |
| 333 | bool Publisher::setCsvFile(std::fstream& csvFile) { |
| 334 | if (csvFile_) { |
| 335 | csvFile_->close(); |
| 336 | } |
| 337 | csvFile_.reset(&csvFile); |
| 338 | writeCsvDescription(); |
| 339 | return csvFile_->good(); |
| 340 | } |
| 341 | // Set an odometry output CSV file. |
| 342 | bool Publisher::setCsvFile(std::string& csvFileName) { |
| 343 | csvFile_.reset(new std::fstream(csvFileName.c_str(), std::ios_base::out)); |