Skip to content

Commit

Permalink
print at full precision
Browse files Browse the repository at this point in the history
  • Loading branch information
rosen.diankov@gmail.com committed Mar 12, 2024
1 parent e36bcd7 commit 53c3f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libopenrave/kinbody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2193,10 +2193,10 @@ void KinBody::SetDOFValues(const dReal* pJointValues, int dof, uint32_t checklim
if( p[i] < lowerlimit ) {
if( p[i] < lowerlimit-g_fEpsilonEvalJointLimit ) {
if( checklimits == CLA_CheckLimits ) {
RAVELOG_WARN(str(boost::format("env=%d, dof %d value %e is smaller than the lower limit %e")%GetEnv()->GetId()%(joint.GetDOFIndex()+i)%p[i]%lowerlimit));
RAVELOG_WARN(str(boost::format("env=%s, dof %d value %.16e is smaller than the lower limit %.16e")%GetEnv()->GetId()%(joint.GetDOFIndex()+i)%p[i]%lowerlimit));
}
else if( checklimits == CLA_CheckLimitsThrow ) {
throw OPENRAVE_EXCEPTION_FORMAT(_("env=%d, dof %d value %e is smaller than the lower limit %e"), GetEnv()->GetId()%(joint.GetDOFIndex()+i)%p[i]%lowerlimit, ORE_InvalidArguments);
throw OPENRAVE_EXCEPTION_FORMAT(_("env=%s, dof %d value %.16e is smaller than the lower limit %.16e"), GetEnv()->GetId()%(joint.GetDOFIndex()+i)%p[i]%lowerlimit, ORE_InvalidArguments);
}
}
*ptempjoints++ = lowerlimit;
Expand Down

0 comments on commit 53c3f46

Please sign in to comment.