Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In C++ you can "ask" the message type instead of using an API like in Python.

#include "mypackage/MyMessage.h"
#include "ros/message_traits.h"
std::string md5sum = message_traits::md5sum<MyMessage>();

In C++ you can "ask" the message type instead of using an API like in Python.

#include "mypackage/MyMessage.h"
#include "ros/message_traits.h"
std::string md5sum = message_traits::md5sum<MyMessage>();

Since you need to have the message type for that at compile time this won't work when you have the message type as a string only.