37 #define _UNIQUE_ID_H_ 1 48 #include <boost/uuid/uuid.hpp> 49 #include <boost/uuid/uuid_io.hpp> 52 #include <uuid_msgs/UniqueID.h> 88 std::copy(msg.uuid.begin(), msg.uuid.end(), uu.begin());
180 std::copy(uu.begin(), uu.end(), msg.uuid.begin());
194 return boost::uuids::to_string(uu);
204 return boost::uuids::to_string(
fromMsg(msg));
209 #endif // _UNIQUE_ID_H_ static boost::uuids::uuid fromRandom(void)
Generate a random UUID object.
static boost::uuids::uuid fromMsg(uuid_msgs::UniqueID const &msg)
Create UUID object from UniqueID message.
C++ namespace for unique_id helper functions.
static boost::uuids::random_generator genRandom
static boost::uuids::uuid genTime(ros::Time uuid_time, uint64_t hw_addr)
static boost::uuids::string_generator genString
static boost::uuids::uuid fromTime(ros::Time timestamp, uint64_t hw_addr)
Generate a Time Based UUID object. Users are recommended to seed the random number generator using sr...
uuid_msgs::UniqueID UniqueID
static std::string toHexString(boost::uuids::uuid const &uu)
Get the canonical string representation for a boost UUID.
Private implementation details for C++ unique_id interface.
static boost::uuids::uuid fromURL(std::string const &url)
Generate UUID from Uniform Resource Identifier.
static boost::uuids::name_generator genURL(url_namespace_uuid)
static uuid_msgs::UniqueID toMsg(boost::uuids::uuid const &uu)
Create a UniqueID message from a UUID object.
static boost::uuids::uuid fromHexString(std::string const &str)
Generate UUID from canonical hex string.