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

Difference between image_transport::Subscriber AND ros::Subscriber?

asked 2019-03-21 15:07:20 -0500

JeyP4 gravatar image

What is the Difference between image_transport::Subscriber AND ros::Subscriber?.

Which is more efficient?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-22 06:21:27 -0500

VictorLamoine gravatar image
  • ros::Subscriber is a generic subscriber class that can subscribe to any topic.
  • image_transport::Subscriber is a specialized subscriber that can only subscribe to image topics, it is provided for ease of use with the image_transport package.

You use them for different purposes.

edit flag offensive delete link more


Is there a difference in terms of efficiency? For instance, is image_transport::Subscriber "faster" than ros::Subscriber?

Filippo Grazioli gravatar image Filippo Grazioli  ( 2019-07-04 08:48:26 -0500 )edit

None that I know, it's just for ease of use.

VictorLamoine gravatar image VictorLamoine  ( 2019-07-04 09:25:38 -0500 )edit

Question Tools



Asked: 2019-03-21 15:07:20 -0500

Seen: 605 times

Last updated: Jul 04 '19