Initialize a ros::Time instance on the heap
I am trying to initialize a pointer to the current ros::Time, using the following code:
ros::Time *tstamp = new ros::Time::now()
I get the following compilation error:
error: expected type-specifier"
What is wrong with the previous line? What is the proper way of initializing a ros::Time* or a std::vectorros::Time*?
Thanks in advance,
Asked by bergercookie on 2016-04-12 02:25:03 UTC
Comments