15 #include <type_traits>
28 template<
typename T,
typename =
void>
41 static bool isRmwZenoh()
43 const char * rmw_id = rmw_get_implementation_identifier();
44 return std::string(rmw_id) ==
"rmw_zenoh_cpp";
54 std::string getMessageNameVersion()
59 if constexpr (HasMessageVersion<T>::value) {
60 if (T::MESSAGE_VERSION == 0) {
return "";}
61 return "_v" + std::to_string(T::MESSAGE_VERSION);
Trait to check if a message type T has a MESSAGE_VERSION constant.
Definition: message_version.hpp:29