ROS icon indicating copy to clipboard operation
ROS copied to clipboard

catkin_make: error: cannot convert ‘const _stamp_type {aka const ros::Time}’ to ‘double’

Open HuangCongQing opened this issue 5 years ago • 1 comments

代码位置:https://github.com/HuangCongQing/3D-LIDAR-Multi-Object-Tracking/blob/main/object_tracking/tracking/main.cpp#L71

image

https://blog.csdn.net/u012700322/article/details/51787329#commentBox

HuangCongQing avatar Oct 30 '20 09:10 HuangCongQing

要更自由地开发就需要会自己查API文档

http://docs.ros.org/en/latest/api/rostime/html/time_8h_source.html 第153行toSec()函数

xibeisiber 18:24:49

1 double secs =ros::Time::now().toSec();
   2 
   3 ros::Duration d(0.5);
   4 secs = d.toSec();

xibeisiber 18:25:16 加个toSec()试试

HuangCongQing avatar Oct 31 '20 10:10 HuangCongQing