Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
EnableCmd.h
00001 #ifndef _ROS_catchrobo_msgs_EnableCmd_h 00002 #define _ROS_catchrobo_msgs_EnableCmd_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 00009 namespace catchrobo_msgs 00010 { 00011 00012 class EnableCmd : public ros::Msg 00013 { 00014 public: 00015 typedef bool _is_enable_type; 00016 _is_enable_type is_enable; 00017 typedef bool _enable_check_type; 00018 _enable_check_type enable_check; 00019 00020 EnableCmd(): 00021 is_enable(0), 00022 enable_check(0) 00023 { 00024 } 00025 00026 virtual int serialize(unsigned char *outbuffer) const 00027 { 00028 int offset = 0; 00029 union { 00030 bool real; 00031 uint8_t base; 00032 } u_is_enable; 00033 u_is_enable.real = this->is_enable; 00034 *(outbuffer + offset + 0) = (u_is_enable.base >> (8 * 0)) & 0xFF; 00035 offset += sizeof(this->is_enable); 00036 union { 00037 bool real; 00038 uint8_t base; 00039 } u_enable_check; 00040 u_enable_check.real = this->enable_check; 00041 *(outbuffer + offset + 0) = (u_enable_check.base >> (8 * 0)) & 0xFF; 00042 offset += sizeof(this->enable_check); 00043 return offset; 00044 } 00045 00046 virtual int deserialize(unsigned char *inbuffer) 00047 { 00048 int offset = 0; 00049 union { 00050 bool real; 00051 uint8_t base; 00052 } u_is_enable; 00053 u_is_enable.base = 0; 00054 u_is_enable.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00055 this->is_enable = u_is_enable.real; 00056 offset += sizeof(this->is_enable); 00057 union { 00058 bool real; 00059 uint8_t base; 00060 } u_enable_check; 00061 u_enable_check.base = 0; 00062 u_enable_check.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00063 this->enable_check = u_enable_check.real; 00064 offset += sizeof(this->enable_check); 00065 return offset; 00066 } 00067 00068 virtual const char * getType(){ return "catchrobo_msgs/EnableCmd"; }; 00069 virtual const char * getMD5(){ return "b04b06a3902cdb5ca1349364a7c14d35"; }; 00070 00071 }; 00072 00073 } 00074 #endif
Generated on Mon Sep 26 2022 13:47:00 by
