catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ExecuteKnownTrajectory.h Source File

ExecuteKnownTrajectory.h

00001 #ifndef _ROS_SERVICE_ExecuteKnownTrajectory_h
00002 #define _ROS_SERVICE_ExecuteKnownTrajectory_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 #include "moveit_msgs/MoveItErrorCodes.h"
00008 #include "moveit_msgs/RobotTrajectory.h"
00009 
00010 namespace moveit_msgs
00011 {
00012 
00013 static const char EXECUTEKNOWNTRAJECTORY[] = "moveit_msgs/ExecuteKnownTrajectory";
00014 
00015   class ExecuteKnownTrajectoryRequest : public ros::Msg
00016   {
00017     public:
00018       typedef moveit_msgs::RobotTrajectory _trajectory_type;
00019       _trajectory_type trajectory;
00020       typedef bool _wait_for_execution_type;
00021       _wait_for_execution_type wait_for_execution;
00022 
00023     ExecuteKnownTrajectoryRequest():
00024       trajectory(),
00025       wait_for_execution(0)
00026     {
00027     }
00028 
00029     virtual int serialize(unsigned char *outbuffer) const
00030     {
00031       int offset = 0;
00032       offset += this->trajectory.serialize(outbuffer + offset);
00033       union {
00034         bool real;
00035         uint8_t base;
00036       } u_wait_for_execution;
00037       u_wait_for_execution.real = this->wait_for_execution;
00038       *(outbuffer + offset + 0) = (u_wait_for_execution.base >> (8 * 0)) & 0xFF;
00039       offset += sizeof(this->wait_for_execution);
00040       return offset;
00041     }
00042 
00043     virtual int deserialize(unsigned char *inbuffer)
00044     {
00045       int offset = 0;
00046       offset += this->trajectory.deserialize(inbuffer + offset);
00047       union {
00048         bool real;
00049         uint8_t base;
00050       } u_wait_for_execution;
00051       u_wait_for_execution.base = 0;
00052       u_wait_for_execution.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
00053       this->wait_for_execution = u_wait_for_execution.real;
00054       offset += sizeof(this->wait_for_execution);
00055      return offset;
00056     }
00057 
00058     virtual const char * getType(){ return EXECUTEKNOWNTRAJECTORY; };
00059     virtual const char * getMD5(){ return "2a3d2a0b337c6a27da4468bb351928e5"; };
00060 
00061   };
00062 
00063   class ExecuteKnownTrajectoryResponse : public ros::Msg
00064   {
00065     public:
00066       typedef moveit_msgs::MoveItErrorCodes _error_code_type;
00067       _error_code_type error_code;
00068 
00069     ExecuteKnownTrajectoryResponse():
00070       error_code()
00071     {
00072     }
00073 
00074     virtual int serialize(unsigned char *outbuffer) const
00075     {
00076       int offset = 0;
00077       offset += this->error_code.serialize(outbuffer + offset);
00078       return offset;
00079     }
00080 
00081     virtual int deserialize(unsigned char *inbuffer)
00082     {
00083       int offset = 0;
00084       offset += this->error_code.deserialize(inbuffer + offset);
00085      return offset;
00086     }
00087 
00088     virtual const char * getType(){ return EXECUTEKNOWNTRAJECTORY; };
00089     virtual const char * getMD5(){ return "1f7ab918f5d0c5312f25263d3d688122"; };
00090 
00091   };
00092 
00093   class ExecuteKnownTrajectory {
00094     public:
00095     typedef ExecuteKnownTrajectoryRequest Request;
00096     typedef ExecuteKnownTrajectoryResponse Response;
00097   };
00098 
00099 }
00100 #endif