Message filters apply only on frames [closed]

asked 2015-09-07 05:29:59 -0500

TomSon gravatar image

Hi, I try to use messages filters to generate callback when I got the frame I want.

Here is the declaration:

   tf_sub_.subscribe(nh_, "tf", 10);
   tf_sub_ = nh_.subscribe<tf::Transformer>("tf", 1, &TeleopRoboteq::test_tf, this);
   tf_filter_ = new tf::MessageFilter<tf::Transformer>(tf_sub_, listener, "torso_1", 10);
   tf_filter_->registerCallback( boost::bind(&TeleopRoboteq::test_tf, this, _1) );

I try to do some math on the frame "torso_1" when it's available.

Is my data type correct for what I want to do ?

edit retag flag offensive reopen merge delete

Closed for the following reason Question does not follow our guidelines for questions. Please see: http://wiki.ros.org/Support for more details. by tfoote
close date 2020-07-24 17:26:50.550037