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
Detect.h
00001 #ifndef _ROS_SERVICE_Detect_h 00002 #define _ROS_SERVICE_Detect_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 #include "sensor_msgs/Image.h" 00008 #include "sensor_msgs/CameraInfo.h" 00009 #include "posedetection_msgs/ObjectDetection.h" 00010 00011 namespace posedetection_msgs 00012 { 00013 00014 static const char DETECT[] = "posedetection_msgs/Detect"; 00015 00016 class DetectRequest : public ros::Msg 00017 { 00018 public: 00019 typedef sensor_msgs::Image _image_type; 00020 _image_type image; 00021 typedef sensor_msgs::CameraInfo _camera_info_type; 00022 _camera_info_type camera_info; 00023 00024 DetectRequest(): 00025 image(), 00026 camera_info() 00027 { 00028 } 00029 00030 virtual int serialize(unsigned char *outbuffer) const 00031 { 00032 int offset = 0; 00033 offset += this->image.serialize(outbuffer + offset); 00034 offset += this->camera_info.serialize(outbuffer + offset); 00035 return offset; 00036 } 00037 00038 virtual int deserialize(unsigned char *inbuffer) 00039 { 00040 int offset = 0; 00041 offset += this->image.deserialize(inbuffer + offset); 00042 offset += this->camera_info.deserialize(inbuffer + offset); 00043 return offset; 00044 } 00045 00046 virtual const char * getType(){ return DETECT; }; 00047 virtual const char * getMD5(){ return "bfee1901edaf2aa4d9f0844a03ff634f"; }; 00048 00049 }; 00050 00051 class DetectResponse : public ros::Msg 00052 { 00053 public: 00054 typedef posedetection_msgs::ObjectDetection _object_detection_type; 00055 _object_detection_type object_detection; 00056 00057 DetectResponse(): 00058 object_detection() 00059 { 00060 } 00061 00062 virtual int serialize(unsigned char *outbuffer) const 00063 { 00064 int offset = 0; 00065 offset += this->object_detection.serialize(outbuffer + offset); 00066 return offset; 00067 } 00068 00069 virtual int deserialize(unsigned char *inbuffer) 00070 { 00071 int offset = 0; 00072 offset += this->object_detection.deserialize(inbuffer + offset); 00073 return offset; 00074 } 00075 00076 virtual const char * getType(){ return DETECT; }; 00077 virtual const char * getMD5(){ return "7b25cb2a35e9a4692af3117eeddab11b"; }; 00078 00079 }; 00080 00081 class Detect { 00082 public: 00083 typedef DetectRequest Request; 00084 typedef DetectResponse Response; 00085 }; 00086 00087 } 00088 #endif
Generated on Mon Sep 26 2022 13:47:00 by
