00001
00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_JOINTTRAJECTORYCONTROLLERSTATE_H
00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_JOINTTRAJECTORYCONTROLLERSTATE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014 #include "trajectory_msgs/JointTrajectoryPoint.h"
00015 #include "trajectory_msgs/JointTrajectoryPoint.h"
00016 #include "trajectory_msgs/JointTrajectoryPoint.h"
00017
00018 namespace pr2_controllers_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct JointTrajectoryControllerState_ : public ros::Message
00022 {
00023 typedef JointTrajectoryControllerState_<ContainerAllocator> Type;
00024
00025 JointTrajectoryControllerState_()
00026 : header()
00027 , joint_names()
00028 , desired()
00029 , actual()
00030 , error()
00031 {
00032 }
00033
00034 JointTrajectoryControllerState_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , joint_names(_alloc)
00037 , desired(_alloc)
00038 , actual(_alloc)
00039 , error(_alloc)
00040 {
00041 }
00042
00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00044 ::std_msgs::Header_<ContainerAllocator> header;
00045
00046 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type;
00047 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names;
00048
00049 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _desired_type;
00050 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> desired;
00051
00052 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _actual_type;
00053 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> actual;
00054
00055 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _error_type;
00056 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> error;
00057
00058
00059 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); }
00060 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); }
00061 ROS_DEPRECATED void get_joint_names_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->joint_names; }
00062 ROS_DEPRECATED void set_joint_names_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->joint_names = vec; }
00063 private:
00064 static const char* __s_getDataType_() { return "pr2_controllers_msgs/JointTrajectoryControllerState"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00067
00068 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00069
00070 private:
00071 static const char* __s_getMD5Sum_() { return "b11d532a92ee589417fdd76559eb1d9e"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00074
00075 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00076
00077 private:
00078 static const char* __s_getMessageDefinition_() { return "Header header\n\
00079 string[] joint_names\n\
00080 trajectory_msgs/JointTrajectoryPoint desired\n\
00081 trajectory_msgs/JointTrajectoryPoint actual\n\
00082 trajectory_msgs/JointTrajectoryPoint error # Redundant, but useful\n\
00083 \n\
00084 ================================================================================\n\
00085 MSG: std_msgs/Header\n\
00086 # Standard metadata for higher-level stamped data types.\n\
00087 # This is generally used to communicate timestamped data \n\
00088 # in a particular coordinate frame.\n\
00089 # \n\
00090 # sequence ID: consecutively increasing ID \n\
00091 uint32 seq\n\
00092 #Two-integer timestamp that is expressed as:\n\
00093 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00094 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00095 # time-handling sugar is provided by the client library\n\
00096 time stamp\n\
00097 #Frame this data is associated with\n\
00098 # 0: no frame\n\
00099 # 1: global frame\n\
00100 string frame_id\n\
00101 \n\
00102 ================================================================================\n\
00103 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00104 float64[] positions\n\
00105 float64[] velocities\n\
00106 float64[] accelerations\n\
00107 duration time_from_start\n\
00108 "; }
00109 public:
00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00111
00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00113
00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00115 {
00116 ros::serialization::OStream stream(write_ptr, 1000000000);
00117 ros::serialization::serialize(stream, header);
00118 ros::serialization::serialize(stream, joint_names);
00119 ros::serialization::serialize(stream, desired);
00120 ros::serialization::serialize(stream, actual);
00121 ros::serialization::serialize(stream, error);
00122 return stream.getData();
00123 }
00124
00125 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00126 {
00127 ros::serialization::IStream stream(read_ptr, 1000000000);
00128 ros::serialization::deserialize(stream, header);
00129 ros::serialization::deserialize(stream, joint_names);
00130 ros::serialization::deserialize(stream, desired);
00131 ros::serialization::deserialize(stream, actual);
00132 ros::serialization::deserialize(stream, error);
00133 return stream.getData();
00134 }
00135
00136 ROS_DEPRECATED virtual uint32_t serializationLength() const
00137 {
00138 uint32_t size = 0;
00139 size += ros::serialization::serializationLength(header);
00140 size += ros::serialization::serializationLength(joint_names);
00141 size += ros::serialization::serializationLength(desired);
00142 size += ros::serialization::serializationLength(actual);
00143 size += ros::serialization::serializationLength(error);
00144 return size;
00145 }
00146
00147 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > Ptr;
00148 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> const> ConstPtr;
00149 };
00150 typedef ::pr2_controllers_msgs::JointTrajectoryControllerState_<std::allocator<void> > JointTrajectoryControllerState;
00151
00152 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState> JointTrajectoryControllerStatePtr;
00153 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState const> JointTrajectoryControllerStateConstPtr;
00154
00155
00156 template<typename ContainerAllocator>
00157 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> & v)
00158 {
00159 ros::message_operations::Printer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> >::stream(s, "", v);
00160 return s;}
00161
00162 }
00163
00164 namespace ros
00165 {
00166 namespace message_traits
00167 {
00168 template<class ContainerAllocator>
00169 struct MD5Sum< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > {
00170 static const char* value()
00171 {
00172 return "b11d532a92ee589417fdd76559eb1d9e";
00173 }
00174
00175 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); }
00176 static const uint64_t static_value1 = 0xb11d532a92ee5894ULL;
00177 static const uint64_t static_value2 = 0x17fdd76559eb1d9eULL;
00178 };
00179
00180 template<class ContainerAllocator>
00181 struct DataType< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > {
00182 static const char* value()
00183 {
00184 return "pr2_controllers_msgs/JointTrajectoryControllerState";
00185 }
00186
00187 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); }
00188 };
00189
00190 template<class ContainerAllocator>
00191 struct Definition< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > {
00192 static const char* value()
00193 {
00194 return "Header header\n\
00195 string[] joint_names\n\
00196 trajectory_msgs/JointTrajectoryPoint desired\n\
00197 trajectory_msgs/JointTrajectoryPoint actual\n\
00198 trajectory_msgs/JointTrajectoryPoint error # Redundant, but useful\n\
00199 \n\
00200 ================================================================================\n\
00201 MSG: std_msgs/Header\n\
00202 # Standard metadata for higher-level stamped data types.\n\
00203 # This is generally used to communicate timestamped data \n\
00204 # in a particular coordinate frame.\n\
00205 # \n\
00206 # sequence ID: consecutively increasing ID \n\
00207 uint32 seq\n\
00208 #Two-integer timestamp that is expressed as:\n\
00209 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00210 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00211 # time-handling sugar is provided by the client library\n\
00212 time stamp\n\
00213 #Frame this data is associated with\n\
00214 # 0: no frame\n\
00215 # 1: global frame\n\
00216 string frame_id\n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00220 float64[] positions\n\
00221 float64[] velocities\n\
00222 float64[] accelerations\n\
00223 duration time_from_start\n\
00224 ";
00225 }
00226
00227 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); }
00228 };
00229
00230 template<class ContainerAllocator> struct HasHeader< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {};
00231 template<class ContainerAllocator> struct HasHeader< const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {};
00232 }
00233 }
00234
00235 namespace ros
00236 {
00237 namespace serialization
00238 {
00239
00240 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> >
00241 {
00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00243 {
00244 stream.next(m.header);
00245 stream.next(m.joint_names);
00246 stream.next(m.desired);
00247 stream.next(m.actual);
00248 stream.next(m.error);
00249 }
00250
00251 ROS_DECLARE_ALLINONE_SERIALIZER;
00252 };
00253 }
00254 }
00255
00256 namespace ros
00257 {
00258 namespace message_operations
00259 {
00260
00261 template<class ContainerAllocator>
00262 struct Printer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> >
00263 {
00264 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> & v)
00265 {
00266 s << indent << "header: ";
00267 s << std::endl;
00268 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00269 s << indent << "joint_names[]" << std::endl;
00270 for (size_t i = 0; i < v.joint_names.size(); ++i)
00271 {
00272 s << indent << " joint_names[" << i << "]: ";
00273 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]);
00274 }
00275 s << indent << "desired: ";
00276 s << std::endl;
00277 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.desired);
00278 s << indent << "actual: ";
00279 s << std::endl;
00280 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.actual);
00281 s << indent << "error: ";
00282 s << std::endl;
00283 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.error);
00284 }
00285 };
00286
00287
00288 }
00289 }
00290
00291 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_JOINTTRAJECTORYCONTROLLERSTATE_H
00292