MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / writeCSVVicon

Function writeCSVVicon

okvis_ros/src/dataset_convertor.cpp:291–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void 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
301bool isTopicInMap(map<string, map<string, string>>& topic2info, string topic_name) { // NOLINT
302 bool res = false;

Callers 1

mainFunction · 0.85

Calls 1

toNSecMethod · 0.45

Tested by

no test coverage detected