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