ROS Serial library for Mbed platforms for ROS Indigo Igloo. Check http://wiki.ros.org/rosserial_mbed/ for more information

Dependencies:   BufferedSerial

Dependents:   rosserial_mbed_hello_world_publisher rtos_base_control rosserial_mbed_F64MA ROS-RTOS ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Wrench.h Source File

Wrench.h

00001 #ifndef _ROS_geometry_msgs_Wrench_h
00002 #define _ROS_geometry_msgs_Wrench_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "geometry_msgs/Vector3.h"
00009 
00010 namespace geometry_msgs
00011 {
00012 
00013   class Wrench : public ros::Msg
00014   {
00015     public:
00016       geometry_msgs::Vector3 force;
00017       geometry_msgs::Vector3 torque;
00018 
00019     Wrench():
00020       force(),
00021       torque()
00022     {
00023     }
00024 
00025     virtual int serialize(unsigned char *outbuffer) const
00026     {
00027       int offset = 0;
00028       offset += this->force.serialize(outbuffer + offset);
00029       offset += this->torque.serialize(outbuffer + offset);
00030       return offset;
00031     }
00032 
00033     virtual int deserialize(unsigned char *inbuffer)
00034     {
00035       int offset = 0;
00036       offset += this->force.deserialize(inbuffer + offset);
00037       offset += this->torque.deserialize(inbuffer + offset);
00038      return offset;
00039     }
00040 
00041     const char * getType(){ return "geometry_msgs/Wrench"; };
00042     const char * getMD5(){ return "4f539cf138b23283b520fd271b567936"; };
00043 
00044   };
00045 
00046 }
00047 #endif