8 #include <std_msgs/Int8MultiArray.h> 14 static uint8_t previous = 0;
15 uint8_t current = msg.data[0];
16 uint8_t diff = current - previous;
19 ROS_WARN(
"Missing %u message(s)", diff - 1);
22 previous = msg.data[0];
25 int main(
int argc,
char** argv)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void handleMsg(const std_msgs::Int8MultiArray &msg)
int main(int argc, char **argv)