ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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>();
2 | No.2 Revision |
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.