$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_simulator/doc_stacks/2013-03-02_13-03-19.343096/pr2_simulator/pr2_gazebo_plugins/msg/ModelJointsState.msg */ 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 ROS_DEPRECATED uint32_t get_model_pose_size() const { return (uint32_t)model_pose.size(); } 00050 ROS_DEPRECATED void set_model_pose_size(uint32_t size) { model_pose.resize((size_t)size); } 00051 ROS_DEPRECATED void get_model_pose_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->model_pose; } 00052 ROS_DEPRECATED void set_model_pose_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->model_pose = vec; } 00053 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00054 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00055 ROS_DEPRECATED void get_joint_names_vec(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 > & vec) const { vec = this->joint_names; } 00056 ROS_DEPRECATED void set_joint_names_vec(const 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 > & vec) { this->joint_names = vec; } 00057 ROS_DEPRECATED uint32_t get_joint_positions_size() const { return (uint32_t)joint_positions.size(); } 00058 ROS_DEPRECATED void set_joint_positions_size(uint32_t size) { joint_positions.resize((size_t)size); } 00059 ROS_DEPRECATED void get_joint_positions_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_positions; } 00060 ROS_DEPRECATED void set_joint_positions_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_positions = vec; } 00061 private: 00062 static const char* __s_getDataType_() { return "pr2_gazebo_plugins/ModelJointsState"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "f700a74958b6566fae4cd77fbb80ffd4"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Pose[] model_pose # set as single element array if user wishes to specify model pose, otherwise, leave empty\n\ 00077 string[] joint_names # list of joint names\n\ 00078 float64[] joint_positions # list of desired joint positions, should match joint_names\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: geometry_msgs/Pose\n\ 00082 # A representation of pose in free space, composed of postion and orientation. \n\ 00083 Point position\n\ 00084 Quaternion orientation\n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: geometry_msgs/Point\n\ 00088 # This contains the position of a point in free space\n\ 00089 float64 x\n\ 00090 float64 y\n\ 00091 float64 z\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: geometry_msgs/Quaternion\n\ 00095 # This represents an orientation in free space in quaternion form.\n\ 00096 \n\ 00097 float64 x\n\ 00098 float64 y\n\ 00099 float64 z\n\ 00100 float64 w\n\ 00101 \n\ 00102 "; } 00103 public: 00104 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00105 00106 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00109 { 00110 ros::serialization::OStream stream(write_ptr, 1000000000); 00111 ros::serialization::serialize(stream, model_pose); 00112 ros::serialization::serialize(stream, joint_names); 00113 ros::serialization::serialize(stream, joint_positions); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00118 { 00119 ros::serialization::IStream stream(read_ptr, 1000000000); 00120 ros::serialization::deserialize(stream, model_pose); 00121 ros::serialization::deserialize(stream, joint_names); 00122 ros::serialization::deserialize(stream, joint_positions); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint32_t serializationLength() const 00127 { 00128 uint32_t size = 0; 00129 size += ros::serialization::serializationLength(model_pose); 00130 size += ros::serialization::serializationLength(joint_names); 00131 size += ros::serialization::serializationLength(joint_positions); 00132 return size; 00133 } 00134 00135 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > Ptr; 00136 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> const> ConstPtr; 00137 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00138 }; // struct ModelJointsState 00139 typedef ::pr2_gazebo_plugins::ModelJointsState_<std::allocator<void> > ModelJointsState; 00140 00141 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState> ModelJointsStatePtr; 00142 typedef boost::shared_ptr< ::pr2_gazebo_plugins::ModelJointsState const> ModelJointsStateConstPtr; 00143 00144 00145 template<typename ContainerAllocator> 00146 std::ostream& operator<<(std::ostream& s, const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> & v) 00147 { 00148 ros::message_operations::Printer< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> >::stream(s, "", v); 00149 return s;} 00150 00151 } // namespace pr2_gazebo_plugins 00152 00153 namespace ros 00154 { 00155 namespace message_traits 00156 { 00157 template<class ContainerAllocator> struct IsMessage< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > : public TrueType {}; 00158 template<class ContainerAllocator> struct IsMessage< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> const> : public TrueType {}; 00159 template<class ContainerAllocator> 00160 struct MD5Sum< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "f700a74958b6566fae4cd77fbb80ffd4"; 00164 } 00165 00166 static const char* value(const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> &) { return value(); } 00167 static const uint64_t static_value1 = 0xf700a74958b6566fULL; 00168 static const uint64_t static_value2 = 0xae4cd77fbb80ffd4ULL; 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct DataType< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "pr2_gazebo_plugins/ModelJointsState"; 00176 } 00177 00178 static const char* value(const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> &) { return value(); } 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct Definition< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "geometry_msgs/Pose[] model_pose # set as single element array if user wishes to specify model pose, otherwise, leave empty\n\ 00186 string[] joint_names # list of joint names\n\ 00187 float64[] joint_positions # list of desired joint positions, should match joint_names\n\ 00188 \n\ 00189 ================================================================================\n\ 00190 MSG: geometry_msgs/Pose\n\ 00191 # A representation of pose in free space, composed of postion and orientation. \n\ 00192 Point position\n\ 00193 Quaternion orientation\n\ 00194 \n\ 00195 ================================================================================\n\ 00196 MSG: geometry_msgs/Point\n\ 00197 # This contains the position of a point in free space\n\ 00198 float64 x\n\ 00199 float64 y\n\ 00200 float64 z\n\ 00201 \n\ 00202 ================================================================================\n\ 00203 MSG: geometry_msgs/Quaternion\n\ 00204 # This represents an orientation in free space in quaternion form.\n\ 00205 \n\ 00206 float64 x\n\ 00207 float64 y\n\ 00208 float64 z\n\ 00209 float64 w\n\ 00210 \n\ 00211 "; 00212 } 00213 00214 static const char* value(const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> &) { return value(); } 00215 }; 00216 00217 } // namespace message_traits 00218 } // namespace ros 00219 00220 namespace ros 00221 { 00222 namespace serialization 00223 { 00224 00225 template<class ContainerAllocator> struct Serializer< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > 00226 { 00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00228 { 00229 stream.next(m.model_pose); 00230 stream.next(m.joint_names); 00231 stream.next(m.joint_positions); 00232 } 00233 00234 ROS_DECLARE_ALLINONE_SERIALIZER; 00235 }; // struct ModelJointsState_ 00236 } // namespace serialization 00237 } // namespace ros 00238 00239 namespace ros 00240 { 00241 namespace message_operations 00242 { 00243 00244 template<class ContainerAllocator> 00245 struct Printer< ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> > 00246 { 00247 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gazebo_plugins::ModelJointsState_<ContainerAllocator> & v) 00248 { 00249 s << indent << "model_pose[]" << std::endl; 00250 for (size_t i = 0; i < v.model_pose.size(); ++i) 00251 { 00252 s << indent << " model_pose[" << i << "]: "; 00253 s << std::endl; 00254 s << indent; 00255 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.model_pose[i]); 00256 } 00257 s << indent << "joint_names[]" << std::endl; 00258 for (size_t i = 0; i < v.joint_names.size(); ++i) 00259 { 00260 s << indent << " joint_names[" << i << "]: "; 00261 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00262 } 00263 s << indent << "joint_positions[]" << std::endl; 00264 for (size_t i = 0; i < v.joint_positions.size(); ++i) 00265 { 00266 s << indent << " joint_positions[" << i << "]: "; 00267 Printer<double>::stream(s, indent + " ", v.joint_positions[i]); 00268 } 00269 } 00270 }; 00271 00272 00273 } // namespace message_operations 00274 } // namespace ros 00275 00276 #endif // PR2_GAZEBO_PLUGINS_MESSAGE_MODELJOINTSSTATE_H 00277