This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.
Dependents: rosserial_mbed robot_S2
Diff: nav_msgs/MapMetaData.h
- Revision:
- 4:684f39d0c346
- Parent:
- 3:1cf99502f396
--- a/nav_msgs/MapMetaData.h Sat Nov 12 23:54:45 2011 +0000 +++ b/nav_msgs/MapMetaData.h Wed Feb 29 23:00:21 2012 +0000 @@ -60,12 +60,12 @@ virtual int deserialize(unsigned char *inbuffer) { int offset = 0; - this->map_load_time.sec |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); + this->map_load_time.sec = ((uint32_t) (*(inbuffer + offset))); this->map_load_time.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); this->map_load_time.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); this->map_load_time.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); offset += sizeof(this->map_load_time.sec); - this->map_load_time.nsec |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); + this->map_load_time.nsec = ((uint32_t) (*(inbuffer + offset))); this->map_load_time.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); this->map_load_time.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); this->map_load_time.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); @@ -81,12 +81,12 @@ u_resolution.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); this->resolution = u_resolution.real; offset += sizeof(this->resolution); - this->width |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); + this->width = ((uint32_t) (*(inbuffer + offset))); this->width |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); this->width |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); this->width |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); offset += sizeof(this->width); - this->height |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); + this->height = ((uint32_t) (*(inbuffer + offset))); this->height |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); this->height |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); this->height |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);