// Generated by gencpp from file common_msgs/SwitchModeRequest.msg // DO NOT EDIT! #ifndef COMMON_MSGS_MESSAGE_SWITCHMODEREQUEST_H #define COMMON_MSGS_MESSAGE_SWITCHMODEREQUEST_H #include #include #include #include #include #include #include namespace common_msgs { template struct SwitchModeRequest_ { typedef SwitchModeRequest_ Type; SwitchModeRequest_() : mode(0) { } SwitchModeRequest_(const ContainerAllocator& _alloc) : mode(0) { (void)_alloc; } typedef int32_t _mode_type; _mode_type mode; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest_ > Ptr; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest_ const> ConstPtr; }; // struct SwitchModeRequest_ typedef ::common_msgs::SwitchModeRequest_ > SwitchModeRequest; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest > SwitchModeRequestPtr; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest const> SwitchModeRequestConstPtr; // constants requiring out of line definition template std::ostream& operator<<(std::ostream& s, const ::common_msgs::SwitchModeRequest_ & v) { ros::message_operations::Printer< ::common_msgs::SwitchModeRequest_ >::stream(s, "", v); return s; } template bool operator==(const ::common_msgs::SwitchModeRequest_ & lhs, const ::common_msgs::SwitchModeRequest_ & rhs) { return lhs.mode == rhs.mode; } template bool operator!=(const ::common_msgs::SwitchModeRequest_ & lhs, const ::common_msgs::SwitchModeRequest_ & rhs) { return !(lhs == rhs); } } // namespace common_msgs namespace ros { namespace message_traits { template struct IsFixedSize< ::common_msgs::SwitchModeRequest_ > : TrueType { }; template struct IsFixedSize< ::common_msgs::SwitchModeRequest_ const> : TrueType { }; template struct IsMessage< ::common_msgs::SwitchModeRequest_ > : TrueType { }; template struct IsMessage< ::common_msgs::SwitchModeRequest_ const> : TrueType { }; template struct HasHeader< ::common_msgs::SwitchModeRequest_ > : FalseType { }; template struct HasHeader< ::common_msgs::SwitchModeRequest_ const> : FalseType { }; template struct MD5Sum< ::common_msgs::SwitchModeRequest_ > { static const char* value() { return "ff63f6ea3c3e9b7504b2cb3ee0a09d92"; } static const char* value(const ::common_msgs::SwitchModeRequest_&) { return value(); } static const uint64_t static_value1 = 0xff63f6ea3c3e9b75ULL; static const uint64_t static_value2 = 0x04b2cb3ee0a09d92ULL; }; template struct DataType< ::common_msgs::SwitchModeRequest_ > { static const char* value() { return "common_msgs/SwitchModeRequest"; } static const char* value(const ::common_msgs::SwitchModeRequest_&) { return value(); } }; template struct Definition< ::common_msgs::SwitchModeRequest_ > { static const char* value() { return "int32 mode\n" ; } static const char* value(const ::common_msgs::SwitchModeRequest_&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template struct Serializer< ::common_msgs::SwitchModeRequest_ > { template inline static void allInOne(Stream& stream, T m) { stream.next(m.mode); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct SwitchModeRequest_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template struct Printer< ::common_msgs::SwitchModeRequest_ > { template static void stream(Stream& s, const std::string& indent, const ::common_msgs::SwitchModeRequest_& v) { s << indent << "mode: "; Printer::stream(s, indent + " ", v.mode); } }; } // namespace message_operations } // namespace ros #endif // COMMON_MSGS_MESSAGE_SWITCHMODEREQUEST_H