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

Why Empty message in std_msg?

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

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

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 -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-05-26 16:27:10 -0600

Seen: 558 times

Last updated: May 26 '19