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

Function writeCSVImu

okvis_ros/src/dataset_convertor.cpp:283–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void writeCSVImu(shared_ptr<std::ofstream> file, sensor_msgs::Imu::ConstPtr imu) {
284 std::ostringstream ss;
285 ss << std::setprecision(DOUBLE_PRECISION) << imu->header.stamp.toNSec() << "," << imu->angular_velocity.x << ","
286 << imu->angular_velocity.y << "," << imu->angular_velocity.z << "," << imu->linear_acceleration.x << ","
287 << imu->linear_acceleration.y << "," << imu->linear_acceleration.z;
288 *file << ss.str() << endl;
289}
290
291void writeCSVVicon(shared_ptr<std::ofstream> file, geometry_msgs::TransformStamped::ConstPtr vicon) {
292 std::ostringstream ss;

Callers 1

mainFunction · 0.85

Calls 1

toNSecMethod · 0.45

Tested by

no test coverage detected