// Generated by gencpp from file common_msgs/SwitchLocateModeResponse.msg // DO NOT EDIT! #ifndef COMMON_MSGS_MESSAGE_SWITCHLOCATEMODERESPONSE_H #define COMMON_MSGS_MESSAGE_SWITCHLOCATEMODERESPONSE_H #include <string> #include <vector> #include <memory> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> namespace common_msgs { template <class ContainerAllocator> struct SwitchLocateModeResponse_ { typedef SwitchLocateModeResponse_<ContainerAllocator> Type; SwitchLocateModeResponse_() : success(false) , message() , error_code(0) { } SwitchLocateModeResponse_(const ContainerAllocator& _alloc) : success(false) , message(_alloc) , error_code(0) { (void)_alloc; } typedef uint8_t _success_type; _success_type success; typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _message_type; _message_type message; typedef int64_t _error_code_type; _error_code_type error_code; typedef boost::shared_ptr< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> const> ConstPtr; }; // struct SwitchLocateModeResponse_ typedef ::common_msgs::SwitchLocateModeResponse_<std::allocator<void> > SwitchLocateModeResponse; typedef boost::shared_ptr< ::common_msgs::SwitchLocateModeResponse > SwitchLocateModeResponsePtr; typedef boost::shared_ptr< ::common_msgs::SwitchLocateModeResponse const> SwitchLocateModeResponseConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> & v) { ros::message_operations::Printer< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> >::stream(s, "", v); return s; } template<typename ContainerAllocator1, typename ContainerAllocator2> bool operator==(const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator1> & lhs, const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator2> & rhs) { return lhs.success == rhs.success && lhs.message == rhs.message && lhs.error_code == rhs.error_code; } template<typename ContainerAllocator1, typename ContainerAllocator2> bool operator!=(const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator1> & lhs, const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator2> & rhs) { return !(lhs == rhs); } } // namespace common_msgs namespace ros { namespace message_traits { template <class ContainerAllocator> struct IsFixedSize< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct IsFixedSize< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> const> : FalseType { }; template <class ContainerAllocator> struct IsMessage< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct HasHeader< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> const> : FalseType { }; template<class ContainerAllocator> struct MD5Sum< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > { static const char* value() { return "a146f1fd97d84eb99082da272ae35845"; } static const char* value(const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0xa146f1fd97d84eb9ULL; static const uint64_t static_value2 = 0x9082da272ae35845ULL; }; template<class ContainerAllocator> struct DataType< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > { static const char* value() { return "common_msgs/SwitchLocateModeResponse"; } static const char* value(const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > { static const char* value() { return "bool success\n" "string message\n" "#任务执行错误码(无错时为0)\n" "int64 error_code\n" ; } static const char* value(const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.success); stream.next(m.message); stream.next(m.error_code); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct SwitchLocateModeResponse_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::SwitchLocateModeResponse_<ContainerAllocator>& v) { s << indent << "success: "; Printer<uint8_t>::stream(s, indent + " ", v.success); s << indent << "message: "; Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.message); s << indent << "error_code: "; Printer<int64_t>::stream(s, indent + " ", v.error_code); } }; } // namespace message_operations } // namespace ros #endif // COMMON_MSGS_MESSAGE_SWITCHLOCATEMODERESPONSE_H