From a61788f69422493e1b0a4649428620d097901387 Mon Sep 17 00:00:00 2001 From: Felix Mauch Date: Tue, 28 May 2019 11:26:27 +0200 Subject: [PATCH] use double precision in output of kinematics info --- .../src/primary/robot_state/kinematics_info.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ur_rtde_driver/src/primary/robot_state/kinematics_info.cpp b/ur_rtde_driver/src/primary/robot_state/kinematics_info.cpp index 3a22bcb..459641c 100644 --- a/ur_rtde_driver/src/primary/robot_state/kinematics_info.cpp +++ b/ur_rtde_driver/src/primary/robot_state/kinematics_info.cpp @@ -15,6 +15,8 @@ #include "ur_rtde_driver/log.h" #include "ur_rtde_driver/primary/robot_state/kinematics_info.h" +#include + namespace ur_driver { namespace primary_interface @@ -43,28 +45,28 @@ std::string KinematicsInfo::toString() const os << "dh_theta: ["; for (size_t i = 0; i < dh_theta_.size(); ++i) { - os << dh_theta_[i] << " "; + os << std::setprecision(15) << dh_theta_[i] << " "; } os << "]" << std::endl; os << "dh_a: ["; for (size_t i = 0; i < dh_a_.size(); ++i) { - os << dh_a_[i] << " "; + os << std::setprecision(15) << dh_a_[i] << " "; } os << "]" << std::endl; os << "dh_d: ["; for (size_t i = 0; i < dh_d_.size(); ++i) { - os << dh_d_[i] << " "; + os << std::setprecision(15) << dh_d_[i] << " "; } os << "]" << std::endl; os << "dh_alpha: ["; for (size_t i = 0; i < dh_alpha_.size(); ++i) { - os << dh_alpha_[i] << " "; + os << std::setprecision(15) << dh_alpha_[i] << " "; } os << "]" << std::endl;