ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

approximate time example: ros::Subscriber’ has no member named ‘registerCallback’

asked 2021-05-02 04:39:42 -0500

anonymous user

Anonymous

updated 2021-05-03 01:51:26 -0500

gvdhoorn gravatar image

I compile approximate time example then get this error what should I do?

In file included from /opt/ros/melodic/include/message_filters/sync_policies/approximate_time.h:38:0,
                 from /home/ardi/aerobone_ws/src/time_sub_handler/src/time_node.cpp:13:
/opt/ros/melodic/include/message_filters/synchronizer.h: In instantiation of ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&, F5&, F6&, F7&, F8&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; F2 = message_filters::NullFilter<message_filters::NullType>; F3 = message_filters::NullFilter<message_filters::NullType>; F4 = message_filters::NullFilter<message_filters::NullType>; F5 = message_filters::NullFilter<message_filters::NullType>; F6 = message_filters::NullFilter<message_filters::NullType>; F7 = message_filters::NullFilter<message_filters::NullType>; F8 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’:
/opt/ros/melodic/include/message_filters/synchronizer.h:254:18:   required from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&, F5&, F6&, F7&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; F2 = message_filters::NullFilter<message_filters::NullType>; F3 = message_filters::NullFilter<message_filters::NullType>; F4 = message_filters::NullFilter<message_filters::NullType>; F5 = message_filters::NullFilter<message_filters::NullType>; F6 = message_filters::NullFilter<message_filters::NullType>; F7 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’
/opt/ros/melodic/include/message_filters/synchronizer.h:295:18:   required from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&, F5&, F6&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; F2 = message_filters::NullFilter<message_filters::NullType>; F3 = message_filters::NullFilter<message_filters::NullType>; F4 = message_filters::NullFilter<message_filters::NullType>; F5 = message_filters::NullFilter<message_filters::NullType>; F6 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’
/opt/ros/melodic/include/message_filters/synchronizer.h:288:18:   required from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&, F5&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; F2 = message_filters::NullFilter<message_filters::NullType>; F3 = message_filters::NullFilter<message_filters::NullType>; F4 = message_filters::NullFilter<message_filters::NullType>; F5 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’
/opt/ros/melodic/include/message_filters/synchronizer.h:281:18:   required from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; F2 = message_filters::NullFilter<message_filters::NullType>; F3 = message_filters::NullFilter<message_filters::NullType>; F4 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’
/opt/ros/melodic/include/message_filters/synchronizer.h:274:18:   required from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; F2 = message_filters::NullFilter<message_filters::NullType>; F3 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’
/opt/ros/melodic/include/message_filters/synchronizer.h:267:18:   required from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; F2 = message_filters::NullFilter<message_filters::NullType>; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’
/opt/ros/melodic/include/message_filters/synchronizer.h:260:18:   required from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > >]’
/opt/ros/melodic/include/message_filters/synchronizer.h:160:18:   required from ‘message_filters::Synchronizer<Policy>::Synchronizer(const Policy&, F0&, F1&) [with F0 = ros::Subscriber; F1 = ros::Subscriber; Policy = message_filters::sync_policies::ApproximateTime<serial_handler::chemsensor_<std::allocator<void> >, sensor_msgs::NavSatFix_<std::allocator<void> > ...
(more)
edit retag flag offensive close merge delete

Comments

"what should I do?" — to begin with, you could format your question correctly using the 101010 button

abhishek47 gravatar image abhishek47  ( 2021-05-02 23:14:57 -0500 )edit

"what should I do?" — to begin with, you could format your question correctly using the 101010 button

@abhishek47kashyap: there doesn't seem to be a need to get snarky immediately here.

It seems this is @ard17's first post: could we please try to help new users instead?

gvdhoorn gravatar image gvdhoorn  ( 2021-05-03 01:49:43 -0500 )edit
1

Sorry @ard17, I realize my comment could be more constructive! @gvdhoorn, will do better :)

abhishek47 gravatar image abhishek47  ( 2021-05-03 01:53:55 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-05-03 02:54:20 -0500

anonymous user

Anonymous

Its solved, i use wrong subscriber

edit flag offensive delete link more

Comments

1

Thanks for reporting your solution @ard17.

Could you please:

  • not delete questions which have an actual answer?
  • expand your description of your solution a bit? What was it that you actually had to change? What did you have before (ie: when you couldn't compile your node) and what do you have now?

Being clear about how you solved your problem will help future readers avoid the same problem and is much appreciated.

Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-03 03:15:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-05-02 04:39:42 -0500

Seen: 297 times

Last updated: May 03 '21