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

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?

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

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

Comments

Thanks Steve for the answer and the example!

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

Question Tools

2 followers

Stats

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

Seen: 1,198 times

Last updated: May 26 '19