Go to the documentation of this file.00001
00002 #ifndef PR2_MSGS_MESSAGE_LASERTRAJCMD_H
00003 #define PR2_MSGS_MESSAGE_LASERTRAJCMD_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
00019 namespace pr2_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct LaserTrajCmd_ {
00023 typedef LaserTrajCmd_<ContainerAllocator> Type;
00024
00025 LaserTrajCmd_()
00026 : header()
00027 , profile()
00028 , position()
00029 , time_from_start()
00030 , max_velocity(0.0)
00031 , max_acceleration(0.0)
00032 {
00033 }
00034
00035 LaserTrajCmd_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , profile(_alloc)
00038 , position(_alloc)
00039 , time_from_start(_alloc)
00040 , max_velocity(0.0)
00041 , max_acceleration(0.0)
00042 {
00043 }
00044
00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00046 ::std_msgs::Header_<ContainerAllocator> header;
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _profile_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > profile;
00050
00051 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _position_type;
00052 std::vector<double, typename ContainerAllocator::template rebind<double>::other > position;
00053
00054 typedef std::vector<ros::Duration, typename ContainerAllocator::template rebind<ros::Duration>::other > _time_from_start_type;
00055 std::vector<ros::Duration, typename ContainerAllocator::template rebind<ros::Duration>::other > time_from_start;
00056
00057 typedef double _max_velocity_type;
00058 double max_velocity;
00059
00060 typedef double _max_acceleration_type;
00061 double max_acceleration;
00062
00063
00064 typedef boost::shared_ptr< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> > Ptr;
00065 typedef boost::shared_ptr< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> const> ConstPtr;
00066 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 };
00068 typedef ::pr2_msgs::LaserTrajCmd_<std::allocator<void> > LaserTrajCmd;
00069
00070 typedef boost::shared_ptr< ::pr2_msgs::LaserTrajCmd> LaserTrajCmdPtr;
00071 typedef boost::shared_ptr< ::pr2_msgs::LaserTrajCmd const> LaserTrajCmdConstPtr;
00072
00073
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> & v)
00076 {
00077 ros::message_operations::Printer< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> >::stream(s, "", v);
00078 return s;}
00079
00080 }
00081
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "68a1665e9079049dce55a0384cb2e9b5";
00093 }
00094
00095 static const char* value(const ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> &) { return value(); }
00096 static const uint64_t static_value1 = 0x68a1665e9079049dULL;
00097 static const uint64_t static_value2 = 0xce55a0384cb2e9b5ULL;
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct DataType< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "pr2_msgs/LaserTrajCmd";
00105 }
00106
00107 static const char* value(const ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> &) { return value(); }
00108 };
00109
00110 template<class ContainerAllocator>
00111 struct Definition< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "# This message is used to set the profile that the tilt laser controller\n\
00115 # executes.\n\
00116 Header header\n\
00117 string profile # options are currently \"linear\" or \"linear_blended\"\n\
00118 float64[] position # Laser positions\n\
00119 duration[] time_from_start # Times to reach laser positions in seconds\n\
00120 float64 max_velocity # Set <= 0 to use default\n\
00121 float64 max_acceleration # Set <= 0 to use default\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: std_msgs/Header\n\
00125 # Standard metadata for higher-level stamped data types.\n\
00126 # This is generally used to communicate timestamped data \n\
00127 # in a particular coordinate frame.\n\
00128 # \n\
00129 # sequence ID: consecutively increasing ID \n\
00130 uint32 seq\n\
00131 #Two-integer timestamp that is expressed as:\n\
00132 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00133 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00134 # time-handling sugar is provided by the client library\n\
00135 time stamp\n\
00136 #Frame this data is associated with\n\
00137 # 0: no frame\n\
00138 # 1: global frame\n\
00139 string frame_id\n\
00140 \n\
00141 ";
00142 }
00143
00144 static const char* value(const ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 template<class ContainerAllocator> struct HasHeader< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> > : public TrueType {};
00148 template<class ContainerAllocator> struct HasHeader< const ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> > : public TrueType {};
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156
00157 template<class ContainerAllocator> struct Serializer< ::pr2_msgs::LaserTrajCmd_<ContainerAllocator> >
00158 {
00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160 {
00161 stream.next(m.header);
00162 stream.next(m.profile);
00163 stream.next(m.position);
00164 stream.next(m.time_from_start);
00165 stream.next(m.max_velocity);
00166 stream.next(m.max_acceleration);
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_msgs::LaserTrajCmd_<ContainerAllocator> >
00181 {
00182 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_msgs::LaserTrajCmd_<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 << "profile: ";
00188 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.profile);
00189 s << indent << "position[]" << std::endl;
00190 for (size_t i = 0; i < v.position.size(); ++i)
00191 {
00192 s << indent << " position[" << i << "]: ";
00193 Printer<double>::stream(s, indent + " ", v.position[i]);
00194 }
00195 s << indent << "time_from_start[]" << std::endl;
00196 for (size_t i = 0; i < v.time_from_start.size(); ++i)
00197 {
00198 s << indent << " time_from_start[" << i << "]: ";
00199 Printer<ros::Duration>::stream(s, indent + " ", v.time_from_start[i]);
00200 }
00201 s << indent << "max_velocity: ";
00202 Printer<double>::stream(s, indent + " ", v.max_velocity);
00203 s << indent << "max_acceleration: ";
00204 Printer<double>::stream(s, indent + " ", v.max_acceleration);
00205 }
00206 };
00207
00208
00209 }
00210 }
00211
00212 #endif // PR2_MSGS_MESSAGE_LASERTRAJCMD_H
00213