make changes on buffer serial

Dependencies:   BufferedSerial

Dependents:  

control_msgs/JointTrajectoryGoal.h

Committer:
howanglam3
Date:
2021-05-19
Revision:
2:3f1139cf73be
Parent:
0:04ac6be8229a

File content as of revision 2:3f1139cf73be:

#ifndef _ROS_control_msgs_JointTrajectoryGoal_h
#define _ROS_control_msgs_JointTrajectoryGoal_h

#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "trajectory_msgs/JointTrajectory.h"

namespace control_msgs
{

  class JointTrajectoryGoal : public ros::Msg
  {
    public:
      typedef trajectory_msgs::JointTrajectory _trajectory_type;
      _trajectory_type trajectory;

    JointTrajectoryGoal():
      trajectory()
    {
    }

    virtual int serialize(unsigned char *outbuffer) const
    {
      int offset = 0;
      offset += this->trajectory.serialize(outbuffer + offset);
      return offset;
    }

    virtual int deserialize(unsigned char *inbuffer)
    {
      int offset = 0;
      offset += this->trajectory.deserialize(inbuffer + offset);
     return offset;
    }

    const char * getType(){ return "control_msgs/JointTrajectoryGoal"; };
    const char * getMD5(){ return "2a0eff76c870e8595636c2a562ca298e"; };

  };

}
#endif