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.
TopicStatistics.h
00001 #ifndef _ROS_rosgraph_msgs_TopicStatistics_h 00002 #define _ROS_rosgraph_msgs_TopicStatistics_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 #include "ros/time.h" 00009 #include "ros/duration.h" 00010 00011 namespace rosgraph_msgs 00012 { 00013 00014 class TopicStatistics : public ros::Msg 00015 { 00016 public: 00017 typedef const char* _topic_type; 00018 _topic_type topic; 00019 typedef const char* _node_pub_type; 00020 _node_pub_type node_pub; 00021 typedef const char* _node_sub_type; 00022 _node_sub_type node_sub; 00023 typedef ros::Time _window_start_type; 00024 _window_start_type window_start; 00025 typedef ros::Time _window_stop_type; 00026 _window_stop_type window_stop; 00027 typedef int32_t _delivered_msgs_type; 00028 _delivered_msgs_type delivered_msgs; 00029 typedef int32_t _dropped_msgs_type; 00030 _dropped_msgs_type dropped_msgs; 00031 typedef int32_t _traffic_type; 00032 _traffic_type traffic; 00033 typedef ros::Duration _period_mean_type; 00034 _period_mean_type period_mean; 00035 typedef ros::Duration _period_stddev_type; 00036 _period_stddev_type period_stddev; 00037 typedef ros::Duration _period_max_type; 00038 _period_max_type period_max; 00039 typedef ros::Duration _stamp_age_mean_type; 00040 _stamp_age_mean_type stamp_age_mean; 00041 typedef ros::Duration _stamp_age_stddev_type; 00042 _stamp_age_stddev_type stamp_age_stddev; 00043 typedef ros::Duration _stamp_age_max_type; 00044 _stamp_age_max_type stamp_age_max; 00045 00046 TopicStatistics(): 00047 topic(""), 00048 node_pub(""), 00049 node_sub(""), 00050 window_start(), 00051 window_stop(), 00052 delivered_msgs(0), 00053 dropped_msgs(0), 00054 traffic(0), 00055 period_mean(), 00056 period_stddev(), 00057 period_max(), 00058 stamp_age_mean(), 00059 stamp_age_stddev(), 00060 stamp_age_max() 00061 { 00062 } 00063 00064 virtual int serialize(unsigned char *outbuffer) const 00065 { 00066 int offset = 0; 00067 uint32_t length_topic = strlen(this->topic); 00068 varToArr(outbuffer + offset, length_topic); 00069 offset += 4; 00070 memcpy(outbuffer + offset, this->topic, length_topic); 00071 offset += length_topic; 00072 uint32_t length_node_pub = strlen(this->node_pub); 00073 varToArr(outbuffer + offset, length_node_pub); 00074 offset += 4; 00075 memcpy(outbuffer + offset, this->node_pub, length_node_pub); 00076 offset += length_node_pub; 00077 uint32_t length_node_sub = strlen(this->node_sub); 00078 varToArr(outbuffer + offset, length_node_sub); 00079 offset += 4; 00080 memcpy(outbuffer + offset, this->node_sub, length_node_sub); 00081 offset += length_node_sub; 00082 *(outbuffer + offset + 0) = (this->window_start.sec >> (8 * 0)) & 0xFF; 00083 *(outbuffer + offset + 1) = (this->window_start.sec >> (8 * 1)) & 0xFF; 00084 *(outbuffer + offset + 2) = (this->window_start.sec >> (8 * 2)) & 0xFF; 00085 *(outbuffer + offset + 3) = (this->window_start.sec >> (8 * 3)) & 0xFF; 00086 offset += sizeof(this->window_start.sec); 00087 *(outbuffer + offset + 0) = (this->window_start.nsec >> (8 * 0)) & 0xFF; 00088 *(outbuffer + offset + 1) = (this->window_start.nsec >> (8 * 1)) & 0xFF; 00089 *(outbuffer + offset + 2) = (this->window_start.nsec >> (8 * 2)) & 0xFF; 00090 *(outbuffer + offset + 3) = (this->window_start.nsec >> (8 * 3)) & 0xFF; 00091 offset += sizeof(this->window_start.nsec); 00092 *(outbuffer + offset + 0) = (this->window_stop.sec >> (8 * 0)) & 0xFF; 00093 *(outbuffer + offset + 1) = (this->window_stop.sec >> (8 * 1)) & 0xFF; 00094 *(outbuffer + offset + 2) = (this->window_stop.sec >> (8 * 2)) & 0xFF; 00095 *(outbuffer + offset + 3) = (this->window_stop.sec >> (8 * 3)) & 0xFF; 00096 offset += sizeof(this->window_stop.sec); 00097 *(outbuffer + offset + 0) = (this->window_stop.nsec >> (8 * 0)) & 0xFF; 00098 *(outbuffer + offset + 1) = (this->window_stop.nsec >> (8 * 1)) & 0xFF; 00099 *(outbuffer + offset + 2) = (this->window_stop.nsec >> (8 * 2)) & 0xFF; 00100 *(outbuffer + offset + 3) = (this->window_stop.nsec >> (8 * 3)) & 0xFF; 00101 offset += sizeof(this->window_stop.nsec); 00102 union { 00103 int32_t real; 00104 uint32_t base; 00105 } u_delivered_msgs; 00106 u_delivered_msgs.real = this->delivered_msgs; 00107 *(outbuffer + offset + 0) = (u_delivered_msgs.base >> (8 * 0)) & 0xFF; 00108 *(outbuffer + offset + 1) = (u_delivered_msgs.base >> (8 * 1)) & 0xFF; 00109 *(outbuffer + offset + 2) = (u_delivered_msgs.base >> (8 * 2)) & 0xFF; 00110 *(outbuffer + offset + 3) = (u_delivered_msgs.base >> (8 * 3)) & 0xFF; 00111 offset += sizeof(this->delivered_msgs); 00112 union { 00113 int32_t real; 00114 uint32_t base; 00115 } u_dropped_msgs; 00116 u_dropped_msgs.real = this->dropped_msgs; 00117 *(outbuffer + offset + 0) = (u_dropped_msgs.base >> (8 * 0)) & 0xFF; 00118 *(outbuffer + offset + 1) = (u_dropped_msgs.base >> (8 * 1)) & 0xFF; 00119 *(outbuffer + offset + 2) = (u_dropped_msgs.base >> (8 * 2)) & 0xFF; 00120 *(outbuffer + offset + 3) = (u_dropped_msgs.base >> (8 * 3)) & 0xFF; 00121 offset += sizeof(this->dropped_msgs); 00122 union { 00123 int32_t real; 00124 uint32_t base; 00125 } u_traffic; 00126 u_traffic.real = this->traffic; 00127 *(outbuffer + offset + 0) = (u_traffic.base >> (8 * 0)) & 0xFF; 00128 *(outbuffer + offset + 1) = (u_traffic.base >> (8 * 1)) & 0xFF; 00129 *(outbuffer + offset + 2) = (u_traffic.base >> (8 * 2)) & 0xFF; 00130 *(outbuffer + offset + 3) = (u_traffic.base >> (8 * 3)) & 0xFF; 00131 offset += sizeof(this->traffic); 00132 *(outbuffer + offset + 0) = (this->period_mean.sec >> (8 * 0)) & 0xFF; 00133 *(outbuffer + offset + 1) = (this->period_mean.sec >> (8 * 1)) & 0xFF; 00134 *(outbuffer + offset + 2) = (this->period_mean.sec >> (8 * 2)) & 0xFF; 00135 *(outbuffer + offset + 3) = (this->period_mean.sec >> (8 * 3)) & 0xFF; 00136 offset += sizeof(this->period_mean.sec); 00137 *(outbuffer + offset + 0) = (this->period_mean.nsec >> (8 * 0)) & 0xFF; 00138 *(outbuffer + offset + 1) = (this->period_mean.nsec >> (8 * 1)) & 0xFF; 00139 *(outbuffer + offset + 2) = (this->period_mean.nsec >> (8 * 2)) & 0xFF; 00140 *(outbuffer + offset + 3) = (this->period_mean.nsec >> (8 * 3)) & 0xFF; 00141 offset += sizeof(this->period_mean.nsec); 00142 *(outbuffer + offset + 0) = (this->period_stddev.sec >> (8 * 0)) & 0xFF; 00143 *(outbuffer + offset + 1) = (this->period_stddev.sec >> (8 * 1)) & 0xFF; 00144 *(outbuffer + offset + 2) = (this->period_stddev.sec >> (8 * 2)) & 0xFF; 00145 *(outbuffer + offset + 3) = (this->period_stddev.sec >> (8 * 3)) & 0xFF; 00146 offset += sizeof(this->period_stddev.sec); 00147 *(outbuffer + offset + 0) = (this->period_stddev.nsec >> (8 * 0)) & 0xFF; 00148 *(outbuffer + offset + 1) = (this->period_stddev.nsec >> (8 * 1)) & 0xFF; 00149 *(outbuffer + offset + 2) = (this->period_stddev.nsec >> (8 * 2)) & 0xFF; 00150 *(outbuffer + offset + 3) = (this->period_stddev.nsec >> (8 * 3)) & 0xFF; 00151 offset += sizeof(this->period_stddev.nsec); 00152 *(outbuffer + offset + 0) = (this->period_max.sec >> (8 * 0)) & 0xFF; 00153 *(outbuffer + offset + 1) = (this->period_max.sec >> (8 * 1)) & 0xFF; 00154 *(outbuffer + offset + 2) = (this->period_max.sec >> (8 * 2)) & 0xFF; 00155 *(outbuffer + offset + 3) = (this->period_max.sec >> (8 * 3)) & 0xFF; 00156 offset += sizeof(this->period_max.sec); 00157 *(outbuffer + offset + 0) = (this->period_max.nsec >> (8 * 0)) & 0xFF; 00158 *(outbuffer + offset + 1) = (this->period_max.nsec >> (8 * 1)) & 0xFF; 00159 *(outbuffer + offset + 2) = (this->period_max.nsec >> (8 * 2)) & 0xFF; 00160 *(outbuffer + offset + 3) = (this->period_max.nsec >> (8 * 3)) & 0xFF; 00161 offset += sizeof(this->period_max.nsec); 00162 *(outbuffer + offset + 0) = (this->stamp_age_mean.sec >> (8 * 0)) & 0xFF; 00163 *(outbuffer + offset + 1) = (this->stamp_age_mean.sec >> (8 * 1)) & 0xFF; 00164 *(outbuffer + offset + 2) = (this->stamp_age_mean.sec >> (8 * 2)) & 0xFF; 00165 *(outbuffer + offset + 3) = (this->stamp_age_mean.sec >> (8 * 3)) & 0xFF; 00166 offset += sizeof(this->stamp_age_mean.sec); 00167 *(outbuffer + offset + 0) = (this->stamp_age_mean.nsec >> (8 * 0)) & 0xFF; 00168 *(outbuffer + offset + 1) = (this->stamp_age_mean.nsec >> (8 * 1)) & 0xFF; 00169 *(outbuffer + offset + 2) = (this->stamp_age_mean.nsec >> (8 * 2)) & 0xFF; 00170 *(outbuffer + offset + 3) = (this->stamp_age_mean.nsec >> (8 * 3)) & 0xFF; 00171 offset += sizeof(this->stamp_age_mean.nsec); 00172 *(outbuffer + offset + 0) = (this->stamp_age_stddev.sec >> (8 * 0)) & 0xFF; 00173 *(outbuffer + offset + 1) = (this->stamp_age_stddev.sec >> (8 * 1)) & 0xFF; 00174 *(outbuffer + offset + 2) = (this->stamp_age_stddev.sec >> (8 * 2)) & 0xFF; 00175 *(outbuffer + offset + 3) = (this->stamp_age_stddev.sec >> (8 * 3)) & 0xFF; 00176 offset += sizeof(this->stamp_age_stddev.sec); 00177 *(outbuffer + offset + 0) = (this->stamp_age_stddev.nsec >> (8 * 0)) & 0xFF; 00178 *(outbuffer + offset + 1) = (this->stamp_age_stddev.nsec >> (8 * 1)) & 0xFF; 00179 *(outbuffer + offset + 2) = (this->stamp_age_stddev.nsec >> (8 * 2)) & 0xFF; 00180 *(outbuffer + offset + 3) = (this->stamp_age_stddev.nsec >> (8 * 3)) & 0xFF; 00181 offset += sizeof(this->stamp_age_stddev.nsec); 00182 *(outbuffer + offset + 0) = (this->stamp_age_max.sec >> (8 * 0)) & 0xFF; 00183 *(outbuffer + offset + 1) = (this->stamp_age_max.sec >> (8 * 1)) & 0xFF; 00184 *(outbuffer + offset + 2) = (this->stamp_age_max.sec >> (8 * 2)) & 0xFF; 00185 *(outbuffer + offset + 3) = (this->stamp_age_max.sec >> (8 * 3)) & 0xFF; 00186 offset += sizeof(this->stamp_age_max.sec); 00187 *(outbuffer + offset + 0) = (this->stamp_age_max.nsec >> (8 * 0)) & 0xFF; 00188 *(outbuffer + offset + 1) = (this->stamp_age_max.nsec >> (8 * 1)) & 0xFF; 00189 *(outbuffer + offset + 2) = (this->stamp_age_max.nsec >> (8 * 2)) & 0xFF; 00190 *(outbuffer + offset + 3) = (this->stamp_age_max.nsec >> (8 * 3)) & 0xFF; 00191 offset += sizeof(this->stamp_age_max.nsec); 00192 return offset; 00193 } 00194 00195 virtual int deserialize(unsigned char *inbuffer) 00196 { 00197 int offset = 0; 00198 uint32_t length_topic; 00199 arrToVar(length_topic, (inbuffer + offset)); 00200 offset += 4; 00201 for(unsigned int k= offset; k< offset+length_topic; ++k){ 00202 inbuffer[k-1]=inbuffer[k]; 00203 } 00204 inbuffer[offset+length_topic-1]=0; 00205 this->topic = (char *)(inbuffer + offset-1); 00206 offset += length_topic; 00207 uint32_t length_node_pub; 00208 arrToVar(length_node_pub, (inbuffer + offset)); 00209 offset += 4; 00210 for(unsigned int k= offset; k< offset+length_node_pub; ++k){ 00211 inbuffer[k-1]=inbuffer[k]; 00212 } 00213 inbuffer[offset+length_node_pub-1]=0; 00214 this->node_pub = (char *)(inbuffer + offset-1); 00215 offset += length_node_pub; 00216 uint32_t length_node_sub; 00217 arrToVar(length_node_sub, (inbuffer + offset)); 00218 offset += 4; 00219 for(unsigned int k= offset; k< offset+length_node_sub; ++k){ 00220 inbuffer[k-1]=inbuffer[k]; 00221 } 00222 inbuffer[offset+length_node_sub-1]=0; 00223 this->node_sub = (char *)(inbuffer + offset-1); 00224 offset += length_node_sub; 00225 this->window_start.sec = ((uint32_t) (*(inbuffer + offset))); 00226 this->window_start.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00227 this->window_start.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00228 this->window_start.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00229 offset += sizeof(this->window_start.sec); 00230 this->window_start.nsec = ((uint32_t) (*(inbuffer + offset))); 00231 this->window_start.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00232 this->window_start.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00233 this->window_start.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00234 offset += sizeof(this->window_start.nsec); 00235 this->window_stop.sec = ((uint32_t) (*(inbuffer + offset))); 00236 this->window_stop.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00237 this->window_stop.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00238 this->window_stop.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00239 offset += sizeof(this->window_stop.sec); 00240 this->window_stop.nsec = ((uint32_t) (*(inbuffer + offset))); 00241 this->window_stop.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00242 this->window_stop.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00243 this->window_stop.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00244 offset += sizeof(this->window_stop.nsec); 00245 union { 00246 int32_t real; 00247 uint32_t base; 00248 } u_delivered_msgs; 00249 u_delivered_msgs.base = 0; 00250 u_delivered_msgs.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); 00251 u_delivered_msgs.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00252 u_delivered_msgs.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00253 u_delivered_msgs.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00254 this->delivered_msgs = u_delivered_msgs.real; 00255 offset += sizeof(this->delivered_msgs); 00256 union { 00257 int32_t real; 00258 uint32_t base; 00259 } u_dropped_msgs; 00260 u_dropped_msgs.base = 0; 00261 u_dropped_msgs.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); 00262 u_dropped_msgs.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00263 u_dropped_msgs.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00264 u_dropped_msgs.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00265 this->dropped_msgs = u_dropped_msgs.real; 00266 offset += sizeof(this->dropped_msgs); 00267 union { 00268 int32_t real; 00269 uint32_t base; 00270 } u_traffic; 00271 u_traffic.base = 0; 00272 u_traffic.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); 00273 u_traffic.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00274 u_traffic.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00275 u_traffic.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00276 this->traffic = u_traffic.real; 00277 offset += sizeof(this->traffic); 00278 this->period_mean.sec = ((uint32_t) (*(inbuffer + offset))); 00279 this->period_mean.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00280 this->period_mean.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00281 this->period_mean.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00282 offset += sizeof(this->period_mean.sec); 00283 this->period_mean.nsec = ((uint32_t) (*(inbuffer + offset))); 00284 this->period_mean.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00285 this->period_mean.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00286 this->period_mean.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00287 offset += sizeof(this->period_mean.nsec); 00288 this->period_stddev.sec = ((uint32_t) (*(inbuffer + offset))); 00289 this->period_stddev.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00290 this->period_stddev.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00291 this->period_stddev.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00292 offset += sizeof(this->period_stddev.sec); 00293 this->period_stddev.nsec = ((uint32_t) (*(inbuffer + offset))); 00294 this->period_stddev.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00295 this->period_stddev.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00296 this->period_stddev.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00297 offset += sizeof(this->period_stddev.nsec); 00298 this->period_max.sec = ((uint32_t) (*(inbuffer + offset))); 00299 this->period_max.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00300 this->period_max.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00301 this->period_max.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00302 offset += sizeof(this->period_max.sec); 00303 this->period_max.nsec = ((uint32_t) (*(inbuffer + offset))); 00304 this->period_max.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00305 this->period_max.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00306 this->period_max.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00307 offset += sizeof(this->period_max.nsec); 00308 this->stamp_age_mean.sec = ((uint32_t) (*(inbuffer + offset))); 00309 this->stamp_age_mean.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00310 this->stamp_age_mean.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00311 this->stamp_age_mean.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00312 offset += sizeof(this->stamp_age_mean.sec); 00313 this->stamp_age_mean.nsec = ((uint32_t) (*(inbuffer + offset))); 00314 this->stamp_age_mean.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00315 this->stamp_age_mean.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00316 this->stamp_age_mean.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00317 offset += sizeof(this->stamp_age_mean.nsec); 00318 this->stamp_age_stddev.sec = ((uint32_t) (*(inbuffer + offset))); 00319 this->stamp_age_stddev.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00320 this->stamp_age_stddev.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00321 this->stamp_age_stddev.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00322 offset += sizeof(this->stamp_age_stddev.sec); 00323 this->stamp_age_stddev.nsec = ((uint32_t) (*(inbuffer + offset))); 00324 this->stamp_age_stddev.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00325 this->stamp_age_stddev.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00326 this->stamp_age_stddev.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00327 offset += sizeof(this->stamp_age_stddev.nsec); 00328 this->stamp_age_max.sec = ((uint32_t) (*(inbuffer + offset))); 00329 this->stamp_age_max.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00330 this->stamp_age_max.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00331 this->stamp_age_max.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00332 offset += sizeof(this->stamp_age_max.sec); 00333 this->stamp_age_max.nsec = ((uint32_t) (*(inbuffer + offset))); 00334 this->stamp_age_max.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00335 this->stamp_age_max.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00336 this->stamp_age_max.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00337 offset += sizeof(this->stamp_age_max.nsec); 00338 return offset; 00339 } 00340 00341 const char * getType(){ return "rosgraph_msgs/TopicStatistics"; }; 00342 const char * getMD5(){ return "10152ed868c5097a5e2e4a89d7daa710"; }; 00343 00344 }; 00345 00346 } 00347 #endif
Generated on Wed Jul 13 2022 23:30:19 by
