Function cras::hasHeader

Function Documentation

bool cras::hasHeader(const ::topic_tools::ShapeShifter &msg)

Tell whether the given message has header field.

Note

This function might be slow. Do not call it on receipt of every message on high-frequency topics.

Parameters:

msg[in] The shape shifter object.

Returns:

Whether there is a header field in the message.