ros / geometry2

A set of ROS packages for keeping track of coordinate transforms.
189 stars 273 forks source link

Fix TypeError when using --cache_time argument #545

Open tik0 opened 1 year ago

tik0 commented 1 year ago

Running rosrun tf2_tools echo.py --cache_time 1.0 source_frame target_frame causes TypeError: time must have a to_sec method, e.g. rospy.Time or rospy.Duration, because the argument is not properly converted. The fix handles the conversion, if the argument was given.