// Generated by gencpp from file common_msgs/TaskInfo.msg // DO NOT EDIT! #ifndef COMMON_MSGS_MESSAGE_TASKINFO_H #define COMMON_MSGS_MESSAGE_TASKINFO_H #include #include #include #include #include #include #include namespace common_msgs { template struct TaskInfo_ { typedef TaskInfo_ Type; TaskInfo_() : task_id() , task_type(0) , sub_task_type(0) { } TaskInfo_(const ContainerAllocator& _alloc) : task_id(_alloc) , task_type(0) , sub_task_type(0) { (void)_alloc; } typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _task_id_type; _task_id_type task_id; typedef int32_t _task_type_type; _task_type_type task_type; typedef int32_t _sub_task_type_type; _sub_task_type_type sub_task_type; typedef boost::shared_ptr< ::common_msgs::TaskInfo_ > Ptr; typedef boost::shared_ptr< ::common_msgs::TaskInfo_ const> ConstPtr; }; // struct TaskInfo_ typedef ::common_msgs::TaskInfo_ > TaskInfo; typedef boost::shared_ptr< ::common_msgs::TaskInfo > TaskInfoPtr; typedef boost::shared_ptr< ::common_msgs::TaskInfo const> TaskInfoConstPtr; // constants requiring out of line definition template std::ostream& operator<<(std::ostream& s, const ::common_msgs::TaskInfo_ & v) { ros::message_operations::Printer< ::common_msgs::TaskInfo_ >::stream(s, "", v); return s; } template bool operator==(const ::common_msgs::TaskInfo_ & lhs, const ::common_msgs::TaskInfo_ & rhs) { return lhs.task_id == rhs.task_id && lhs.task_type == rhs.task_type && lhs.sub_task_type == rhs.sub_task_type; } template bool operator!=(const ::common_msgs::TaskInfo_ & lhs, const ::common_msgs::TaskInfo_ & rhs) { return !(lhs == rhs); } } // namespace common_msgs namespace ros { namespace message_traits { template struct IsFixedSize< ::common_msgs::TaskInfo_ > : FalseType { }; template struct IsFixedSize< ::common_msgs::TaskInfo_ const> : FalseType { }; template struct IsMessage< ::common_msgs::TaskInfo_ > : TrueType { }; template struct IsMessage< ::common_msgs::TaskInfo_ const> : TrueType { }; template struct HasHeader< ::common_msgs::TaskInfo_ > : FalseType { }; template struct HasHeader< ::common_msgs::TaskInfo_ const> : FalseType { }; template struct MD5Sum< ::common_msgs::TaskInfo_ > { static const char* value() { return "04c0b0a7fd79f8f0f2d4d3d069c8739b"; } static const char* value(const ::common_msgs::TaskInfo_&) { return value(); } static const uint64_t static_value1 = 0x04c0b0a7fd79f8f0ULL; static const uint64_t static_value2 = 0xf2d4d3d069c8739bULL; }; template struct DataType< ::common_msgs::TaskInfo_ > { static const char* value() { return "common_msgs/TaskInfo"; } static const char* value(const ::common_msgs::TaskInfo_&) { return value(); } }; template struct Definition< ::common_msgs::TaskInfo_ > { static const char* value() { return "#任务id\n" "string task_id\n" "#任务类型\n" "int32 task_type\n" "#子任务类型\n" "int32 sub_task_type\n" ; } static const char* value(const ::common_msgs::TaskInfo_&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template struct Serializer< ::common_msgs::TaskInfo_ > { template inline static void allInOne(Stream& stream, T m) { stream.next(m.task_id); stream.next(m.task_type); stream.next(m.sub_task_type); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct TaskInfo_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template struct Printer< ::common_msgs::TaskInfo_ > { template static void stream(Stream& s, const std::string& indent, const ::common_msgs::TaskInfo_& v) { s << indent << "task_id: "; Printer, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.task_id); s << indent << "task_type: "; Printer::stream(s, indent + " ", v.task_type); s << indent << "sub_task_type: "; Printer::stream(s, indent + " ", v.sub_task_type); } }; } // namespace message_operations } // namespace ros #endif // COMMON_MSGS_MESSAGE_TASKINFO_H