refactoring periodic gesture detection into its own class and ROS node