Unexpected Behavior on timesynchro

asked 2018-12-17 14:15:00 -0500

Lucas Amparo gravatar image

That code

message_filters::Subscriber<sensor_msgs::PointCloud2> pc_sub
    (n, "tool/camera/depth/points0", 5);
  message_filters::Subscriber<sensor_msgs::JointState> table_sub
    (n, "tool/joint_states", 5);
  TimeSynchronizer<sensor_msgs::PointCloud2, sensor_msgs::JointState> sync
    (pc_sub, table_sub, 10);
  sync.registerCallback(boost::bind(&cloud_cb, _1, _2));

when compiled only works once. If I need to run that again, I need to change the queue_size with a random number until they work again LOL. Someone can help me to discovery the cause of that? Thanks.

edit retag flag offensive close merge delete