36 #ifndef RC_DYNAMICS_API_MSG_UTILS_H 37 #define RC_DYNAMICS_API_MSG_UTILS_H 43 using namespace ::roboception::msgs;
45 bool isPbMessageOfType(
const std::string& pb_msg_type, const ::google::protobuf::Message& msg)
47 return msg.GetDescriptor()->full_name() == pb_msg_type;
50 template <
class PbMsgType>
53 return msg.GetDescriptor()->full_name() == PbMsgType::descriptor()->full_name();
58 #endif // RC_DYNAMICS_API_MSG_UTILS_H bool isPbMessageOfType(const std::string &pb_msg_type, const ::google::protobuf::Message &msg)