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

Why Empty message in std_msg?

asked 2019-05-26 16:27:10 -0500

Sparkle Eyes gravatar image

As in the title, I don't understand why is there an Empty type in std_msgs? What is it used for?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-05-26 18:04:29 -0500

It can be useful in situations where you don't particularly care about content of a message, but just that one has been received. Example: maybe a bump sensor would use an empty message because you just care that you hit something, there may be no other information available worth giving a client.

edit flag offensive delete link more


Thanks Steve for the answer and the example!

Sparkle Eyes gravatar image Sparkle Eyes  ( 2019-05-27 15:30:20 -0500 )edit

Question Tools



Asked: 2019-05-26 16:27:10 -0500

Seen: 1,004 times

Last updated: May 26 '19