This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8.3) | |
project(sync_example) | |
find_package(catkin REQUIRED COMPONENTS message_filters roscpp sensor_msgs) | |
catkin_package( | |
CATKIN_DEPENDS message_filters roscpp sensor_msgs | |
) | |
include_directories(${catkin_INCLUDE_DIRS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ros/ros.h> | |
#include <ros/spinner.h> | |
#include <ros/callback_queue.h> | |
#include <std_msgs/Empty.h> | |
#include <std_msgs/Bool.h> | |
boost::shared_ptr<ros::AsyncSpinner> g_spinner; | |
bool g_enable = false; |