$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_common_actions/doc_stacks/2013-03-01_16-40-55.755282/pr2_common_actions/pr2_tilt_laser_interface/msg/GetSnapshotGoal.msg */ 00002 #ifndef PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTGOAL_H 00003 #define PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTGOAL_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 pr2_tilt_laser_interface 00019 { 00020 template <class ContainerAllocator> 00021 struct GetSnapshotGoal_ { 00022 typedef GetSnapshotGoal_<ContainerAllocator> Type; 00023 00024 GetSnapshotGoal_() 00025 : start_angle(0.0) 00026 , end_angle(0.0) 00027 , speed(0.0) 00028 , hi_fidelity(false) 00029 , continuous(false) 00030 { 00031 } 00032 00033 GetSnapshotGoal_(const ContainerAllocator& _alloc) 00034 : start_angle(0.0) 00035 , end_angle(0.0) 00036 , speed(0.0) 00037 , hi_fidelity(false) 00038 , continuous(false) 00039 { 00040 } 00041 00042 typedef float _start_angle_type; 00043 float start_angle; 00044 00045 typedef float _end_angle_type; 00046 float end_angle; 00047 00048 typedef float _speed_type; 00049 float speed; 00050 00051 typedef uint8_t _hi_fidelity_type; 00052 uint8_t hi_fidelity; 00053 00054 typedef uint8_t _continuous_type; 00055 uint8_t continuous; 00056 00057 00058 private: 00059 static const char* __s_getDataType_() { return "pr2_tilt_laser_interface/GetSnapshotGoal"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "464673531a0e6172d0d965e354c952f0"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00074 # Goal\n\ 00075 # We always want to command. Don't need this bool\n\ 00076 # bool command_laser # True: Use the command below. False: Use existing profile\n\ 00077 float32 start_angle\n\ 00078 float32 end_angle\n\ 00079 float32 speed\n\ 00080 bool hi_fidelity\n\ 00081 bool continuous\n\ 00082 \n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, start_angle); 00093 ros::serialization::serialize(stream, end_angle); 00094 ros::serialization::serialize(stream, speed); 00095 ros::serialization::serialize(stream, hi_fidelity); 00096 ros::serialization::serialize(stream, continuous); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00101 { 00102 ros::serialization::IStream stream(read_ptr, 1000000000); 00103 ros::serialization::deserialize(stream, start_angle); 00104 ros::serialization::deserialize(stream, end_angle); 00105 ros::serialization::deserialize(stream, speed); 00106 ros::serialization::deserialize(stream, hi_fidelity); 00107 ros::serialization::deserialize(stream, continuous); 00108 return stream.getData(); 00109 } 00110 00111 ROS_DEPRECATED virtual uint32_t serializationLength() const 00112 { 00113 uint32_t size = 0; 00114 size += ros::serialization::serializationLength(start_angle); 00115 size += ros::serialization::serializationLength(end_angle); 00116 size += ros::serialization::serializationLength(speed); 00117 size += ros::serialization::serializationLength(hi_fidelity); 00118 size += ros::serialization::serializationLength(continuous); 00119 return size; 00120 } 00121 00122 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > Ptr; 00123 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> const> ConstPtr; 00124 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00125 }; // struct GetSnapshotGoal 00126 typedef ::pr2_tilt_laser_interface::GetSnapshotGoal_<std::allocator<void> > GetSnapshotGoal; 00127 00128 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotGoal> GetSnapshotGoalPtr; 00129 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotGoal const> GetSnapshotGoalConstPtr; 00130 00131 00132 template<typename ContainerAllocator> 00133 std::ostream& operator<<(std::ostream& s, const ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> & v) 00134 { 00135 ros::message_operations::Printer< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> >::stream(s, "", v); 00136 return s;} 00137 00138 } // namespace pr2_tilt_laser_interface 00139 00140 namespace ros 00141 { 00142 namespace message_traits 00143 { 00144 template<class ContainerAllocator> struct IsMessage< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > : public TrueType {}; 00145 template<class ContainerAllocator> struct IsMessage< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> const> : public TrueType {}; 00146 template<class ContainerAllocator> 00147 struct MD5Sum< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "464673531a0e6172d0d965e354c952f0"; 00151 } 00152 00153 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> &) { return value(); } 00154 static const uint64_t static_value1 = 0x464673531a0e6172ULL; 00155 static const uint64_t static_value2 = 0xd0d965e354c952f0ULL; 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct DataType< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "pr2_tilt_laser_interface/GetSnapshotGoal"; 00163 } 00164 00165 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> &) { return value(); } 00166 }; 00167 00168 template<class ContainerAllocator> 00169 struct Definition< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00173 # Goal\n\ 00174 # We always want to command. Don't need this bool\n\ 00175 # bool command_laser # True: Use the command below. False: Use existing profile\n\ 00176 float32 start_angle\n\ 00177 float32 end_angle\n\ 00178 float32 speed\n\ 00179 bool hi_fidelity\n\ 00180 bool continuous\n\ 00181 \n\ 00182 "; 00183 } 00184 00185 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> &) { return value(); } 00186 }; 00187 00188 template<class ContainerAllocator> struct IsFixedSize< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > : public TrueType {}; 00189 } // namespace message_traits 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace serialization 00195 { 00196 00197 template<class ContainerAllocator> struct Serializer< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > 00198 { 00199 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00200 { 00201 stream.next(m.start_angle); 00202 stream.next(m.end_angle); 00203 stream.next(m.speed); 00204 stream.next(m.hi_fidelity); 00205 stream.next(m.continuous); 00206 } 00207 00208 ROS_DECLARE_ALLINONE_SERIALIZER; 00209 }; // struct GetSnapshotGoal_ 00210 } // namespace serialization 00211 } // namespace ros 00212 00213 namespace ros 00214 { 00215 namespace message_operations 00216 { 00217 00218 template<class ContainerAllocator> 00219 struct Printer< ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> > 00220 { 00221 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_tilt_laser_interface::GetSnapshotGoal_<ContainerAllocator> & v) 00222 { 00223 s << indent << "start_angle: "; 00224 Printer<float>::stream(s, indent + " ", v.start_angle); 00225 s << indent << "end_angle: "; 00226 Printer<float>::stream(s, indent + " ", v.end_angle); 00227 s << indent << "speed: "; 00228 Printer<float>::stream(s, indent + " ", v.speed); 00229 s << indent << "hi_fidelity: "; 00230 Printer<uint8_t>::stream(s, indent + " ", v.hi_fidelity); 00231 s << indent << "continuous: "; 00232 Printer<uint8_t>::stream(s, indent + " ", v.continuous); 00233 } 00234 }; 00235 00236 00237 } // namespace message_operations 00238 } // namespace ros 00239 00240 #endif // PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTGOAL_H 00241