added long loop for ROS publishing