Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ros_lib/actionlib/TestAction.h@0:8f3710bfd298, 2020-09-02 (annotated)
- Committer:
- irfantitok
- Date:
- Wed Sep 02 13:51:31 2020 +0000
- Revision:
- 0:8f3710bfd298
Resolved round not found
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| irfantitok | 0:8f3710bfd298 | 1 | #ifndef _ROS_actionlib_TestAction_h |
| irfantitok | 0:8f3710bfd298 | 2 | #define _ROS_actionlib_TestAction_h |
| irfantitok | 0:8f3710bfd298 | 3 | |
| irfantitok | 0:8f3710bfd298 | 4 | #include <stdint.h> |
| irfantitok | 0:8f3710bfd298 | 5 | #include <string.h> |
| irfantitok | 0:8f3710bfd298 | 6 | #include <stdlib.h> |
| irfantitok | 0:8f3710bfd298 | 7 | #include "ros/msg.h" |
| irfantitok | 0:8f3710bfd298 | 8 | #include "actionlib/TestActionGoal.h" |
| irfantitok | 0:8f3710bfd298 | 9 | #include "actionlib/TestActionResult.h" |
| irfantitok | 0:8f3710bfd298 | 10 | #include "actionlib/TestActionFeedback.h" |
| irfantitok | 0:8f3710bfd298 | 11 | |
| irfantitok | 0:8f3710bfd298 | 12 | namespace actionlib |
| irfantitok | 0:8f3710bfd298 | 13 | { |
| irfantitok | 0:8f3710bfd298 | 14 | |
| irfantitok | 0:8f3710bfd298 | 15 | class TestAction : public ros::Msg |
| irfantitok | 0:8f3710bfd298 | 16 | { |
| irfantitok | 0:8f3710bfd298 | 17 | public: |
| irfantitok | 0:8f3710bfd298 | 18 | typedef actionlib::TestActionGoal _action_goal_type; |
| irfantitok | 0:8f3710bfd298 | 19 | _action_goal_type action_goal; |
| irfantitok | 0:8f3710bfd298 | 20 | typedef actionlib::TestActionResult _action_result_type; |
| irfantitok | 0:8f3710bfd298 | 21 | _action_result_type action_result; |
| irfantitok | 0:8f3710bfd298 | 22 | typedef actionlib::TestActionFeedback _action_feedback_type; |
| irfantitok | 0:8f3710bfd298 | 23 | _action_feedback_type action_feedback; |
| irfantitok | 0:8f3710bfd298 | 24 | |
| irfantitok | 0:8f3710bfd298 | 25 | TestAction(): |
| irfantitok | 0:8f3710bfd298 | 26 | action_goal(), |
| irfantitok | 0:8f3710bfd298 | 27 | action_result(), |
| irfantitok | 0:8f3710bfd298 | 28 | action_feedback() |
| irfantitok | 0:8f3710bfd298 | 29 | { |
| irfantitok | 0:8f3710bfd298 | 30 | } |
| irfantitok | 0:8f3710bfd298 | 31 | |
| irfantitok | 0:8f3710bfd298 | 32 | virtual int serialize(unsigned char *outbuffer) const |
| irfantitok | 0:8f3710bfd298 | 33 | { |
| irfantitok | 0:8f3710bfd298 | 34 | int offset = 0; |
| irfantitok | 0:8f3710bfd298 | 35 | offset += this->action_goal.serialize(outbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 36 | offset += this->action_result.serialize(outbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 37 | offset += this->action_feedback.serialize(outbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 38 | return offset; |
| irfantitok | 0:8f3710bfd298 | 39 | } |
| irfantitok | 0:8f3710bfd298 | 40 | |
| irfantitok | 0:8f3710bfd298 | 41 | virtual int deserialize(unsigned char *inbuffer) |
| irfantitok | 0:8f3710bfd298 | 42 | { |
| irfantitok | 0:8f3710bfd298 | 43 | int offset = 0; |
| irfantitok | 0:8f3710bfd298 | 44 | offset += this->action_goal.deserialize(inbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 45 | offset += this->action_result.deserialize(inbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 46 | offset += this->action_feedback.deserialize(inbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 47 | return offset; |
| irfantitok | 0:8f3710bfd298 | 48 | } |
| irfantitok | 0:8f3710bfd298 | 49 | |
| irfantitok | 0:8f3710bfd298 | 50 | const char * getType(){ return "actionlib/TestAction"; }; |
| irfantitok | 0:8f3710bfd298 | 51 | const char * getMD5(){ return "991e87a72802262dfbe5d1b3cf6efc9a"; }; |
| irfantitok | 0:8f3710bfd298 | 52 | |
| irfantitok | 0:8f3710bfd298 | 53 | }; |
| irfantitok | 0:8f3710bfd298 | 54 | |
| irfantitok | 0:8f3710bfd298 | 55 | } |
| irfantitok | 0:8f3710bfd298 | 56 | #endif |