#ifndef STD_SRVS_MESSAGE_TRIGGERRESPONSE #define STD_SRVS_MESSAGE_TRIGGERRESPONSE #include #include #include #include #include #include #include namespace std_srvs { template struct TriggerResponse_ { typedef TriggerResponse_ Type; TriggerResponse_() : success() , message() { } TriggerResponse_(const ContainerAllocator& _alloc) : success(_alloc) , message(_alloc) { (void)_alloc; } typedef uint8_t _success_type; _success_type success; typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _message_type; _message_type message; typedef boost::shared_ptr< ::std_srvs::TriggerResponse_> Ptr; typedef boost::shared_ptr< ::std_srvs::TriggerResponse_ const> ConstPtr; }; // struct TriggerResponse_ typedef ::std_srvs::TriggerResponse_> TriggerResponse; typedef boost::shared_ptr< ::std_srvs::TriggerResponse> TriggerResponsePtr; typedef boost::shared_ptr< ::std_srvs::TriggerResponse const> TriggerResponseConstPtr; // constants requiring out of line definition template std::ostream& operator<<(std::ostream& s, const ::std_srvs::TriggerResponse_ & v) { ros::message_operations::Printer< ::std_srvs::TriggerResponse_ >::stream(s, "", v); return s; } template bool operator==(const ::std_srvs::TriggerResponse_ & lhs, const ::std_srvs::TriggerResponse_ & rhs) { return lhs.success == rhs.success && lhs.message == rhs.message && true; } template bool operator!=(const ::std_srvs::TriggerResponse_ & lhs, const ::std_srvs::TriggerResponse_ & rhs) { return !(lhs == rhs); } } // namespace std_srvs namespace ros { namespace message_traits { template struct IsMessage< ::std_srvs::TriggerResponse_> : TrueType { }; template struct IsMessage< ::std_srvs::TriggerResponse_ const> : TrueType { }; template struct IsFixedSize< ::std_srvs::TriggerResponse_> : FalseType { }; template struct IsFixedSize< ::std_srvs::TriggerResponse_ const> : FalseType { }; template struct HasHeader< ::std_srvs::TriggerResponse_> : FalseType { }; template struct HasHeader< ::std_srvs::TriggerResponse_ const> : FalseType { }; template struct MD5Sum< ::std_srvs::TriggerResponse_> { static constexpr char const * value() { return "937c9679a518e3a18d831e57125ea522"; } static const char* value(const ::std_srvs::TriggerResponse_&) { return value(); } static const uint64_t static_value1 = 0x937c9679a518e3a1ULL; static const uint64_t static_value2 = 0x8d831e57125ea522ULL; }; template struct DataType< ::std_srvs::TriggerResponse_> { static constexpr char const* value() { return "std_srvs/TriggerResponse"; } static const char* value(const ::std_srvs::TriggerResponse_&) { return value(); } }; template struct Definition< ::std_srvs::TriggerResponse_> { static constexpr char const* value() { return "bool success # indicate successful run of triggered service" "string message # informational, e.g. for error messages" ""; } static const char* value(const ::std_srvs::TriggerResponse_&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template struct Serializer< ::std_srvs::TriggerResponse_> { template inline static void allInOne(Stream& stream, T m) { stream.next(m.success); stream.next(m.message); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct TriggerResponse_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template struct Printer< ::std_srvs::TriggerResponse_> { template static void stream(Stream& s, const std::string& indent, const ::std_srvs::TriggerResponse_& v) { s << indent << "success: "; Printer< uint8_t>::stream(s, indent + " ", v.success); s << indent << "message: "; Printer< std::basic_string, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.message); } }; } // namespace message_operations } // namespace ros #endif // STD_SRVS_MESSAGE_TRIGGERRESPONSE