| 289 | } |
| 290 | |
| 291 | void writeCSVVicon(shared_ptr<std::ofstream> file, geometry_msgs::TransformStamped::ConstPtr vicon) { |
| 292 | std::ostringstream ss; |
| 293 | ss << std::setprecision(DOUBLE_PRECISION) << vicon->header.stamp.toNSec() << "," << vicon->transform.translation.x |
| 294 | << "," << vicon->transform.translation.y << "," << vicon->transform.translation.z << "," |
| 295 | << vicon->transform.rotation.w << "," << vicon->transform.rotation.x << "," << vicon->transform.rotation.y << "," |
| 296 | << vicon->transform.rotation.z; |
| 297 | |
| 298 | *file << ss.str() << endl; |
| 299 | } |
| 300 | |
| 301 | bool isTopicInMap(map<string, map<string, string>>& topic2info, string topic_name) { // NOLINT |
| 302 | bool res = false; |