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
TrajectoryConstraints.h
00001 #ifndef _ROS_moveit_msgs_TrajectoryConstraints_h 00002 #define _ROS_moveit_msgs_TrajectoryConstraints_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 #include "moveit_msgs/Constraints.h" 00009 00010 namespace moveit_msgs 00011 { 00012 00013 class TrajectoryConstraints : public ros::Msg 00014 { 00015 public: 00016 uint32_t constraints_length; 00017 typedef moveit_msgs::Constraints _constraints_type; 00018 _constraints_type st_constraints; 00019 _constraints_type * constraints; 00020 00021 TrajectoryConstraints(): 00022 constraints_length(0), constraints(NULL) 00023 { 00024 } 00025 00026 virtual int serialize(unsigned char *outbuffer) const 00027 { 00028 int offset = 0; 00029 *(outbuffer + offset + 0) = (this->constraints_length >> (8 * 0)) & 0xFF; 00030 *(outbuffer + offset + 1) = (this->constraints_length >> (8 * 1)) & 0xFF; 00031 *(outbuffer + offset + 2) = (this->constraints_length >> (8 * 2)) & 0xFF; 00032 *(outbuffer + offset + 3) = (this->constraints_length >> (8 * 3)) & 0xFF; 00033 offset += sizeof(this->constraints_length); 00034 for( uint32_t i = 0; i < constraints_length; i++){ 00035 offset += this->constraints[i].serialize(outbuffer + offset); 00036 } 00037 return offset; 00038 } 00039 00040 virtual int deserialize(unsigned char *inbuffer) 00041 { 00042 int offset = 0; 00043 uint32_t constraints_lengthT = ((uint32_t) (*(inbuffer + offset))); 00044 constraints_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00045 constraints_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00046 constraints_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00047 offset += sizeof(this->constraints_length); 00048 if(constraints_lengthT > constraints_length) 00049 this->constraints = (moveit_msgs::Constraints*)realloc(this->constraints, constraints_lengthT * sizeof(moveit_msgs::Constraints)); 00050 constraints_length = constraints_lengthT; 00051 for( uint32_t i = 0; i < constraints_length; i++){ 00052 offset += this->st_constraints.deserialize(inbuffer + offset); 00053 memcpy( &(this->constraints[i]), &(this->st_constraints), sizeof(moveit_msgs::Constraints)); 00054 } 00055 return offset; 00056 } 00057 00058 virtual const char * getType(){ return "moveit_msgs/TrajectoryConstraints"; }; 00059 virtual const char * getMD5(){ return "461e1a732dfebb01e7d6c75d51a51eac"; }; 00060 00061 }; 00062 00063 } 00064 #endif
Generated on Mon Sep 26 2022 13:47:04 by
