Ask Your Question
0

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?

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

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

Comments

Thanks Steve for the answer and the example!

Sparkle Eyes gravatar imageSparkle Eyes ( 2019-05-27 15:30:20 -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-05-26 16:27:10 -0500

Seen: 25 times

Last updated: May 26