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.
Dependents: mobile_robot mobile_robot_ver2
QueryCalibrationState.h
00001 #ifndef _ROS_SERVICE_QueryCalibrationState_h 00002 #define _ROS_SERVICE_QueryCalibrationState_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 00008 namespace control_msgs 00009 { 00010 00011 static const char QUERYCALIBRATIONSTATE[] = "control_msgs/QueryCalibrationState"; 00012 00013 class QueryCalibrationStateRequest : public ros::Msg 00014 { 00015 public: 00016 00017 QueryCalibrationStateRequest() 00018 { 00019 } 00020 00021 virtual int serialize(unsigned char *outbuffer) const 00022 { 00023 int offset = 0; 00024 return offset; 00025 } 00026 00027 virtual int deserialize(unsigned char *inbuffer) 00028 { 00029 int offset = 0; 00030 return offset; 00031 } 00032 00033 const char * getType(){ return QUERYCALIBRATIONSTATE; }; 00034 const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; 00035 00036 }; 00037 00038 class QueryCalibrationStateResponse : public ros::Msg 00039 { 00040 public: 00041 typedef bool _is_calibrated_type; 00042 _is_calibrated_type is_calibrated; 00043 00044 QueryCalibrationStateResponse(): 00045 is_calibrated(0) 00046 { 00047 } 00048 00049 virtual int serialize(unsigned char *outbuffer) const 00050 { 00051 int offset = 0; 00052 union { 00053 bool real; 00054 uint8_t base; 00055 } u_is_calibrated; 00056 u_is_calibrated.real = this->is_calibrated; 00057 *(outbuffer + offset + 0) = (u_is_calibrated.base >> (8 * 0)) & 0xFF; 00058 offset += sizeof(this->is_calibrated); 00059 return offset; 00060 } 00061 00062 virtual int deserialize(unsigned char *inbuffer) 00063 { 00064 int offset = 0; 00065 union { 00066 bool real; 00067 uint8_t base; 00068 } u_is_calibrated; 00069 u_is_calibrated.base = 0; 00070 u_is_calibrated.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00071 this->is_calibrated = u_is_calibrated.real; 00072 offset += sizeof(this->is_calibrated); 00073 return offset; 00074 } 00075 00076 const char * getType(){ return QUERYCALIBRATIONSTATE; }; 00077 const char * getMD5(){ return "28af3beedcb84986b8e470dc5470507d"; }; 00078 00079 }; 00080 00081 class QueryCalibrationState { 00082 public: 00083 typedef QueryCalibrationStateRequest Request; 00084 typedef QueryCalibrationStateResponse Response; 00085 }; 00086 00087 } 00088 #endif
Generated on Tue Jul 12 2022 20:38:12 by
