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
CheckCollision.h
00001 #ifndef _ROS_SERVICE_CheckCollision_h 00002 #define _ROS_SERVICE_CheckCollision_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 #include "geometry_msgs/PoseStamped.h" 00008 #include "sensor_msgs/JointState.h" 00009 00010 namespace jsk_recognition_msgs 00011 { 00012 00013 static const char CHECKCOLLISION[] = "jsk_recognition_msgs/CheckCollision"; 00014 00015 class CheckCollisionRequest : public ros::Msg 00016 { 00017 public: 00018 typedef sensor_msgs::JointState _joint_type; 00019 _joint_type joint; 00020 typedef geometry_msgs::PoseStamped _pose_type; 00021 _pose_type pose; 00022 00023 CheckCollisionRequest(): 00024 joint(), 00025 pose() 00026 { 00027 } 00028 00029 virtual int serialize(unsigned char *outbuffer) const 00030 { 00031 int offset = 0; 00032 offset += this->joint.serialize(outbuffer + offset); 00033 offset += this->pose.serialize(outbuffer + offset); 00034 return offset; 00035 } 00036 00037 virtual int deserialize(unsigned char *inbuffer) 00038 { 00039 int offset = 0; 00040 offset += this->joint.deserialize(inbuffer + offset); 00041 offset += this->pose.deserialize(inbuffer + offset); 00042 return offset; 00043 } 00044 00045 virtual const char * getType(){ return CHECKCOLLISION; }; 00046 virtual const char * getMD5(){ return "2bfa8f4c4d92353b38f908fbabfac432"; }; 00047 00048 }; 00049 00050 class CheckCollisionResponse : public ros::Msg 00051 { 00052 public: 00053 typedef bool _result_type; 00054 _result_type result; 00055 00056 CheckCollisionResponse(): 00057 result(0) 00058 { 00059 } 00060 00061 virtual int serialize(unsigned char *outbuffer) const 00062 { 00063 int offset = 0; 00064 union { 00065 bool real; 00066 uint8_t base; 00067 } u_result; 00068 u_result.real = this->result; 00069 *(outbuffer + offset + 0) = (u_result.base >> (8 * 0)) & 0xFF; 00070 offset += sizeof(this->result); 00071 return offset; 00072 } 00073 00074 virtual int deserialize(unsigned char *inbuffer) 00075 { 00076 int offset = 0; 00077 union { 00078 bool real; 00079 uint8_t base; 00080 } u_result; 00081 u_result.base = 0; 00082 u_result.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00083 this->result = u_result.real; 00084 offset += sizeof(this->result); 00085 return offset; 00086 } 00087 00088 virtual const char * getType(){ return CHECKCOLLISION; }; 00089 virtual const char * getMD5(){ return "eb13ac1f1354ccecb7941ee8fa2192e8"; }; 00090 00091 }; 00092 00093 class CheckCollision { 00094 public: 00095 typedef CheckCollisionRequest Request; 00096 typedef CheckCollisionResponse Response; 00097 }; 00098 00099 } 00100 #endif
Generated on Mon Sep 26 2022 13:47:00 by
