Go to the documentation of this file.00001
00002 #ifndef BIPEDROBIN_MSGS_MESSAGE_BIPEDROBINGLOBALBEHAVIOUR_H
00003 #define BIPEDROBIN_MSGS_MESSAGE_BIPEDROBINGLOBALBEHAVIOUR_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017
00018 namespace bipedRobin_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct BipedRobinGlobalBehaviour_ {
00022 typedef BipedRobinGlobalBehaviour_<ContainerAllocator> Type;
00023
00024 BipedRobinGlobalBehaviour_()
00025 : areJointErrors(false)
00026 , areJointsReferenced(false)
00027 , areJointTowErrorsSmall(false)
00028 , areJointsReadyToDrive(false)
00029 , areForceSensorsOK(false)
00030 , isAirborne(false)
00031 , areJointsReadyToDriveAirborne(false)
00032 , isReadyToWalk(false)
00033 , currentMotionMode(0)
00034 {
00035 }
00036
00037 BipedRobinGlobalBehaviour_(const ContainerAllocator& _alloc)
00038 : areJointErrors(false)
00039 , areJointsReferenced(false)
00040 , areJointTowErrorsSmall(false)
00041 , areJointsReadyToDrive(false)
00042 , areForceSensorsOK(false)
00043 , isAirborne(false)
00044 , areJointsReadyToDriveAirborne(false)
00045 , isReadyToWalk(false)
00046 , currentMotionMode(0)
00047 {
00048 }
00049
00050 typedef uint8_t _areJointErrors_type;
00051 uint8_t areJointErrors;
00052
00053 typedef uint8_t _areJointsReferenced_type;
00054 uint8_t areJointsReferenced;
00055
00056 typedef uint8_t _areJointTowErrorsSmall_type;
00057 uint8_t areJointTowErrorsSmall;
00058
00059 typedef uint8_t _areJointsReadyToDrive_type;
00060 uint8_t areJointsReadyToDrive;
00061
00062 typedef uint8_t _areForceSensorsOK_type;
00063 uint8_t areForceSensorsOK;
00064
00065 typedef uint8_t _isAirborne_type;
00066 uint8_t isAirborne;
00067
00068 typedef uint8_t _areJointsReadyToDriveAirborne_type;
00069 uint8_t areJointsReadyToDriveAirborne;
00070
00071 typedef uint8_t _isReadyToWalk_type;
00072 uint8_t isReadyToWalk;
00073
00074 typedef uint8_t _currentMotionMode_type;
00075 uint8_t currentMotionMode;
00076
00077
00078 typedef boost::shared_ptr< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> > Ptr;
00079 typedef boost::shared_ptr< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> const> ConstPtr;
00080 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00081 };
00082 typedef ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<std::allocator<void> > BipedRobinGlobalBehaviour;
00083
00084 typedef boost::shared_ptr< ::bipedRobin_msgs::BipedRobinGlobalBehaviour> BipedRobinGlobalBehaviourPtr;
00085 typedef boost::shared_ptr< ::bipedRobin_msgs::BipedRobinGlobalBehaviour const> BipedRobinGlobalBehaviourConstPtr;
00086
00087
00088 template<typename ContainerAllocator>
00089 std::ostream& operator<<(std::ostream& s, const ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> & v)
00090 {
00091 ros::message_operations::Printer< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> >::stream(s, "", v);
00092 return s;}
00093
00094 }
00095
00096 namespace ros
00097 {
00098 namespace message_traits
00099 {
00100 template<class ContainerAllocator> struct IsMessage< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> > : public TrueType {};
00101 template<class ContainerAllocator> struct IsMessage< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> const> : public TrueType {};
00102 template<class ContainerAllocator>
00103 struct MD5Sum< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "6a7c24c4ab7c274c7020ee1cd9c6c8c2";
00107 }
00108
00109 static const char* value(const ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> &) { return value(); }
00110 static const uint64_t static_value1 = 0x6a7c24c4ab7c274cULL;
00111 static const uint64_t static_value2 = 0x7020ee1cd9c6c8c2ULL;
00112 };
00113
00114 template<class ContainerAllocator>
00115 struct DataType< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "bipedRobin_msgs/BipedRobinGlobalBehaviour";
00119 }
00120
00121 static const char* value(const ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct Definition< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "# GlobalBehaviour of biped robin\n\
00129 \n\
00130 bool areJointErrors\n\
00131 bool areJointsReferenced\n\
00132 bool areJointTowErrorsSmall\n\
00133 bool areJointsReadyToDrive\n\
00134 bool areForceSensorsOK\n\
00135 bool isAirborne\n\
00136 bool areJointsReadyToDriveAirborne\n\
00137 bool isReadyToWalk\n\
00138 uint8 currentMotionMode\n\
00139 \n\
00140 ";
00141 }
00142
00143 static const char* value(const ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 template<class ContainerAllocator> struct IsFixedSize< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> > : public TrueType {};
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.areJointErrors);
00160 stream.next(m.areJointsReferenced);
00161 stream.next(m.areJointTowErrorsSmall);
00162 stream.next(m.areJointsReadyToDrive);
00163 stream.next(m.areForceSensorsOK);
00164 stream.next(m.isAirborne);
00165 stream.next(m.areJointsReadyToDriveAirborne);
00166 stream.next(m.isReadyToWalk);
00167 stream.next(m.currentMotionMode);
00168 }
00169
00170 ROS_DECLARE_ALLINONE_SERIALIZER;
00171 };
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace message_operations
00178 {
00179
00180 template<class ContainerAllocator>
00181 struct Printer< ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> >
00182 {
00183 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bipedRobin_msgs::BipedRobinGlobalBehaviour_<ContainerAllocator> & v)
00184 {
00185 s << indent << "areJointErrors: ";
00186 Printer<uint8_t>::stream(s, indent + " ", v.areJointErrors);
00187 s << indent << "areJointsReferenced: ";
00188 Printer<uint8_t>::stream(s, indent + " ", v.areJointsReferenced);
00189 s << indent << "areJointTowErrorsSmall: ";
00190 Printer<uint8_t>::stream(s, indent + " ", v.areJointTowErrorsSmall);
00191 s << indent << "areJointsReadyToDrive: ";
00192 Printer<uint8_t>::stream(s, indent + " ", v.areJointsReadyToDrive);
00193 s << indent << "areForceSensorsOK: ";
00194 Printer<uint8_t>::stream(s, indent + " ", v.areForceSensorsOK);
00195 s << indent << "isAirborne: ";
00196 Printer<uint8_t>::stream(s, indent + " ", v.isAirborne);
00197 s << indent << "areJointsReadyToDriveAirborne: ";
00198 Printer<uint8_t>::stream(s, indent + " ", v.areJointsReadyToDriveAirborne);
00199 s << indent << "isReadyToWalk: ";
00200 Printer<uint8_t>::stream(s, indent + " ", v.isReadyToWalk);
00201 s << indent << "currentMotionMode: ";
00202 Printer<uint8_t>::stream(s, indent + " ", v.currentMotionMode);
00203 }
00204 };
00205
00206
00207 }
00208 }
00209
00210 #endif // BIPEDROBIN_MSGS_MESSAGE_BIPEDROBINGLOBALBEHAVIOUR_H
00211