17 #ifndef MESSAGES_UTILITY_H
18 #define MESSAGES_UTILITY_H
22 #include "msgs/MessageTypes.hh"
49 const std::string &_data =
"");
54 void Init(google::protobuf::Message &_message,
const std::string &_id =
"");
58 void Stamp(msgs::Header *_header);
62 void Stamp(msgs::Time *_time);
65 std::string Package(
const std::string &type,
66 const google::protobuf::Message &message);
206 const google::protobuf::FieldDescriptor *GetFD(
207 google::protobuf::Message &message,
const std::string &name);
213 msgs::Header *
GetHeader(google::protobuf::Message &_message);