added 1 custom message

Dependencies:   BufferedSerial

Fork of ros_lib_kinetic by Gary Servin

Committer:
garyservin
Date:
Sat Dec 31 00:48:34 2016 +0000
Revision:
0:9e9b7db60fd5
Initial commit, generated based on a clean kinetic-desktop-full

Who changed what in which revision?

UserRevisionLine numberNew contents of line
garyservin 0:9e9b7db60fd5 1 #ifndef _ROS_bond_Constants_h
garyservin 0:9e9b7db60fd5 2 #define _ROS_bond_Constants_h
garyservin 0:9e9b7db60fd5 3
garyservin 0:9e9b7db60fd5 4 #include <stdint.h>
garyservin 0:9e9b7db60fd5 5 #include <string.h>
garyservin 0:9e9b7db60fd5 6 #include <stdlib.h>
garyservin 0:9e9b7db60fd5 7 #include "ros/msg.h"
garyservin 0:9e9b7db60fd5 8
garyservin 0:9e9b7db60fd5 9 namespace bond
garyservin 0:9e9b7db60fd5 10 {
garyservin 0:9e9b7db60fd5 11
garyservin 0:9e9b7db60fd5 12 class Constants : public ros::Msg
garyservin 0:9e9b7db60fd5 13 {
garyservin 0:9e9b7db60fd5 14 public:
garyservin 0:9e9b7db60fd5 15 enum { DEAD_PUBLISH_PERIOD = 0.05 };
garyservin 0:9e9b7db60fd5 16 enum { DEFAULT_CONNECT_TIMEOUT = 10.0 };
garyservin 0:9e9b7db60fd5 17 enum { DEFAULT_HEARTBEAT_TIMEOUT = 4.0 };
garyservin 0:9e9b7db60fd5 18 enum { DEFAULT_DISCONNECT_TIMEOUT = 2.0 };
garyservin 0:9e9b7db60fd5 19 enum { DEFAULT_HEARTBEAT_PERIOD = 1.0 };
garyservin 0:9e9b7db60fd5 20 enum { DISABLE_HEARTBEAT_TIMEOUT_PARAM = /bond_disable_heartbeat_timeout };
garyservin 0:9e9b7db60fd5 21
garyservin 0:9e9b7db60fd5 22 Constants()
garyservin 0:9e9b7db60fd5 23 {
garyservin 0:9e9b7db60fd5 24 }
garyservin 0:9e9b7db60fd5 25
garyservin 0:9e9b7db60fd5 26 virtual int serialize(unsigned char *outbuffer) const
garyservin 0:9e9b7db60fd5 27 {
garyservin 0:9e9b7db60fd5 28 int offset = 0;
garyservin 0:9e9b7db60fd5 29 return offset;
garyservin 0:9e9b7db60fd5 30 }
garyservin 0:9e9b7db60fd5 31
garyservin 0:9e9b7db60fd5 32 virtual int deserialize(unsigned char *inbuffer)
garyservin 0:9e9b7db60fd5 33 {
garyservin 0:9e9b7db60fd5 34 int offset = 0;
garyservin 0:9e9b7db60fd5 35 return offset;
garyservin 0:9e9b7db60fd5 36 }
garyservin 0:9e9b7db60fd5 37
garyservin 0:9e9b7db60fd5 38 const char * getType(){ return "bond/Constants"; };
garyservin 0:9e9b7db60fd5 39 const char * getMD5(){ return "6fc594dc1d7bd7919077042712f8c8b0"; };
garyservin 0:9e9b7db60fd5 40
garyservin 0:9e9b7db60fd5 41 };
garyservin 0:9e9b7db60fd5 42
garyservin 0:9e9b7db60fd5 43 }
garyservin 0:9e9b7db60fd5 44 #endif