Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Don't create publishers in message callbacks. Make them member variables, init in ctor.

Don't create publishers in message callbacks. Make them member variables, init in ctor.ctor. Also: what is the loop_rate_ and ros::Time::now(); lines for? They seem not to make any sense.

Don't create publishers in message callbacks. Make them member variables, init in ctor. Also: what is are the loop_rate_ and ros::Time::now(); lines for? They seem not to make any sense.