Adding a ros::spin() to the compass constructor.