catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GetJointState.h Source File

GetJointState.h

00001 #ifndef _ROS_SERVICE_GetJointState_h
00002 #define _ROS_SERVICE_GetJointState_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 #include "sensor_msgs/JointState.h"
00008 
00009 namespace jsk_interactive_marker
00010 {
00011 
00012 static const char GETJOINTSTATE[] = "jsk_interactive_marker/GetJointState";
00013 
00014   class GetJointStateRequest : public ros::Msg
00015   {
00016     public:
00017 
00018     GetJointStateRequest()
00019     {
00020     }
00021 
00022     virtual int serialize(unsigned char *outbuffer) const
00023     {
00024       int offset = 0;
00025       return offset;
00026     }
00027 
00028     virtual int deserialize(unsigned char *inbuffer)
00029     {
00030       int offset = 0;
00031      return offset;
00032     }
00033 
00034     virtual const char * getType(){ return GETJOINTSTATE; };
00035     virtual const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; };
00036 
00037   };
00038 
00039   class GetJointStateResponse : public ros::Msg
00040   {
00041     public:
00042       typedef sensor_msgs::JointState _joint_state_type;
00043       _joint_state_type joint_state;
00044 
00045     GetJointStateResponse():
00046       joint_state()
00047     {
00048     }
00049 
00050     virtual int serialize(unsigned char *outbuffer) const
00051     {
00052       int offset = 0;
00053       offset += this->joint_state.serialize(outbuffer + offset);
00054       return offset;
00055     }
00056 
00057     virtual int deserialize(unsigned char *inbuffer)
00058     {
00059       int offset = 0;
00060       offset += this->joint_state.deserialize(inbuffer + offset);
00061      return offset;
00062     }
00063 
00064     virtual const char * getType(){ return GETJOINTSTATE; };
00065     virtual const char * getMD5(){ return "9ca061465ef0ed08771ed240c43789f5"; };
00066 
00067   };
00068 
00069   class GetJointState {
00070     public:
00071     typedef GetJointStateRequest Request;
00072     typedef GetJointStateResponse Response;
00073   };
00074 
00075 }
00076 #endif