Fixed name for rate.
Converted ros::Time::now() to double.