ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

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 -0600

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 -0600 )edit

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 351 times

Last updated: Jul 04 '19