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::vector<ros::time*>?
Thanks in advance,