14#include <rclcpp/rclcpp.hpp>
28template <
typename T,
typename =
void>
40static inline bool isRmwZenoh()
42 const char* rmw_id = rmw_get_implementation_identifier();
43 return std::string(rmw_id) ==
"rmw_zenoh_cpp";
54std::string getMessageNameVersion()
59 if constexpr (HasMessageVersion<T>::value) {
60 if (T::MESSAGE_VERSION == 0) {
63 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