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
TimeRange.h
00001 #ifndef _ROS_jsk_recognition_msgs_TimeRange_h 00002 #define _ROS_jsk_recognition_msgs_TimeRange_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 #include "std_msgs/Header.h" 00009 #include "ros/time.h" 00010 00011 namespace jsk_recognition_msgs 00012 { 00013 00014 class TimeRange : public ros::Msg 00015 { 00016 public: 00017 typedef std_msgs::Header _header_type; 00018 _header_type header; 00019 typedef ros::Time _start_type; 00020 _start_type start; 00021 typedef ros::Time _end_type; 00022 _end_type end; 00023 00024 TimeRange(): 00025 header(), 00026 start(), 00027 end() 00028 { 00029 } 00030 00031 virtual int serialize(unsigned char *outbuffer) const 00032 { 00033 int offset = 0; 00034 offset += this->header.serialize(outbuffer + offset); 00035 *(outbuffer + offset + 0) = (this->start.sec >> (8 * 0)) & 0xFF; 00036 *(outbuffer + offset + 1) = (this->start.sec >> (8 * 1)) & 0xFF; 00037 *(outbuffer + offset + 2) = (this->start.sec >> (8 * 2)) & 0xFF; 00038 *(outbuffer + offset + 3) = (this->start.sec >> (8 * 3)) & 0xFF; 00039 offset += sizeof(this->start.sec); 00040 *(outbuffer + offset + 0) = (this->start.nsec >> (8 * 0)) & 0xFF; 00041 *(outbuffer + offset + 1) = (this->start.nsec >> (8 * 1)) & 0xFF; 00042 *(outbuffer + offset + 2) = (this->start.nsec >> (8 * 2)) & 0xFF; 00043 *(outbuffer + offset + 3) = (this->start.nsec >> (8 * 3)) & 0xFF; 00044 offset += sizeof(this->start.nsec); 00045 *(outbuffer + offset + 0) = (this->end.sec >> (8 * 0)) & 0xFF; 00046 *(outbuffer + offset + 1) = (this->end.sec >> (8 * 1)) & 0xFF; 00047 *(outbuffer + offset + 2) = (this->end.sec >> (8 * 2)) & 0xFF; 00048 *(outbuffer + offset + 3) = (this->end.sec >> (8 * 3)) & 0xFF; 00049 offset += sizeof(this->end.sec); 00050 *(outbuffer + offset + 0) = (this->end.nsec >> (8 * 0)) & 0xFF; 00051 *(outbuffer + offset + 1) = (this->end.nsec >> (8 * 1)) & 0xFF; 00052 *(outbuffer + offset + 2) = (this->end.nsec >> (8 * 2)) & 0xFF; 00053 *(outbuffer + offset + 3) = (this->end.nsec >> (8 * 3)) & 0xFF; 00054 offset += sizeof(this->end.nsec); 00055 return offset; 00056 } 00057 00058 virtual int deserialize(unsigned char *inbuffer) 00059 { 00060 int offset = 0; 00061 offset += this->header.deserialize(inbuffer + offset); 00062 this->start.sec = ((uint32_t) (*(inbuffer + offset))); 00063 this->start.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00064 this->start.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00065 this->start.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00066 offset += sizeof(this->start.sec); 00067 this->start.nsec = ((uint32_t) (*(inbuffer + offset))); 00068 this->start.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00069 this->start.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00070 this->start.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00071 offset += sizeof(this->start.nsec); 00072 this->end.sec = ((uint32_t) (*(inbuffer + offset))); 00073 this->end.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00074 this->end.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00075 this->end.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00076 offset += sizeof(this->end.sec); 00077 this->end.nsec = ((uint32_t) (*(inbuffer + offset))); 00078 this->end.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00079 this->end.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00080 this->end.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00081 offset += sizeof(this->end.nsec); 00082 return offset; 00083 } 00084 00085 virtual const char * getType(){ return "jsk_recognition_msgs/TimeRange"; }; 00086 virtual const char * getMD5(){ return "a8a69e1e51e3731790c8e4120a725398"; }; 00087 00088 }; 00089 00090 } 00091 #endif
Generated on Mon Sep 26 2022 13:47:04 by
