$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tue/doc_stacks/2013-03-05_12-23-27.283047/tulip_simulator/tulip_gazebo/msg/joint_state_message.msg */ 00002 #ifndef TULIP_GAZEBO_MESSAGE_JOINT_STATE_MESSAGE_H 00003 #define TULIP_GAZEBO_MESSAGE_JOINT_STATE_MESSAGE_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 00018 namespace tulip_gazebo 00019 { 00020 template <class ContainerAllocator> 00021 struct joint_state_message_ { 00022 typedef joint_state_message_<ContainerAllocator> Type; 00023 00024 joint_state_message_() 00025 : cycle_nr(0) 00026 , time(0.0) 00027 , joint_nr(0) 00028 , position(0.0) 00029 , desired_position(0.0) 00030 , velocity(0.0) 00031 , commanded_effort(0.0) 00032 , measured_effort(0.0) 00033 { 00034 } 00035 00036 joint_state_message_(const ContainerAllocator& _alloc) 00037 : cycle_nr(0) 00038 , time(0.0) 00039 , joint_nr(0) 00040 , position(0.0) 00041 , desired_position(0.0) 00042 , velocity(0.0) 00043 , commanded_effort(0.0) 00044 , measured_effort(0.0) 00045 { 00046 } 00047 00048 typedef int32_t _cycle_nr_type; 00049 int32_t cycle_nr; 00050 00051 typedef double _time_type; 00052 double time; 00053 00054 typedef int32_t _joint_nr_type; 00055 int32_t joint_nr; 00056 00057 typedef double _position_type; 00058 double position; 00059 00060 typedef double _desired_position_type; 00061 double desired_position; 00062 00063 typedef double _velocity_type; 00064 double velocity; 00065 00066 typedef double _commanded_effort_type; 00067 double commanded_effort; 00068 00069 typedef double _measured_effort_type; 00070 double measured_effort; 00071 00072 00073 private: 00074 static const char* __s_getDataType_() { return "tulip_gazebo/joint_state_message"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00077 00078 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00079 00080 private: 00081 static const char* __s_getMD5Sum_() { return "3ab3d19f3d00b94f6b2950fb7f82fcd1"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00084 00085 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00086 00087 private: 00088 static const char* __s_getMessageDefinition_() { return "int32 cycle_nr\n\ 00089 float64 time\n\ 00090 int32 joint_nr\n\ 00091 float64 position\n\ 00092 float64 desired_position\n\ 00093 float64 velocity\n\ 00094 float64 commanded_effort\n\ 00095 float64 measured_effort\n\ 00096 "; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00101 00102 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00103 { 00104 ros::serialization::OStream stream(write_ptr, 1000000000); 00105 ros::serialization::serialize(stream, cycle_nr); 00106 ros::serialization::serialize(stream, time); 00107 ros::serialization::serialize(stream, joint_nr); 00108 ros::serialization::serialize(stream, position); 00109 ros::serialization::serialize(stream, desired_position); 00110 ros::serialization::serialize(stream, velocity); 00111 ros::serialization::serialize(stream, commanded_effort); 00112 ros::serialization::serialize(stream, measured_effort); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00117 { 00118 ros::serialization::IStream stream(read_ptr, 1000000000); 00119 ros::serialization::deserialize(stream, cycle_nr); 00120 ros::serialization::deserialize(stream, time); 00121 ros::serialization::deserialize(stream, joint_nr); 00122 ros::serialization::deserialize(stream, position); 00123 ros::serialization::deserialize(stream, desired_position); 00124 ros::serialization::deserialize(stream, velocity); 00125 ros::serialization::deserialize(stream, commanded_effort); 00126 ros::serialization::deserialize(stream, measured_effort); 00127 return stream.getData(); 00128 } 00129 00130 ROS_DEPRECATED virtual uint32_t serializationLength() const 00131 { 00132 uint32_t size = 0; 00133 size += ros::serialization::serializationLength(cycle_nr); 00134 size += ros::serialization::serializationLength(time); 00135 size += ros::serialization::serializationLength(joint_nr); 00136 size += ros::serialization::serializationLength(position); 00137 size += ros::serialization::serializationLength(desired_position); 00138 size += ros::serialization::serializationLength(velocity); 00139 size += ros::serialization::serializationLength(commanded_effort); 00140 size += ros::serialization::serializationLength(measured_effort); 00141 return size; 00142 } 00143 00144 typedef boost::shared_ptr< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > Ptr; 00145 typedef boost::shared_ptr< ::tulip_gazebo::joint_state_message_<ContainerAllocator> const> ConstPtr; 00146 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00147 }; // struct joint_state_message 00148 typedef ::tulip_gazebo::joint_state_message_<std::allocator<void> > joint_state_message; 00149 00150 typedef boost::shared_ptr< ::tulip_gazebo::joint_state_message> joint_state_messagePtr; 00151 typedef boost::shared_ptr< ::tulip_gazebo::joint_state_message const> joint_state_messageConstPtr; 00152 00153 00154 template<typename ContainerAllocator> 00155 std::ostream& operator<<(std::ostream& s, const ::tulip_gazebo::joint_state_message_<ContainerAllocator> & v) 00156 { 00157 ros::message_operations::Printer< ::tulip_gazebo::joint_state_message_<ContainerAllocator> >::stream(s, "", v); 00158 return s;} 00159 00160 } // namespace tulip_gazebo 00161 00162 namespace ros 00163 { 00164 namespace message_traits 00165 { 00166 template<class ContainerAllocator> struct IsMessage< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > : public TrueType {}; 00167 template<class ContainerAllocator> struct IsMessage< ::tulip_gazebo::joint_state_message_<ContainerAllocator> const> : public TrueType {}; 00168 template<class ContainerAllocator> 00169 struct MD5Sum< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "3ab3d19f3d00b94f6b2950fb7f82fcd1"; 00173 } 00174 00175 static const char* value(const ::tulip_gazebo::joint_state_message_<ContainerAllocator> &) { return value(); } 00176 static const uint64_t static_value1 = 0x3ab3d19f3d00b94fULL; 00177 static const uint64_t static_value2 = 0x6b2950fb7f82fcd1ULL; 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct DataType< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "tulip_gazebo/joint_state_message"; 00185 } 00186 00187 static const char* value(const ::tulip_gazebo::joint_state_message_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct Definition< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "int32 cycle_nr\n\ 00195 float64 time\n\ 00196 int32 joint_nr\n\ 00197 float64 position\n\ 00198 float64 desired_position\n\ 00199 float64 velocity\n\ 00200 float64 commanded_effort\n\ 00201 float64 measured_effort\n\ 00202 "; 00203 } 00204 00205 static const char* value(const ::tulip_gazebo::joint_state_message_<ContainerAllocator> &) { return value(); } 00206 }; 00207 00208 template<class ContainerAllocator> struct IsFixedSize< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > : public TrueType {}; 00209 } // namespace message_traits 00210 } // namespace ros 00211 00212 namespace ros 00213 { 00214 namespace serialization 00215 { 00216 00217 template<class ContainerAllocator> struct Serializer< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > 00218 { 00219 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00220 { 00221 stream.next(m.cycle_nr); 00222 stream.next(m.time); 00223 stream.next(m.joint_nr); 00224 stream.next(m.position); 00225 stream.next(m.desired_position); 00226 stream.next(m.velocity); 00227 stream.next(m.commanded_effort); 00228 stream.next(m.measured_effort); 00229 } 00230 00231 ROS_DECLARE_ALLINONE_SERIALIZER; 00232 }; // struct joint_state_message_ 00233 } // namespace serialization 00234 } // namespace ros 00235 00236 namespace ros 00237 { 00238 namespace message_operations 00239 { 00240 00241 template<class ContainerAllocator> 00242 struct Printer< ::tulip_gazebo::joint_state_message_<ContainerAllocator> > 00243 { 00244 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tulip_gazebo::joint_state_message_<ContainerAllocator> & v) 00245 { 00246 s << indent << "cycle_nr: "; 00247 Printer<int32_t>::stream(s, indent + " ", v.cycle_nr); 00248 s << indent << "time: "; 00249 Printer<double>::stream(s, indent + " ", v.time); 00250 s << indent << "joint_nr: "; 00251 Printer<int32_t>::stream(s, indent + " ", v.joint_nr); 00252 s << indent << "position: "; 00253 Printer<double>::stream(s, indent + " ", v.position); 00254 s << indent << "desired_position: "; 00255 Printer<double>::stream(s, indent + " ", v.desired_position); 00256 s << indent << "velocity: "; 00257 Printer<double>::stream(s, indent + " ", v.velocity); 00258 s << indent << "commanded_effort: "; 00259 Printer<double>::stream(s, indent + " ", v.commanded_effort); 00260 s << indent << "measured_effort: "; 00261 Printer<double>::stream(s, indent + " ", v.measured_effort); 00262 } 00263 }; 00264 00265 00266 } // namespace message_operations 00267 } // namespace ros 00268 00269 #endif // TULIP_GAZEBO_MESSAGE_JOINT_STATE_MESSAGE_H 00270