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.
WaypointPull.h
00001 #ifndef _ROS_SERVICE_WaypointPull_h 00002 #define _ROS_SERVICE_WaypointPull_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 00008 namespace mavros_msgs 00009 { 00010 00011 static const char WAYPOINTPULL[] = "mavros_msgs/WaypointPull"; 00012 00013 class WaypointPullRequest : public ros::Msg 00014 { 00015 public: 00016 00017 WaypointPullRequest() 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 WAYPOINTPULL; }; 00034 const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; 00035 00036 }; 00037 00038 class WaypointPullResponse : public ros::Msg 00039 { 00040 public: 00041 typedef bool _success_type; 00042 _success_type success; 00043 typedef uint32_t _wp_received_type; 00044 _wp_received_type wp_received; 00045 00046 WaypointPullResponse(): 00047 success(0), 00048 wp_received(0) 00049 { 00050 } 00051 00052 virtual int serialize(unsigned char *outbuffer) const 00053 { 00054 int offset = 0; 00055 union { 00056 bool real; 00057 uint8_t base; 00058 } u_success; 00059 u_success.real = this->success; 00060 *(outbuffer + offset + 0) = (u_success.base >> (8 * 0)) & 0xFF; 00061 offset += sizeof(this->success); 00062 *(outbuffer + offset + 0) = (this->wp_received >> (8 * 0)) & 0xFF; 00063 *(outbuffer + offset + 1) = (this->wp_received >> (8 * 1)) & 0xFF; 00064 *(outbuffer + offset + 2) = (this->wp_received >> (8 * 2)) & 0xFF; 00065 *(outbuffer + offset + 3) = (this->wp_received >> (8 * 3)) & 0xFF; 00066 offset += sizeof(this->wp_received); 00067 return offset; 00068 } 00069 00070 virtual int deserialize(unsigned char *inbuffer) 00071 { 00072 int offset = 0; 00073 union { 00074 bool real; 00075 uint8_t base; 00076 } u_success; 00077 u_success.base = 0; 00078 u_success.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00079 this->success = u_success.real; 00080 offset += sizeof(this->success); 00081 this->wp_received = ((uint32_t) (*(inbuffer + offset))); 00082 this->wp_received |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00083 this->wp_received |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00084 this->wp_received |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00085 offset += sizeof(this->wp_received); 00086 return offset; 00087 } 00088 00089 const char * getType(){ return WAYPOINTPULL; }; 00090 const char * getMD5(){ return "a8d9ecef8fb37028d2db2a9aa4ed7e79"; }; 00091 00092 }; 00093 00094 class WaypointPull { 00095 public: 00096 typedef WaypointPullRequest Request; 00097 typedef WaypointPullResponse Response; 00098 }; 00099 00100 } 00101 #endif
Generated on Thu Jul 14 2022 10:09:24 by
1.7.2