Go to the documentation of this file.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 <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "std_msgs/Header.h"
00018 #include "trajectory_msgs/JointTrajectoryPoint.h"
00019 #include "trajectory_msgs/JointTrajectoryPoint.h"
00020 #include "trajectory_msgs/JointTrajectoryPoint.h"
00021
00022 namespace pr2_controllers_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct JointTrajectoryControllerState_ {
00026 typedef JointTrajectoryControllerState_<ContainerAllocator> Type;
00027
00028 JointTrajectoryControllerState_()
00029 : header()
00030 , joint_names()
00031 , desired()
00032 , actual()
00033 , error()
00034 {
00035 }
00036
00037 JointTrajectoryControllerState_(const ContainerAllocator& _alloc)
00038 : header(_alloc)
00039 , joint_names(_alloc)
00040 , desired(_alloc)
00041 , actual(_alloc)
00042 , error(_alloc)
00043 {
00044 }
00045
00046 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00047 ::std_msgs::Header_<ContainerAllocator> header;
00048
00049 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;
00050 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;
00051
00052 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _desired_type;
00053 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> desired;
00054
00055 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _actual_type;
00056 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> actual;
00057
00058 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _error_type;
00059 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> error;
00060
00061
00062 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > Ptr;
00063 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> const> ConstPtr;
00064 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00065 };
00066 typedef ::pr2_controllers_msgs::JointTrajectoryControllerState_<std::allocator<void> > JointTrajectoryControllerState;
00067
00068 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState> JointTrajectoryControllerStatePtr;
00069 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState const> JointTrajectoryControllerStateConstPtr;
00070
00071
00072 template<typename ContainerAllocator>
00073 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> & v)
00074 {
00075 ros::message_operations::Printer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> >::stream(s, "", v);
00076 return s;}
00077
00078 }
00079
00080 namespace ros
00081 {
00082 namespace message_traits
00083 {
00084 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {};
00085 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> const> : public TrueType {};
00086 template<class ContainerAllocator>
00087 struct MD5Sum< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "b11d532a92ee589417fdd76559eb1d9e";
00091 }
00092
00093 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); }
00094 static const uint64_t static_value1 = 0xb11d532a92ee5894ULL;
00095 static const uint64_t static_value2 = 0x17fdd76559eb1d9eULL;
00096 };
00097
00098 template<class ContainerAllocator>
00099 struct DataType< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "pr2_controllers_msgs/JointTrajectoryControllerState";
00103 }
00104
00105 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator>
00109 struct Definition< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "Header header\n\
00113 string[] joint_names\n\
00114 trajectory_msgs/JointTrajectoryPoint desired\n\
00115 trajectory_msgs/JointTrajectoryPoint actual\n\
00116 trajectory_msgs/JointTrajectoryPoint error # Redundant, but useful\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: std_msgs/Header\n\
00120 # Standard metadata for higher-level stamped data types.\n\
00121 # This is generally used to communicate timestamped data \n\
00122 # in a particular coordinate frame.\n\
00123 # \n\
00124 # sequence ID: consecutively increasing ID \n\
00125 uint32 seq\n\
00126 #Two-integer timestamp that is expressed as:\n\
00127 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00128 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00129 # time-handling sugar is provided by the client library\n\
00130 time stamp\n\
00131 #Frame this data is associated with\n\
00132 # 0: no frame\n\
00133 # 1: global frame\n\
00134 string frame_id\n\
00135 \n\
00136 ================================================================================\n\
00137 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00138 float64[] positions\n\
00139 float64[] velocities\n\
00140 float64[] accelerations\n\
00141 duration time_from_start\n\
00142 ";
00143 }
00144
00145 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); }
00146 };
00147
00148 template<class ContainerAllocator> struct HasHeader< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {};
00149 template<class ContainerAllocator> struct HasHeader< const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {};
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace serialization
00156 {
00157
00158 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> >
00159 {
00160 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00161 {
00162 stream.next(m.header);
00163 stream.next(m.joint_names);
00164 stream.next(m.desired);
00165 stream.next(m.actual);
00166 stream.next(m.error);
00167 }
00168
00169 ROS_DECLARE_ALLINONE_SERIALIZER;
00170 };
00171 }
00172 }
00173
00174 namespace ros
00175 {
00176 namespace message_operations
00177 {
00178
00179 template<class ContainerAllocator>
00180 struct Printer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> >
00181 {
00182 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> & v)
00183 {
00184 s << indent << "header: ";
00185 s << std::endl;
00186 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00187 s << indent << "joint_names[]" << std::endl;
00188 for (size_t i = 0; i < v.joint_names.size(); ++i)
00189 {
00190 s << indent << " joint_names[" << i << "]: ";
00191 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]);
00192 }
00193 s << indent << "desired: ";
00194 s << std::endl;
00195 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.desired);
00196 s << indent << "actual: ";
00197 s << std::endl;
00198 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.actual);
00199 s << indent << "error: ";
00200 s << std::endl;
00201 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.error);
00202 }
00203 };
00204
00205
00206 }
00207 }
00208
00209 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_JOINTTRAJECTORYCONTROLLERSTATE_H
00210