empty.cpp
Go to the documentation of this file.
00001 
00004 /*****************************************************************************
00005 ** Includes
00006 *****************************************************************************/
00007 
00008 #include "../../include/mm_core_msgs/empty.hpp"
00009 
00010 /*****************************************************************************
00011 ** Namespaces
00012 *****************************************************************************/
00013 
00014 namespace mm_messages {
00015 
00016 /*****************************************************************************
00017 ** Implementation
00018 *****************************************************************************/
00019 
00020 void Message<mm_core_msgs::Empty>::encode(const mm_core_msgs::Empty& nothing_to_see_here, ByteArray& buffer) {
00021   // publishers always send empty buffers, but in case others use this
00022   if(!buffer.empty()) {
00023     buffer.clear();
00024   }
00025 }
00026 
00027 mm_core_msgs::Empty Message<mm_core_msgs::Empty>::decode(const unsigned char* buffer, const unsigned int& size) {
00028   return mm_core_msgs::Empty();
00029 }
00030 
00031 } // namespace mm_messages


mm_core_msgs
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 21:13:21