Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I had to move on out of the if and redeclare by loop_rate(double frequency), but with ros::Rate in front:

    ros::Rate loop_rate(rate_eff[type-1]/2+1);
    if(use_def) ros::Rate loop_rate(100);