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

common-msgs vs std-msgs ?

asked 2017-02-27 03:04:32 -0600

sam26 gravatar image

updated 2017-02-27 03:05:49 -0600

When various message handling packages like actionlib, navigation, sensor, geometry are included in the common_msgs stack, why is std_msgs package separated? How is std_msgs package different from the others mentioned above, for it to be excluded from the common_msgs stack?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-02-27 05:23:18 -0600

mgruhler gravatar image

updated 2017-02-28 02:50:39 -0600

I can only guess, but to me the following seems to be the rational behind it:

Description on std_msgs:

Contains minimal messages of primitive data types and multiarrays. Intended for quick prototyping, not production use.

The full explanation/discussion can be found on discourse.

EDIT

With semantics is meant that you can derive from the message name and the names of it fields what it transports. To give an example (stolen more or less from discourse ;-) ):

If you would like to send a temperature, you could just use a std_msgs/Float message. However, if you would inspect the message, it is not clear what this should be. Is it a temperature, and if yes in Celsius, Fahrenheit, ..., or rather air pressure or the distance to an object? All the messages says is it is a float and contains a field data.

If you however use a dedicated sensor_msgs/Temperature message, you are fairly certain that this should actually be a temperature and that this temperature should be in degree celsius (check the source for the full description).

edit flag offensive delete link more

Comments

1

Msgs in std_msgs wrap primitive data types, but don't add any semantics. The msg pkgs in common_msgs do add semantics.

gvdhoorn gravatar image gvdhoorn  ( 2017-02-27 07:42:07 -0600 )edit

and by semantics , you mean ??

sam26 gravatar image sam26  ( 2017-02-27 08:05:18 -0600 )edit

see edit above.

mgruhler gravatar image mgruhler  ( 2017-02-28 02:50:45 -0600 )edit

That helped!! Thanks

sam26 gravatar image sam26  ( 2017-02-28 03:24:48 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-02-27 03:04:32 -0600

Seen: 621 times

Last updated: Feb 28 '17