Go to the documentation of this file.00001
00002 #ifndef PR2_GAZEBO_PLUGINS_MESSAGE_MODELJOINTSSTATE_H
00003 #define PR2_GAZEBO_PLUGINS_MESSAGE_MODELJOINTSSTATE_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/Pose.h"
00018
00019 namespace pr2_gazebo_plugins
00020 {
00021 template <class ContainerAllocator>
00022 struct ModelJointsState_ {
00023 typedef ModelJointsState_<ContainerAllocator> Type;
00024
00025 ModelJointsState_()
00026 : model_pose()
00027 , joint_names()
00028 , joint_positions()
00029 {
00030 }
00031
00032 ModelJointsState_(const ContainerAllocator& _alloc)
00033 : model_pose(_alloc)
00034 , joint_names(_alloc)
00035 , joint_positions(_alloc)
00036 {
00037 }
00038
00039 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _model_pose_type;
00040 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > model_pose;
00041
00042 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type;
00043 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names;
00044
00045 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_positions_type;
00046 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_positions;
00047
00048
00049 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::pr2_gazebo_plugins::ModelJointsState_<std::allocator<void> > ModelJointsState;
00054
00055 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState> ModelJointsStatePtr;
00056 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState const> ModelJointsStateConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "f700a74958b6566fae4cd77fbb80ffd4";
00078 }
00079
00080 static const char* value(const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0xf700a74958b6566fULL;
00082 static const uint64_t static_value2 = 0xae4cd77fbb80ffd4ULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "pr2_gazebo_plugins/ModelJointsState";
00090 }
00091
00092 static const char* value(const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "geometry_msgs/Pose[] model_pose # set as single element array if user wishes to specify model pose, otherwise, leave empty\n\
00100 string[] joint_names # list of joint names\n\
00101 float64[] joint_positions # list of desired joint positions, should match joint_names\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: geometry_msgs/Pose\n\
00105 # A representation of pose in free space, composed of postion and orientation. \n\
00106 Point position\n\
00107 Quaternion orientation\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: geometry_msgs/Point\n\
00111 # This contains the position of a point in free space\n\
00112 float64 x\n\
00113 float64 y\n\
00114 float64 z\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: geometry_msgs/Quaternion\n\
00118 # This represents an orientation in free space in quaternion form.\n\
00119 \n\
00120 float64 x\n\
00121 float64 y\n\
00122 float64 z\n\
00123 float64 w\n\
00124 \n\
00125 ";
00126 }
00127
00128 static const char* value(const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 }
00132 }
00133
00134 namespace ros
00135 {
00136 namespace serialization
00137 {
00138
00139 template<class ContainerAllocator> struct Serializer< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> >
00140 {
00141 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00142 {
00143 stream.next(m.model_pose);
00144 stream.next(m.joint_names);
00145 stream.next(m.joint_positions);
00146 }
00147
00148 ROS_DECLARE_ALLINONE_SERIALIZER;
00149 };
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace message_operations
00156 {
00157
00158 template<class ContainerAllocator>
00159 struct Printer< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> >
00160 {
00161 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> & v)
00162 {
00163 s << indent << "model_pose[]" << std::endl;
00164 for (size_t i = 0; i < v.model_pose.size(); ++i)
00165 {
00166 s << indent << " model_pose[" << i << "]: ";
00167 s << std::endl;
00168 s << indent;
00169 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.model_pose[i]);
00170 }
00171 s << indent << "joint_names[]" << std::endl;
00172 for (size_t i = 0; i < v.joint_names.size(); ++i)
00173 {
00174 s << indent << " joint_names[" << i << "]: ";
00175 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]);
00176 }
00177 s << indent << "joint_positions[]" << std::endl;
00178 for (size_t i = 0; i < v.joint_positions.size(); ++i)
00179 {
00180 s << indent << " joint_positions[" << i << "]: ";
00181 Printer<double>::stream(s, indent + " ", v.joint_positions[i]);
00182 }
00183 }
00184 };
00185
00186
00187 }
00188 }
00189
00190 #endif // PR2_GAZEBO_PLUGINS_MESSAGE_MODELJOINTSSTATE_H
00191