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.
Dependencies: rosserial_mbed_lib mbed Servo
geometry_msgs/PointStamped.h@1:098e75fd5ad2, 2011-10-16 (annotated)
- Committer:
 - nucho
 - Date:
 - Sun Oct 16 07:17:43 2011 +0000
 - Revision:
 - 1:098e75fd5ad2
 - Parent:
 - 0:06fc856e99ca
 - Child:
 - 3:dff241b66f84
 
This program supported the revision of 143 of rosserial.
And the bug fix of receive of array data.
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| nucho | 1:098e75fd5ad2 | 1 | #ifndef ros_geometry_msgs_PointStamped_h | 
| nucho | 1:098e75fd5ad2 | 2 | #define ros_geometry_msgs_PointStamped_h | 
| nucho | 0:06fc856e99ca | 3 | |
| nucho | 0:06fc856e99ca | 4 | #include <stdint.h> | 
| nucho | 0:06fc856e99ca | 5 | #include <string.h> | 
| nucho | 0:06fc856e99ca | 6 | #include <stdlib.h> | 
| nucho | 0:06fc856e99ca | 7 | #include "../ros/msg.h" | 
| nucho | 0:06fc856e99ca | 8 | #include "std_msgs/Header.h" | 
| nucho | 0:06fc856e99ca | 9 | #include "geometry_msgs/Point.h" | 
| nucho | 0:06fc856e99ca | 10 | |
| nucho | 0:06fc856e99ca | 11 | namespace geometry_msgs | 
| nucho | 0:06fc856e99ca | 12 | { | 
| nucho | 0:06fc856e99ca | 13 | |
| nucho | 0:06fc856e99ca | 14 | class PointStamped : public ros::Msg | 
| nucho | 0:06fc856e99ca | 15 | { | 
| nucho | 0:06fc856e99ca | 16 | public: | 
| nucho | 0:06fc856e99ca | 17 | std_msgs::Header header; | 
| nucho | 0:06fc856e99ca | 18 | geometry_msgs::Point point; | 
| nucho | 0:06fc856e99ca | 19 | |
| nucho | 0:06fc856e99ca | 20 | virtual int serialize(unsigned char *outbuffer) | 
| nucho | 0:06fc856e99ca | 21 | { | 
| nucho | 0:06fc856e99ca | 22 | int offset = 0; | 
| nucho | 0:06fc856e99ca | 23 | offset += this->header.serialize(outbuffer + offset); | 
| nucho | 0:06fc856e99ca | 24 | offset += this->point.serialize(outbuffer + offset); | 
| nucho | 0:06fc856e99ca | 25 | return offset; | 
| nucho | 0:06fc856e99ca | 26 | } | 
| nucho | 0:06fc856e99ca | 27 | |
| nucho | 0:06fc856e99ca | 28 | virtual int deserialize(unsigned char *inbuffer) | 
| nucho | 0:06fc856e99ca | 29 | { | 
| nucho | 0:06fc856e99ca | 30 | int offset = 0; | 
| nucho | 0:06fc856e99ca | 31 | offset += this->header.deserialize(inbuffer + offset); | 
| nucho | 0:06fc856e99ca | 32 | offset += this->point.deserialize(inbuffer + offset); | 
| nucho | 0:06fc856e99ca | 33 | return offset; | 
| nucho | 0:06fc856e99ca | 34 | } | 
| nucho | 0:06fc856e99ca | 35 | |
| nucho | 0:06fc856e99ca | 36 | virtual const char * getType(){ return "geometry_msgs/PointStamped"; }; | 
| nucho | 0:06fc856e99ca | 37 | |
| nucho | 0:06fc856e99ca | 38 | }; | 
| nucho | 0:06fc856e99ca | 39 | |
| nucho | 0:06fc856e99ca | 40 | } | 
| nucho | 0:06fc856e99ca | 41 | #endif |