Ask Your Question
0

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
2

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

Comments

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

grazio gravatar imagegrazio ( 2019-07-04 08:48:26 -0500 )edit

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

VictorLamoine gravatar imageVictorLamoine ( 2019-07-04 09:25:38 -0500 )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

2 followers

Stats

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

Seen: 42 times

Last updated: Jul 04