$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_interaction_primitives/msg/MovementChanged.msg */ 00002 #ifndef SRS_INTERACTION_PRIMITIVES_MESSAGE_MOVEMENTCHANGED_H 00003 #define SRS_INTERACTION_PRIMITIVES_MESSAGE_MOVEMENTCHANGED_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 "geometry_msgs/Quaternion.h" 00018 #include "geometry_msgs/Quaternion.h" 00019 00020 namespace srs_interaction_primitives 00021 { 00022 template <class ContainerAllocator> 00023 struct MovementChanged_ { 00024 typedef MovementChanged_<ContainerAllocator> Type; 00025 00026 MovementChanged_() 00027 : marker_name() 00028 , new_velocity(0.0) 00029 , velocity_change(0.0) 00030 , new_direction() 00031 , direction_change() 00032 { 00033 } 00034 00035 MovementChanged_(const ContainerAllocator& _alloc) 00036 : marker_name(_alloc) 00037 , new_velocity(0.0) 00038 , velocity_change(0.0) 00039 , new_direction(_alloc) 00040 , direction_change(_alloc) 00041 { 00042 } 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _marker_name_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > marker_name; 00046 00047 typedef double _new_velocity_type; 00048 double new_velocity; 00049 00050 typedef double _velocity_change_type; 00051 double velocity_change; 00052 00053 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _new_direction_type; 00054 ::geometry_msgs::Quaternion_<ContainerAllocator> new_direction; 00055 00056 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _direction_change_type; 00057 ::geometry_msgs::Quaternion_<ContainerAllocator> direction_change; 00058 00059 00060 private: 00061 static const char* __s_getDataType_() { return "srs_interaction_primitives/MovementChanged"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00064 00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00066 00067 private: 00068 static const char* __s_getMD5Sum_() { return "65ed06c3c9a0a10c0157ff66dfdcf2f6"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00071 00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00073 00074 private: 00075 static const char* __s_getMessageDefinition_() { return "string marker_name\n\ 00076 float64 new_velocity \n\ 00077 float64 velocity_change\n\ 00078 geometry_msgs/Quaternion new_direction\n\ 00079 geometry_msgs/Quaternion direction_change\n\ 00080 \n\ 00081 ================================================================================\n\ 00082 MSG: geometry_msgs/Quaternion\n\ 00083 # This represents an orientation in free space in quaternion form.\n\ 00084 \n\ 00085 float64 x\n\ 00086 float64 y\n\ 00087 float64 z\n\ 00088 float64 w\n\ 00089 \n\ 00090 "; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00097 { 00098 ros::serialization::OStream stream(write_ptr, 1000000000); 00099 ros::serialization::serialize(stream, marker_name); 00100 ros::serialization::serialize(stream, new_velocity); 00101 ros::serialization::serialize(stream, velocity_change); 00102 ros::serialization::serialize(stream, new_direction); 00103 ros::serialization::serialize(stream, direction_change); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00108 { 00109 ros::serialization::IStream stream(read_ptr, 1000000000); 00110 ros::serialization::deserialize(stream, marker_name); 00111 ros::serialization::deserialize(stream, new_velocity); 00112 ros::serialization::deserialize(stream, velocity_change); 00113 ros::serialization::deserialize(stream, new_direction); 00114 ros::serialization::deserialize(stream, direction_change); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint32_t serializationLength() const 00119 { 00120 uint32_t size = 0; 00121 size += ros::serialization::serializationLength(marker_name); 00122 size += ros::serialization::serializationLength(new_velocity); 00123 size += ros::serialization::serializationLength(velocity_change); 00124 size += ros::serialization::serializationLength(new_direction); 00125 size += ros::serialization::serializationLength(direction_change); 00126 return size; 00127 } 00128 00129 typedef boost::shared_ptr< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> > Ptr; 00130 typedef boost::shared_ptr< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> const> ConstPtr; 00131 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00132 }; // struct MovementChanged 00133 typedef ::srs_interaction_primitives::MovementChanged_<std::allocator<void> > MovementChanged; 00134 00135 typedef boost::shared_ptr< ::srs_interaction_primitives::MovementChanged> MovementChangedPtr; 00136 typedef boost::shared_ptr< ::srs_interaction_primitives::MovementChanged const> MovementChangedConstPtr; 00137 00138 00139 template<typename ContainerAllocator> 00140 std::ostream& operator<<(std::ostream& s, const ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> & v) 00141 { 00142 ros::message_operations::Printer< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> >::stream(s, "", v); 00143 return s;} 00144 00145 } // namespace srs_interaction_primitives 00146 00147 namespace ros 00148 { 00149 namespace message_traits 00150 { 00151 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> > : public TrueType {}; 00152 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> const> : public TrueType {}; 00153 template<class ContainerAllocator> 00154 struct MD5Sum< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "65ed06c3c9a0a10c0157ff66dfdcf2f6"; 00158 } 00159 00160 static const char* value(const ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> &) { return value(); } 00161 static const uint64_t static_value1 = 0x65ed06c3c9a0a10cULL; 00162 static const uint64_t static_value2 = 0x0157ff66dfdcf2f6ULL; 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct DataType< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "srs_interaction_primitives/MovementChanged"; 00170 } 00171 00172 static const char* value(const ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> &) { return value(); } 00173 }; 00174 00175 template<class ContainerAllocator> 00176 struct Definition< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "string marker_name\n\ 00180 float64 new_velocity \n\ 00181 float64 velocity_change\n\ 00182 geometry_msgs/Quaternion new_direction\n\ 00183 geometry_msgs/Quaternion direction_change\n\ 00184 \n\ 00185 ================================================================================\n\ 00186 MSG: geometry_msgs/Quaternion\n\ 00187 # This represents an orientation in free space in quaternion form.\n\ 00188 \n\ 00189 float64 x\n\ 00190 float64 y\n\ 00191 float64 z\n\ 00192 float64 w\n\ 00193 \n\ 00194 "; 00195 } 00196 00197 static const char* value(const ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> &) { return value(); } 00198 }; 00199 00200 } // namespace message_traits 00201 } // namespace ros 00202 00203 namespace ros 00204 { 00205 namespace serialization 00206 { 00207 00208 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> > 00209 { 00210 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00211 { 00212 stream.next(m.marker_name); 00213 stream.next(m.new_velocity); 00214 stream.next(m.velocity_change); 00215 stream.next(m.new_direction); 00216 stream.next(m.direction_change); 00217 } 00218 00219 ROS_DECLARE_ALLINONE_SERIALIZER; 00220 }; // struct MovementChanged_ 00221 } // namespace serialization 00222 } // namespace ros 00223 00224 namespace ros 00225 { 00226 namespace message_operations 00227 { 00228 00229 template<class ContainerAllocator> 00230 struct Printer< ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> > 00231 { 00232 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_interaction_primitives::MovementChanged_<ContainerAllocator> & v) 00233 { 00234 s << indent << "marker_name: "; 00235 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.marker_name); 00236 s << indent << "new_velocity: "; 00237 Printer<double>::stream(s, indent + " ", v.new_velocity); 00238 s << indent << "velocity_change: "; 00239 Printer<double>::stream(s, indent + " ", v.velocity_change); 00240 s << indent << "new_direction: "; 00241 s << std::endl; 00242 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.new_direction); 00243 s << indent << "direction_change: "; 00244 s << std::endl; 00245 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.direction_change); 00246 } 00247 }; 00248 00249 00250 } // namespace message_operations 00251 } // namespace ros 00252 00253 #endif // SRS_INTERACTION_PRIMITIVES_MESSAGE_MOVEMENTCHANGED_H 00254