Initialize a ros::Time instance on the heap

asked 2016-04-12 02:25:03 -0500

bergercookie gravatar image

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::vector<ros::time*>?

Thanks in advance,

edit retag flag offensive close merge delete