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
EnvironmentLock.h
00001 #ifndef _ROS_SERVICE_EnvironmentLock_h 00002 #define _ROS_SERVICE_EnvironmentLock_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 00008 namespace jsk_recognition_msgs 00009 { 00010 00011 static const char ENVIRONMENTLOCK[] = "jsk_recognition_msgs/EnvironmentLock"; 00012 00013 class EnvironmentLockRequest : public ros::Msg 00014 { 00015 public: 00016 00017 EnvironmentLockRequest() 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 virtual const char * getType(){ return ENVIRONMENTLOCK; }; 00034 virtual const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; 00035 00036 }; 00037 00038 class EnvironmentLockResponse : public ros::Msg 00039 { 00040 public: 00041 typedef uint32_t _environment_id_type; 00042 _environment_id_type environment_id; 00043 00044 EnvironmentLockResponse(): 00045 environment_id(0) 00046 { 00047 } 00048 00049 virtual int serialize(unsigned char *outbuffer) const 00050 { 00051 int offset = 0; 00052 *(outbuffer + offset + 0) = (this->environment_id >> (8 * 0)) & 0xFF; 00053 *(outbuffer + offset + 1) = (this->environment_id >> (8 * 1)) & 0xFF; 00054 *(outbuffer + offset + 2) = (this->environment_id >> (8 * 2)) & 0xFF; 00055 *(outbuffer + offset + 3) = (this->environment_id >> (8 * 3)) & 0xFF; 00056 offset += sizeof(this->environment_id); 00057 return offset; 00058 } 00059 00060 virtual int deserialize(unsigned char *inbuffer) 00061 { 00062 int offset = 0; 00063 this->environment_id = ((uint32_t) (*(inbuffer + offset))); 00064 this->environment_id |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00065 this->environment_id |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00066 this->environment_id |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00067 offset += sizeof(this->environment_id); 00068 return offset; 00069 } 00070 00071 virtual const char * getType(){ return ENVIRONMENTLOCK; }; 00072 virtual const char * getMD5(){ return "109afc0d3bd22aa461d45c8ef5ab6d75"; }; 00073 00074 }; 00075 00076 class EnvironmentLock { 00077 public: 00078 typedef EnvironmentLockRequest Request; 00079 typedef EnvironmentLockResponse Response; 00080 }; 00081 00082 } 00083 #endif
Generated on Mon Sep 26 2022 13:47:00 by
