$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-simulator_gazebo/doc_stacks/2013-03-02_13-33-37.038309/simulator_gazebo/gazebo/msg/WorldState.msg */ 00002 #ifndef GAZEBO_MESSAGE_WORLDSTATE_H 00003 #define GAZEBO_MESSAGE_WORLDSTATE_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 #include "geometry_msgs/Pose.h" 00019 #include "geometry_msgs/Twist.h" 00020 #include "geometry_msgs/Wrench.h" 00021 00022 namespace gazebo 00023 { 00024 template <class ContainerAllocator> 00025 struct WorldState_ { 00026 typedef WorldState_<ContainerAllocator> Type; 00027 00028 WorldState_() 00029 : header() 00030 , name() 00031 , pose() 00032 , twist() 00033 , wrench() 00034 { 00035 } 00036 00037 WorldState_(const ContainerAllocator& _alloc) 00038 : header(_alloc) 00039 , name(_alloc) 00040 , pose(_alloc) 00041 , twist(_alloc) 00042 , wrench(_alloc) 00043 { 00044 } 00045 00046 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00047 ::std_msgs::Header_<ContainerAllocator> header; 00048 00049 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 > _name_type; 00050 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 > name; 00051 00052 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _pose_type; 00053 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > pose; 00054 00055 typedef std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > _twist_type; 00056 std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > twist; 00057 00058 typedef std::vector< ::geometry_msgs::Wrench_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Wrench_<ContainerAllocator> >::other > _wrench_type; 00059 std::vector< ::geometry_msgs::Wrench_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Wrench_<ContainerAllocator> >::other > wrench; 00060 00061 00062 ROS_DEPRECATED uint32_t get_name_size() const { return (uint32_t)name.size(); } 00063 ROS_DEPRECATED void set_name_size(uint32_t size) { name.resize((size_t)size); } 00064 ROS_DEPRECATED void get_name_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->name; } 00065 ROS_DEPRECATED void set_name_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->name = vec; } 00066 ROS_DEPRECATED uint32_t get_pose_size() const { return (uint32_t)pose.size(); } 00067 ROS_DEPRECATED void set_pose_size(uint32_t size) { pose.resize((size_t)size); } 00068 ROS_DEPRECATED void get_pose_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->pose; } 00069 ROS_DEPRECATED void set_pose_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->pose = vec; } 00070 ROS_DEPRECATED uint32_t get_twist_size() const { return (uint32_t)twist.size(); } 00071 ROS_DEPRECATED void set_twist_size(uint32_t size) { twist.resize((size_t)size); } 00072 ROS_DEPRECATED void get_twist_vec(std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > & vec) const { vec = this->twist; } 00073 ROS_DEPRECATED void set_twist_vec(const std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > & vec) { this->twist = vec; } 00074 ROS_DEPRECATED uint32_t get_wrench_size() const { return (uint32_t)wrench.size(); } 00075 ROS_DEPRECATED void set_wrench_size(uint32_t size) { wrench.resize((size_t)size); } 00076 ROS_DEPRECATED void get_wrench_vec(std::vector< ::geometry_msgs::Wrench_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Wrench_<ContainerAllocator> >::other > & vec) const { vec = this->wrench; } 00077 ROS_DEPRECATED void set_wrench_vec(const std::vector< ::geometry_msgs::Wrench_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Wrench_<ContainerAllocator> >::other > & vec) { this->wrench = vec; } 00078 private: 00079 static const char* __s_getDataType_() { return "gazebo/WorldState"; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00082 00083 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00084 00085 private: 00086 static const char* __s_getMD5Sum_() { return "de1a9de3ab7ba97ac0e9ec01a4eb481e"; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00089 00090 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00091 00092 private: 00093 static const char* __s_getMessageDefinition_() { return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00094 \n\ 00095 # This is a message that holds data necessary to reconstruct a snapshot of the world\n\ 00096 #\n\ 00097 # = Approach to Message Passing =\n\ 00098 # The state of the world is defined by either\n\ 00099 # 1. Inertial Model pose, twist\n\ 00100 # * kinematic data - connectivity graph from Model to each Link\n\ 00101 # * joint angles\n\ 00102 # * joint velocities\n\ 00103 # * Applied forces - Body wrench\n\ 00104 # * relative transform from Body to each collision Geom\n\ 00105 # Or\n\ 00106 # 2. Inertial (absolute) Body pose, twist, wrench\n\ 00107 # * relative transform from Body to each collision Geom - constant, so not sent over wire\n\ 00108 # * back compute from canonical body info to get Model pose and twist.\n\ 00109 #\n\ 00110 # Chooing (2.) because it matches most physics engines out there\n\ 00111 # and is simpler.\n\ 00112 #\n\ 00113 # = Future =\n\ 00114 # Consider impacts on using reduced coordinates / graph (parent/child links) approach\n\ 00115 # constraint and physics solvers.\n\ 00116 #\n\ 00117 # = Application =\n\ 00118 # This message is used to do the following:\n\ 00119 # * reconstruct the world and objects for sensor generation\n\ 00120 # * stop / start simulation - need pose, twist, wrench of each body\n\ 00121 # * collision detection - need pose of each collision geometry. velocity/acceleration if \n\ 00122 #\n\ 00123 # = Assumptions =\n\ 00124 # Assuming that each (physics) processor node locally already has\n\ 00125 # * collision information - Trimesh for Geoms, etc\n\ 00126 # * relative transforms from Body to Geom - this is assumed to be fixed, do not send oved wire\n\ 00127 # * inertial information - does not vary in time\n\ 00128 # * visual information - does not vary in time\n\ 00129 #\n\ 00130 \n\ 00131 Header header\n\ 00132 \n\ 00133 string[] name\n\ 00134 geometry_msgs/Pose[] pose\n\ 00135 geometry_msgs/Twist[] twist\n\ 00136 geometry_msgs/Wrench[] wrench\n\ 00137 \n\ 00138 ================================================================================\n\ 00139 MSG: std_msgs/Header\n\ 00140 # Standard metadata for higher-level stamped data types.\n\ 00141 # This is generally used to communicate timestamped data \n\ 00142 # in a particular coordinate frame.\n\ 00143 # \n\ 00144 # sequence ID: consecutively increasing ID \n\ 00145 uint32 seq\n\ 00146 #Two-integer timestamp that is expressed as:\n\ 00147 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00148 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00149 # time-handling sugar is provided by the client library\n\ 00150 time stamp\n\ 00151 #Frame this data is associated with\n\ 00152 # 0: no frame\n\ 00153 # 1: global frame\n\ 00154 string frame_id\n\ 00155 \n\ 00156 ================================================================================\n\ 00157 MSG: geometry_msgs/Pose\n\ 00158 # A representation of pose in free space, composed of postion and orientation. \n\ 00159 Point position\n\ 00160 Quaternion orientation\n\ 00161 \n\ 00162 ================================================================================\n\ 00163 MSG: geometry_msgs/Point\n\ 00164 # This contains the position of a point in free space\n\ 00165 float64 x\n\ 00166 float64 y\n\ 00167 float64 z\n\ 00168 \n\ 00169 ================================================================================\n\ 00170 MSG: geometry_msgs/Quaternion\n\ 00171 # This represents an orientation in free space in quaternion form.\n\ 00172 \n\ 00173 float64 x\n\ 00174 float64 y\n\ 00175 float64 z\n\ 00176 float64 w\n\ 00177 \n\ 00178 ================================================================================\n\ 00179 MSG: geometry_msgs/Twist\n\ 00180 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00181 Vector3 linear\n\ 00182 Vector3 angular\n\ 00183 \n\ 00184 ================================================================================\n\ 00185 MSG: geometry_msgs/Vector3\n\ 00186 # This represents a vector in free space. \n\ 00187 \n\ 00188 float64 x\n\ 00189 float64 y\n\ 00190 float64 z\n\ 00191 ================================================================================\n\ 00192 MSG: geometry_msgs/Wrench\n\ 00193 # This represents force in free space, seperated into \n\ 00194 # it's linear and angular parts. \n\ 00195 Vector3 force\n\ 00196 Vector3 torque\n\ 00197 \n\ 00198 "; } 00199 public: 00200 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00201 00202 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00203 00204 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00205 { 00206 ros::serialization::OStream stream(write_ptr, 1000000000); 00207 ros::serialization::serialize(stream, header); 00208 ros::serialization::serialize(stream, name); 00209 ros::serialization::serialize(stream, pose); 00210 ros::serialization::serialize(stream, twist); 00211 ros::serialization::serialize(stream, wrench); 00212 return stream.getData(); 00213 } 00214 00215 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00216 { 00217 ros::serialization::IStream stream(read_ptr, 1000000000); 00218 ros::serialization::deserialize(stream, header); 00219 ros::serialization::deserialize(stream, name); 00220 ros::serialization::deserialize(stream, pose); 00221 ros::serialization::deserialize(stream, twist); 00222 ros::serialization::deserialize(stream, wrench); 00223 return stream.getData(); 00224 } 00225 00226 ROS_DEPRECATED virtual uint32_t serializationLength() const 00227 { 00228 uint32_t size = 0; 00229 size += ros::serialization::serializationLength(header); 00230 size += ros::serialization::serializationLength(name); 00231 size += ros::serialization::serializationLength(pose); 00232 size += ros::serialization::serializationLength(twist); 00233 size += ros::serialization::serializationLength(wrench); 00234 return size; 00235 } 00236 00237 typedef boost::shared_ptr< ::gazebo::WorldState_<ContainerAllocator> > Ptr; 00238 typedef boost::shared_ptr< ::gazebo::WorldState_<ContainerAllocator> const> ConstPtr; 00239 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00240 }; // struct WorldState 00241 typedef ::gazebo::WorldState_<std::allocator<void> > WorldState; 00242 00243 typedef boost::shared_ptr< ::gazebo::WorldState> WorldStatePtr; 00244 typedef boost::shared_ptr< ::gazebo::WorldState const> WorldStateConstPtr; 00245 00246 00247 template<typename ContainerAllocator> 00248 std::ostream& operator<<(std::ostream& s, const ::gazebo::WorldState_<ContainerAllocator> & v) 00249 { 00250 ros::message_operations::Printer< ::gazebo::WorldState_<ContainerAllocator> >::stream(s, "", v); 00251 return s;} 00252 00253 } // namespace gazebo 00254 00255 namespace ros 00256 { 00257 namespace message_traits 00258 { 00259 template<class ContainerAllocator> struct IsMessage< ::gazebo::WorldState_<ContainerAllocator> > : public TrueType {}; 00260 template<class ContainerAllocator> struct IsMessage< ::gazebo::WorldState_<ContainerAllocator> const> : public TrueType {}; 00261 template<class ContainerAllocator> 00262 struct MD5Sum< ::gazebo::WorldState_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "de1a9de3ab7ba97ac0e9ec01a4eb481e"; 00266 } 00267 00268 static const char* value(const ::gazebo::WorldState_<ContainerAllocator> &) { return value(); } 00269 static const uint64_t static_value1 = 0xde1a9de3ab7ba97aULL; 00270 static const uint64_t static_value2 = 0xc0e9ec01a4eb481eULL; 00271 }; 00272 00273 template<class ContainerAllocator> 00274 struct DataType< ::gazebo::WorldState_<ContainerAllocator> > { 00275 static const char* value() 00276 { 00277 return "gazebo/WorldState"; 00278 } 00279 00280 static const char* value(const ::gazebo::WorldState_<ContainerAllocator> &) { return value(); } 00281 }; 00282 00283 template<class ContainerAllocator> 00284 struct Definition< ::gazebo::WorldState_<ContainerAllocator> > { 00285 static const char* value() 00286 { 00287 return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00288 \n\ 00289 # This is a message that holds data necessary to reconstruct a snapshot of the world\n\ 00290 #\n\ 00291 # = Approach to Message Passing =\n\ 00292 # The state of the world is defined by either\n\ 00293 # 1. Inertial Model pose, twist\n\ 00294 # * kinematic data - connectivity graph from Model to each Link\n\ 00295 # * joint angles\n\ 00296 # * joint velocities\n\ 00297 # * Applied forces - Body wrench\n\ 00298 # * relative transform from Body to each collision Geom\n\ 00299 # Or\n\ 00300 # 2. Inertial (absolute) Body pose, twist, wrench\n\ 00301 # * relative transform from Body to each collision Geom - constant, so not sent over wire\n\ 00302 # * back compute from canonical body info to get Model pose and twist.\n\ 00303 #\n\ 00304 # Chooing (2.) because it matches most physics engines out there\n\ 00305 # and is simpler.\n\ 00306 #\n\ 00307 # = Future =\n\ 00308 # Consider impacts on using reduced coordinates / graph (parent/child links) approach\n\ 00309 # constraint and physics solvers.\n\ 00310 #\n\ 00311 # = Application =\n\ 00312 # This message is used to do the following:\n\ 00313 # * reconstruct the world and objects for sensor generation\n\ 00314 # * stop / start simulation - need pose, twist, wrench of each body\n\ 00315 # * collision detection - need pose of each collision geometry. velocity/acceleration if \n\ 00316 #\n\ 00317 # = Assumptions =\n\ 00318 # Assuming that each (physics) processor node locally already has\n\ 00319 # * collision information - Trimesh for Geoms, etc\n\ 00320 # * relative transforms from Body to Geom - this is assumed to be fixed, do not send oved wire\n\ 00321 # * inertial information - does not vary in time\n\ 00322 # * visual information - does not vary in time\n\ 00323 #\n\ 00324 \n\ 00325 Header header\n\ 00326 \n\ 00327 string[] name\n\ 00328 geometry_msgs/Pose[] pose\n\ 00329 geometry_msgs/Twist[] twist\n\ 00330 geometry_msgs/Wrench[] wrench\n\ 00331 \n\ 00332 ================================================================================\n\ 00333 MSG: std_msgs/Header\n\ 00334 # Standard metadata for higher-level stamped data types.\n\ 00335 # This is generally used to communicate timestamped data \n\ 00336 # in a particular coordinate frame.\n\ 00337 # \n\ 00338 # sequence ID: consecutively increasing ID \n\ 00339 uint32 seq\n\ 00340 #Two-integer timestamp that is expressed as:\n\ 00341 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00342 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00343 # time-handling sugar is provided by the client library\n\ 00344 time stamp\n\ 00345 #Frame this data is associated with\n\ 00346 # 0: no frame\n\ 00347 # 1: global frame\n\ 00348 string frame_id\n\ 00349 \n\ 00350 ================================================================================\n\ 00351 MSG: geometry_msgs/Pose\n\ 00352 # A representation of pose in free space, composed of postion and orientation. \n\ 00353 Point position\n\ 00354 Quaternion orientation\n\ 00355 \n\ 00356 ================================================================================\n\ 00357 MSG: geometry_msgs/Point\n\ 00358 # This contains the position of a point in free space\n\ 00359 float64 x\n\ 00360 float64 y\n\ 00361 float64 z\n\ 00362 \n\ 00363 ================================================================================\n\ 00364 MSG: geometry_msgs/Quaternion\n\ 00365 # This represents an orientation in free space in quaternion form.\n\ 00366 \n\ 00367 float64 x\n\ 00368 float64 y\n\ 00369 float64 z\n\ 00370 float64 w\n\ 00371 \n\ 00372 ================================================================================\n\ 00373 MSG: geometry_msgs/Twist\n\ 00374 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00375 Vector3 linear\n\ 00376 Vector3 angular\n\ 00377 \n\ 00378 ================================================================================\n\ 00379 MSG: geometry_msgs/Vector3\n\ 00380 # This represents a vector in free space. \n\ 00381 \n\ 00382 float64 x\n\ 00383 float64 y\n\ 00384 float64 z\n\ 00385 ================================================================================\n\ 00386 MSG: geometry_msgs/Wrench\n\ 00387 # This represents force in free space, seperated into \n\ 00388 # it's linear and angular parts. \n\ 00389 Vector3 force\n\ 00390 Vector3 torque\n\ 00391 \n\ 00392 "; 00393 } 00394 00395 static const char* value(const ::gazebo::WorldState_<ContainerAllocator> &) { return value(); } 00396 }; 00397 00398 template<class ContainerAllocator> struct HasHeader< ::gazebo::WorldState_<ContainerAllocator> > : public TrueType {}; 00399 template<class ContainerAllocator> struct HasHeader< const ::gazebo::WorldState_<ContainerAllocator> > : public TrueType {}; 00400 } // namespace message_traits 00401 } // namespace ros 00402 00403 namespace ros 00404 { 00405 namespace serialization 00406 { 00407 00408 template<class ContainerAllocator> struct Serializer< ::gazebo::WorldState_<ContainerAllocator> > 00409 { 00410 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00411 { 00412 stream.next(m.header); 00413 stream.next(m.name); 00414 stream.next(m.pose); 00415 stream.next(m.twist); 00416 stream.next(m.wrench); 00417 } 00418 00419 ROS_DECLARE_ALLINONE_SERIALIZER; 00420 }; // struct WorldState_ 00421 } // namespace serialization 00422 } // namespace ros 00423 00424 namespace ros 00425 { 00426 namespace message_operations 00427 { 00428 00429 template<class ContainerAllocator> 00430 struct Printer< ::gazebo::WorldState_<ContainerAllocator> > 00431 { 00432 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo::WorldState_<ContainerAllocator> & v) 00433 { 00434 s << indent << "header: "; 00435 s << std::endl; 00436 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00437 s << indent << "name[]" << std::endl; 00438 for (size_t i = 0; i < v.name.size(); ++i) 00439 { 00440 s << indent << " name[" << i << "]: "; 00441 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]); 00442 } 00443 s << indent << "pose[]" << std::endl; 00444 for (size_t i = 0; i < v.pose.size(); ++i) 00445 { 00446 s << indent << " pose[" << i << "]: "; 00447 s << std::endl; 00448 s << indent; 00449 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose[i]); 00450 } 00451 s << indent << "twist[]" << std::endl; 00452 for (size_t i = 0; i < v.twist.size(); ++i) 00453 { 00454 s << indent << " twist[" << i << "]: "; 00455 s << std::endl; 00456 s << indent; 00457 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist[i]); 00458 } 00459 s << indent << "wrench[]" << std::endl; 00460 for (size_t i = 0; i < v.wrench.size(); ++i) 00461 { 00462 s << indent << " wrench[" << i << "]: "; 00463 s << std::endl; 00464 s << indent; 00465 Printer< ::geometry_msgs::Wrench_<ContainerAllocator> >::stream(s, indent + " ", v.wrench[i]); 00466 } 00467 } 00468 }; 00469 00470 00471 } // namespace message_operations 00472 } // namespace ros 00473 00474 #endif // GAZEBO_MESSAGE_WORLDSTATE_H 00475