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
Diff: sensor_msgs/RegionOfInterest.h
- Revision:
- 4:2cbca0ac2569
- Parent:
- 3:dff241b66f84
--- a/sensor_msgs/RegionOfInterest.h Sat Nov 12 23:53:04 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,94 +0,0 @@
-#ifndef _ROS_sensor_msgs_RegionOfInterest_h
-#define _ROS_sensor_msgs_RegionOfInterest_h
-
-#include <stdint.h>
-#include <string.h>
-#include <stdlib.h>
-#include "ros/msg.h"
-
-namespace sensor_msgs
-{
-
- class RegionOfInterest : public ros::Msg
- {
- public:
- uint32_t x_offset;
- uint32_t y_offset;
- uint32_t height;
- uint32_t width;
- bool do_rectify;
-
- virtual int serialize(unsigned char *outbuffer) const
- {
- int offset = 0;
- *(outbuffer + offset + 0) = (this->x_offset >> (8 * 0)) & 0xFF;
- *(outbuffer + offset + 1) = (this->x_offset >> (8 * 1)) & 0xFF;
- *(outbuffer + offset + 2) = (this->x_offset >> (8 * 2)) & 0xFF;
- *(outbuffer + offset + 3) = (this->x_offset >> (8 * 3)) & 0xFF;
- offset += sizeof(this->x_offset);
- *(outbuffer + offset + 0) = (this->y_offset >> (8 * 0)) & 0xFF;
- *(outbuffer + offset + 1) = (this->y_offset >> (8 * 1)) & 0xFF;
- *(outbuffer + offset + 2) = (this->y_offset >> (8 * 2)) & 0xFF;
- *(outbuffer + offset + 3) = (this->y_offset >> (8 * 3)) & 0xFF;
- offset += sizeof(this->y_offset);
- *(outbuffer + offset + 0) = (this->height >> (8 * 0)) & 0xFF;
- *(outbuffer + offset + 1) = (this->height >> (8 * 1)) & 0xFF;
- *(outbuffer + offset + 2) = (this->height >> (8 * 2)) & 0xFF;
- *(outbuffer + offset + 3) = (this->height >> (8 * 3)) & 0xFF;
- offset += sizeof(this->height);
- *(outbuffer + offset + 0) = (this->width >> (8 * 0)) & 0xFF;
- *(outbuffer + offset + 1) = (this->width >> (8 * 1)) & 0xFF;
- *(outbuffer + offset + 2) = (this->width >> (8 * 2)) & 0xFF;
- *(outbuffer + offset + 3) = (this->width >> (8 * 3)) & 0xFF;
- offset += sizeof(this->width);
- union {
- bool real;
- uint8_t base;
- } u_do_rectify;
- u_do_rectify.real = this->do_rectify;
- *(outbuffer + offset + 0) = (u_do_rectify.base >> (8 * 0)) & 0xFF;
- offset += sizeof(this->do_rectify);
- return offset;
- }
-
- virtual int deserialize(unsigned char *inbuffer)
- {
- int offset = 0;
- this->x_offset |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
- this->x_offset |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
- this->x_offset |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
- this->x_offset |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
- offset += sizeof(this->x_offset);
- this->y_offset |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
- this->y_offset |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
- this->y_offset |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
- this->y_offset |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
- offset += sizeof(this->y_offset);
- this->height |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
- 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);
- offset += sizeof(this->height);
- this->width |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
- 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);
- union {
- bool real;
- uint8_t base;
- } u_do_rectify;
- u_do_rectify.base = 0;
- u_do_rectify.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
- this->do_rectify = u_do_rectify.real;
- offset += sizeof(this->do_rectify);
- return offset;
- }
-
- virtual const char * getType(){ return "sensor_msgs/RegionOfInterest"; };
- virtual const char * getMD5(){ return "bdb633039d588fcccb441a4d43ccfe09"; };
-
- };
-
-}
-#endif
\ No newline at end of file