Solved a bug with the module rate handle functions: It is a ros::Rate object but it was handled as a double.