$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-alufr-humanoid_stacks/doc_stacks/2013-03-05_11-28-06.315559/nao_robot/nao_msgs/msg/JointTrajectoryAction.msg */ 00002 #ifndef NAO_MSGS_MESSAGE_JOINTTRAJECTORYACTION_H 00003 #define NAO_MSGS_MESSAGE_JOINTTRAJECTORYACTION_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 "nao_msgs/JointTrajectoryActionGoal.h" 00018 #include "nao_msgs/JointTrajectoryActionResult.h" 00019 #include "nao_msgs/JointTrajectoryActionFeedback.h" 00020 00021 namespace nao_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct JointTrajectoryAction_ { 00025 typedef JointTrajectoryAction_<ContainerAllocator> Type; 00026 00027 JointTrajectoryAction_() 00028 : action_goal() 00029 , action_result() 00030 , action_feedback() 00031 { 00032 } 00033 00034 JointTrajectoryAction_(const ContainerAllocator& _alloc) 00035 : action_goal(_alloc) 00036 , action_result(_alloc) 00037 , action_feedback(_alloc) 00038 { 00039 } 00040 00041 typedef ::nao_msgs::JointTrajectoryActionGoal_<ContainerAllocator> _action_goal_type; 00042 ::nao_msgs::JointTrajectoryActionGoal_<ContainerAllocator> action_goal; 00043 00044 typedef ::nao_msgs::JointTrajectoryActionResult_<ContainerAllocator> _action_result_type; 00045 ::nao_msgs::JointTrajectoryActionResult_<ContainerAllocator> action_result; 00046 00047 typedef ::nao_msgs::JointTrajectoryActionFeedback_<ContainerAllocator> _action_feedback_type; 00048 ::nao_msgs::JointTrajectoryActionFeedback_<ContainerAllocator> action_feedback; 00049 00050 00051 private: 00052 static const char* __s_getDataType_() { return "nao_msgs/JointTrajectoryAction"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00055 00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00057 00058 private: 00059 static const char* __s_getMD5Sum_() { return "47b9ba22fa50be8763fd3e5c3b06e11f"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00062 00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00064 00065 private: 00066 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00067 \n\ 00068 JointTrajectoryActionGoal action_goal\n\ 00069 JointTrajectoryActionResult action_result\n\ 00070 JointTrajectoryActionFeedback action_feedback\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: nao_msgs/JointTrajectoryActionGoal\n\ 00074 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00075 \n\ 00076 Header header\n\ 00077 actionlib_msgs/GoalID goal_id\n\ 00078 JointTrajectoryGoal goal\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: std_msgs/Header\n\ 00082 # Standard metadata for higher-level stamped data types.\n\ 00083 # This is generally used to communicate timestamped data \n\ 00084 # in a particular coordinate frame.\n\ 00085 # \n\ 00086 # sequence ID: consecutively increasing ID \n\ 00087 uint32 seq\n\ 00088 #Two-integer timestamp that is expressed as:\n\ 00089 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00090 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00091 # time-handling sugar is provided by the client library\n\ 00092 time stamp\n\ 00093 #Frame this data is associated with\n\ 00094 # 0: no frame\n\ 00095 # 1: global frame\n\ 00096 string frame_id\n\ 00097 \n\ 00098 ================================================================================\n\ 00099 MSG: actionlib_msgs/GoalID\n\ 00100 # The stamp should store the time at which this goal was requested.\n\ 00101 # It is used by an action server when it tries to preempt all\n\ 00102 # goals that were requested before a certain time\n\ 00103 time stamp\n\ 00104 \n\ 00105 # The id provides a way to associate feedback and\n\ 00106 # result message with specific goal requests. The id\n\ 00107 # specified must be unique.\n\ 00108 string id\n\ 00109 \n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: nao_msgs/JointTrajectoryGoal\n\ 00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00114 # goal: a joint angle trajectory\n\ 00115 trajectory_msgs/JointTrajectory trajectory\n\ 00116 # flag whether motion is absolute (=0, default) or relative (=1)\n\ 00117 uint8 relative\n\ 00118 \n\ 00119 ================================================================================\n\ 00120 MSG: trajectory_msgs/JointTrajectory\n\ 00121 Header header\n\ 00122 string[] joint_names\n\ 00123 JointTrajectoryPoint[] points\n\ 00124 ================================================================================\n\ 00125 MSG: trajectory_msgs/JointTrajectoryPoint\n\ 00126 float64[] positions\n\ 00127 float64[] velocities\n\ 00128 float64[] accelerations\n\ 00129 duration time_from_start\n\ 00130 ================================================================================\n\ 00131 MSG: nao_msgs/JointTrajectoryActionResult\n\ 00132 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00133 \n\ 00134 Header header\n\ 00135 actionlib_msgs/GoalStatus status\n\ 00136 JointTrajectoryResult result\n\ 00137 \n\ 00138 ================================================================================\n\ 00139 MSG: actionlib_msgs/GoalStatus\n\ 00140 GoalID goal_id\n\ 00141 uint8 status\n\ 00142 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\ 00143 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\ 00144 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\ 00145 # and has since completed its execution (Terminal State)\n\ 00146 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\ 00147 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\ 00148 # to some failure (Terminal State)\n\ 00149 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\ 00150 # because the goal was unattainable or invalid (Terminal State)\n\ 00151 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\ 00152 # and has not yet completed execution\n\ 00153 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\ 00154 # but the action server has not yet confirmed that the goal is canceled\n\ 00155 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\ 00156 # and was successfully cancelled (Terminal State)\n\ 00157 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\ 00158 # sent over the wire by an action server\n\ 00159 \n\ 00160 #Allow for the user to associate a string with GoalStatus for debugging\n\ 00161 string text\n\ 00162 \n\ 00163 \n\ 00164 ================================================================================\n\ 00165 MSG: nao_msgs/JointTrajectoryResult\n\ 00166 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00167 # result is the actually reached position\n\ 00168 sensor_msgs/JointState goal_position\n\ 00169 \n\ 00170 ================================================================================\n\ 00171 MSG: sensor_msgs/JointState\n\ 00172 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\ 00173 #\n\ 00174 # The state of each joint (revolute or prismatic) is defined by:\n\ 00175 # * the position of the joint (rad or m),\n\ 00176 # * the velocity of the joint (rad/s or m/s) and \n\ 00177 # * the effort that is applied in the joint (Nm or N).\n\ 00178 #\n\ 00179 # Each joint is uniquely identified by its name\n\ 00180 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00181 # in one message have to be recorded at the same time.\n\ 00182 #\n\ 00183 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00184 # The goal is to make each of the fields optional. When e.g. your joints have no\n\ 00185 # effort associated with them, you can leave the effort array empty. \n\ 00186 #\n\ 00187 # All arrays in this message should have the same size, or be empty.\n\ 00188 # This is the only way to uniquely associate the joint name with the correct\n\ 00189 # states.\n\ 00190 \n\ 00191 \n\ 00192 Header header\n\ 00193 \n\ 00194 string[] name\n\ 00195 float64[] position\n\ 00196 float64[] velocity\n\ 00197 float64[] effort\n\ 00198 \n\ 00199 ================================================================================\n\ 00200 MSG: nao_msgs/JointTrajectoryActionFeedback\n\ 00201 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00202 \n\ 00203 Header header\n\ 00204 actionlib_msgs/GoalStatus status\n\ 00205 JointTrajectoryFeedback feedback\n\ 00206 \n\ 00207 ================================================================================\n\ 00208 MSG: nao_msgs/JointTrajectoryFeedback\n\ 00209 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00210 # no feedback currently \n\ 00211 \n\ 00212 "; } 00213 public: 00214 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00215 00216 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00217 00218 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00219 { 00220 ros::serialization::OStream stream(write_ptr, 1000000000); 00221 ros::serialization::serialize(stream, action_goal); 00222 ros::serialization::serialize(stream, action_result); 00223 ros::serialization::serialize(stream, action_feedback); 00224 return stream.getData(); 00225 } 00226 00227 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00228 { 00229 ros::serialization::IStream stream(read_ptr, 1000000000); 00230 ros::serialization::deserialize(stream, action_goal); 00231 ros::serialization::deserialize(stream, action_result); 00232 ros::serialization::deserialize(stream, action_feedback); 00233 return stream.getData(); 00234 } 00235 00236 ROS_DEPRECATED virtual uint32_t serializationLength() const 00237 { 00238 uint32_t size = 0; 00239 size += ros::serialization::serializationLength(action_goal); 00240 size += ros::serialization::serializationLength(action_result); 00241 size += ros::serialization::serializationLength(action_feedback); 00242 return size; 00243 } 00244 00245 typedef boost::shared_ptr< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> > Ptr; 00246 typedef boost::shared_ptr< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> const> ConstPtr; 00247 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00248 }; // struct JointTrajectoryAction 00249 typedef ::nao_msgs::JointTrajectoryAction_<std::allocator<void> > JointTrajectoryAction; 00250 00251 typedef boost::shared_ptr< ::nao_msgs::JointTrajectoryAction> JointTrajectoryActionPtr; 00252 typedef boost::shared_ptr< ::nao_msgs::JointTrajectoryAction const> JointTrajectoryActionConstPtr; 00253 00254 00255 template<typename ContainerAllocator> 00256 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> & v) 00257 { 00258 ros::message_operations::Printer< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> >::stream(s, "", v); 00259 return s;} 00260 00261 } // namespace nao_msgs 00262 00263 namespace ros 00264 { 00265 namespace message_traits 00266 { 00267 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> > : public TrueType {}; 00268 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> const> : public TrueType {}; 00269 template<class ContainerAllocator> 00270 struct MD5Sum< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> > { 00271 static const char* value() 00272 { 00273 return "47b9ba22fa50be8763fd3e5c3b06e11f"; 00274 } 00275 00276 static const char* value(const ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> &) { return value(); } 00277 static const uint64_t static_value1 = 0x47b9ba22fa50be87ULL; 00278 static const uint64_t static_value2 = 0x63fd3e5c3b06e11fULL; 00279 }; 00280 00281 template<class ContainerAllocator> 00282 struct DataType< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "nao_msgs/JointTrajectoryAction"; 00286 } 00287 00288 static const char* value(const ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> &) { return value(); } 00289 }; 00290 00291 template<class ContainerAllocator> 00292 struct Definition< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00296 \n\ 00297 JointTrajectoryActionGoal action_goal\n\ 00298 JointTrajectoryActionResult action_result\n\ 00299 JointTrajectoryActionFeedback action_feedback\n\ 00300 \n\ 00301 ================================================================================\n\ 00302 MSG: nao_msgs/JointTrajectoryActionGoal\n\ 00303 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00304 \n\ 00305 Header header\n\ 00306 actionlib_msgs/GoalID goal_id\n\ 00307 JointTrajectoryGoal goal\n\ 00308 \n\ 00309 ================================================================================\n\ 00310 MSG: std_msgs/Header\n\ 00311 # Standard metadata for higher-level stamped data types.\n\ 00312 # This is generally used to communicate timestamped data \n\ 00313 # in a particular coordinate frame.\n\ 00314 # \n\ 00315 # sequence ID: consecutively increasing ID \n\ 00316 uint32 seq\n\ 00317 #Two-integer timestamp that is expressed as:\n\ 00318 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00319 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00320 # time-handling sugar is provided by the client library\n\ 00321 time stamp\n\ 00322 #Frame this data is associated with\n\ 00323 # 0: no frame\n\ 00324 # 1: global frame\n\ 00325 string frame_id\n\ 00326 \n\ 00327 ================================================================================\n\ 00328 MSG: actionlib_msgs/GoalID\n\ 00329 # The stamp should store the time at which this goal was requested.\n\ 00330 # It is used by an action server when it tries to preempt all\n\ 00331 # goals that were requested before a certain time\n\ 00332 time stamp\n\ 00333 \n\ 00334 # The id provides a way to associate feedback and\n\ 00335 # result message with specific goal requests. The id\n\ 00336 # specified must be unique.\n\ 00337 string id\n\ 00338 \n\ 00339 \n\ 00340 ================================================================================\n\ 00341 MSG: nao_msgs/JointTrajectoryGoal\n\ 00342 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00343 # goal: a joint angle trajectory\n\ 00344 trajectory_msgs/JointTrajectory trajectory\n\ 00345 # flag whether motion is absolute (=0, default) or relative (=1)\n\ 00346 uint8 relative\n\ 00347 \n\ 00348 ================================================================================\n\ 00349 MSG: trajectory_msgs/JointTrajectory\n\ 00350 Header header\n\ 00351 string[] joint_names\n\ 00352 JointTrajectoryPoint[] points\n\ 00353 ================================================================================\n\ 00354 MSG: trajectory_msgs/JointTrajectoryPoint\n\ 00355 float64[] positions\n\ 00356 float64[] velocities\n\ 00357 float64[] accelerations\n\ 00358 duration time_from_start\n\ 00359 ================================================================================\n\ 00360 MSG: nao_msgs/JointTrajectoryActionResult\n\ 00361 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00362 \n\ 00363 Header header\n\ 00364 actionlib_msgs/GoalStatus status\n\ 00365 JointTrajectoryResult result\n\ 00366 \n\ 00367 ================================================================================\n\ 00368 MSG: actionlib_msgs/GoalStatus\n\ 00369 GoalID goal_id\n\ 00370 uint8 status\n\ 00371 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\ 00372 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\ 00373 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\ 00374 # and has since completed its execution (Terminal State)\n\ 00375 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\ 00376 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\ 00377 # to some failure (Terminal State)\n\ 00378 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\ 00379 # because the goal was unattainable or invalid (Terminal State)\n\ 00380 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\ 00381 # and has not yet completed execution\n\ 00382 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\ 00383 # but the action server has not yet confirmed that the goal is canceled\n\ 00384 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\ 00385 # and was successfully cancelled (Terminal State)\n\ 00386 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\ 00387 # sent over the wire by an action server\n\ 00388 \n\ 00389 #Allow for the user to associate a string with GoalStatus for debugging\n\ 00390 string text\n\ 00391 \n\ 00392 \n\ 00393 ================================================================================\n\ 00394 MSG: nao_msgs/JointTrajectoryResult\n\ 00395 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00396 # result is the actually reached position\n\ 00397 sensor_msgs/JointState goal_position\n\ 00398 \n\ 00399 ================================================================================\n\ 00400 MSG: sensor_msgs/JointState\n\ 00401 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\ 00402 #\n\ 00403 # The state of each joint (revolute or prismatic) is defined by:\n\ 00404 # * the position of the joint (rad or m),\n\ 00405 # * the velocity of the joint (rad/s or m/s) and \n\ 00406 # * the effort that is applied in the joint (Nm or N).\n\ 00407 #\n\ 00408 # Each joint is uniquely identified by its name\n\ 00409 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00410 # in one message have to be recorded at the same time.\n\ 00411 #\n\ 00412 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00413 # The goal is to make each of the fields optional. When e.g. your joints have no\n\ 00414 # effort associated with them, you can leave the effort array empty. \n\ 00415 #\n\ 00416 # All arrays in this message should have the same size, or be empty.\n\ 00417 # This is the only way to uniquely associate the joint name with the correct\n\ 00418 # states.\n\ 00419 \n\ 00420 \n\ 00421 Header header\n\ 00422 \n\ 00423 string[] name\n\ 00424 float64[] position\n\ 00425 float64[] velocity\n\ 00426 float64[] effort\n\ 00427 \n\ 00428 ================================================================================\n\ 00429 MSG: nao_msgs/JointTrajectoryActionFeedback\n\ 00430 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00431 \n\ 00432 Header header\n\ 00433 actionlib_msgs/GoalStatus status\n\ 00434 JointTrajectoryFeedback feedback\n\ 00435 \n\ 00436 ================================================================================\n\ 00437 MSG: nao_msgs/JointTrajectoryFeedback\n\ 00438 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00439 # no feedback currently \n\ 00440 \n\ 00441 "; 00442 } 00443 00444 static const char* value(const ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> &) { return value(); } 00445 }; 00446 00447 } // namespace message_traits 00448 } // namespace ros 00449 00450 namespace ros 00451 { 00452 namespace serialization 00453 { 00454 00455 template<class ContainerAllocator> struct Serializer< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> > 00456 { 00457 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00458 { 00459 stream.next(m.action_goal); 00460 stream.next(m.action_result); 00461 stream.next(m.action_feedback); 00462 } 00463 00464 ROS_DECLARE_ALLINONE_SERIALIZER; 00465 }; // struct JointTrajectoryAction_ 00466 } // namespace serialization 00467 } // namespace ros 00468 00469 namespace ros 00470 { 00471 namespace message_operations 00472 { 00473 00474 template<class ContainerAllocator> 00475 struct Printer< ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> > 00476 { 00477 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::JointTrajectoryAction_<ContainerAllocator> & v) 00478 { 00479 s << indent << "action_goal: "; 00480 s << std::endl; 00481 Printer< ::nao_msgs::JointTrajectoryActionGoal_<ContainerAllocator> >::stream(s, indent + " ", v.action_goal); 00482 s << indent << "action_result: "; 00483 s << std::endl; 00484 Printer< ::nao_msgs::JointTrajectoryActionResult_<ContainerAllocator> >::stream(s, indent + " ", v.action_result); 00485 s << indent << "action_feedback: "; 00486 s << std::endl; 00487 Printer< ::nao_msgs::JointTrajectoryActionFeedback_<ContainerAllocator> >::stream(s, indent + " ", v.action_feedback); 00488 } 00489 }; 00490 00491 00492 } // namespace message_operations 00493 } // namespace ros 00494 00495 #endif // NAO_MSGS_MESSAGE_JOINTTRAJECTORYACTION_H 00496