ros / rosconsole

17 stars 61 forks source link

Durations not printing out properly with ROS_INFO, WARN, etc. #20

Closed pbeeson closed 6 years ago

pbeeson commented 6 years ago
double timer = 49.9999999999;
ROS_INFO_STREAM(timer<<" "<<ros::Duration(timer)<<" "<<ros::Duration(timer).toSec()<<" "<<ros::Duration(ros::Rate(1/timer))<<" "<<ros::Time(timer));

Output: [ INFO] [1538739921.605671985]: 50 49.1000000000 50 50.000000000 50.000000000

pbeeson commented 6 years ago

This isn't a rosconsole issue, as this is reproducible using cout.