empty.cpp
Go to the documentation of this file.
1 
4 /*****************************************************************************
5 ** Includes
6 *****************************************************************************/
7 
8 #include "../../include/mm_core_msgs/empty.hpp"
9 
10 /*****************************************************************************
11 ** Namespaces
12 *****************************************************************************/
13 
14 namespace mm_messages {
15 
16 /*****************************************************************************
17 ** Implementation
18 *****************************************************************************/
19 
20 void Message<mm_core_msgs::Empty>::encode(const mm_core_msgs::Empty& nothing_to_see_here, ByteArray& buffer) {
21  // publishers always send empty buffers, but in case others use this
22  if(!buffer.empty()) {
23  buffer.clear();
24  }
25 }
26 
27 mm_core_msgs::Empty Message<mm_core_msgs::Empty>::decode(const unsigned char* buffer, const unsigned int& size) {
28  return mm_core_msgs::Empty();
29 }
30 
31 } // namespace mm_messages
static void encode(const T &msg, ByteArray &buffer)
std::vector< unsigned char > ByteArray
static T decode(const unsigned char *buffer, const unsigned int &size)


mm_core_msgs
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:52:12