rosserial library for mbed Inspired by nucho's rosserial library This library is still under development
Dependents: mbed_roshydro_test
Library still under development!
Diff: moveit_msgs/MoveGroupResult.h
- Revision:
- 0:30537dec6e0b
diff -r 000000000000 -r 30537dec6e0b moveit_msgs/MoveGroupResult.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/moveit_msgs/MoveGroupResult.h Sun Feb 15 10:53:43 2015 +0000 @@ -0,0 +1,61 @@ +#ifndef _ROS_moveit_msgs_MoveGroupResult_h +#define _ROS_moveit_msgs_MoveGroupResult_h + +#include <stdint.h> +#include <string.h> +#include <stdlib.h> +#include "ros/msg.h" +#include "moveit_msgs/MoveItErrorCodes.h" +#include "moveit_msgs/RobotState.h" +#include "moveit_msgs/RobotTrajectory.h" + +namespace moveit_msgs +{ + + class MoveGroupResult : public ros::Msg + { + public: + moveit_msgs::MoveItErrorCodes error_code; + moveit_msgs::RobotState trajectory_start; + moveit_msgs::RobotTrajectory planned_trajectory; + moveit_msgs::RobotTrajectory executed_trajectory; + float planning_time; + + MoveGroupResult(): + error_code(), + trajectory_start(), + planned_trajectory(), + executed_trajectory(), + planning_time(0) + { + } + + virtual int serialize(unsigned char *outbuffer) const + { + int offset = 0; + offset += this->error_code.serialize(outbuffer + offset); + offset += this->trajectory_start.serialize(outbuffer + offset); + offset += this->planned_trajectory.serialize(outbuffer + offset); + offset += this->executed_trajectory.serialize(outbuffer + offset); + offset += serializeAvrFloat64(outbuffer + offset, this->planning_time); + return offset; + } + + virtual int deserialize(unsigned char *inbuffer) + { + int offset = 0; + offset += this->error_code.deserialize(inbuffer + offset); + offset += this->trajectory_start.deserialize(inbuffer + offset); + offset += this->planned_trajectory.deserialize(inbuffer + offset); + offset += this->executed_trajectory.deserialize(inbuffer + offset); + offset += deserializeAvrFloat64(inbuffer + offset, &(this->planning_time)); + return offset; + } + + const char * getType(){ return "moveit_msgs/MoveGroupResult"; }; + const char * getMD5(){ return "34098589d402fee7ae9c3fd413e5a6c6"; }; + + }; + +} +#endif