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

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
3

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

Comments

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

Question Tools

2 followers

Stats

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

Seen: 796 times

Last updated: Jul 04 '19