rosserial library for mbed Inspired by nucho's rosserial library This library is still under development

Dependencies:   MODSERIAL mbed

Dependents:   mbed_roshydro_test

Library still under development!

Revision:
0:30537dec6e0b
diff -r 000000000000 -r 30537dec6e0b industrial_msgs/DebugLevel.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/industrial_msgs/DebugLevel.h	Sun Feb 15 10:53:43 2015 +0000
@@ -0,0 +1,50 @@
+#ifndef _ROS_industrial_msgs_DebugLevel_h
+#define _ROS_industrial_msgs_DebugLevel_h
+
+#include <stdint.h>
+#include <string.h>
+#include <stdlib.h>
+#include "ros/msg.h"
+
+namespace industrial_msgs
+{
+
+  class DebugLevel : public ros::Msg
+  {
+    public:
+      uint8_t val;
+      enum { DEBUG =  5 };
+      enum { INFO =  4 };
+      enum { WARN =  3 };
+      enum { ERROR =  2 };
+      enum { FATAL =  1 };
+      enum { NONE =  0 };
+
+    DebugLevel():
+      val(0)
+    {
+    }
+
+    virtual int serialize(unsigned char *outbuffer) const
+    {
+      int offset = 0;
+      *(outbuffer + offset + 0) = (this->val >> (8 * 0)) & 0xFF;
+      offset += sizeof(this->val);
+      return offset;
+    }
+
+    virtual int deserialize(unsigned char *inbuffer)
+    {
+      int offset = 0;
+      this->val =  ((uint8_t) (*(inbuffer + offset)));
+      offset += sizeof(this->val);
+     return offset;
+    }
+
+    const char * getType(){ return "industrial_msgs/DebugLevel"; };
+    const char * getMD5(){ return "5bfde194fd95d83abdb02a03ee48fbe7"; };
+
+  };
+
+}
+#endif