216 lines
4.9 KiB
C++
216 lines
4.9 KiB
C++
// Generated by gencpp from file unitree_legged_msgs/LED.msg
|
|
// DO NOT EDIT!
|
|
|
|
|
|
#ifndef UNITREE_LEGGED_MSGS_MESSAGE_LED_H
|
|
#define UNITREE_LEGGED_MSGS_MESSAGE_LED_H
|
|
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
#include <ros/types.h>
|
|
#include <ros/serialization.h>
|
|
#include <ros/builtin_message_traits.h>
|
|
#include <ros/message_operations.h>
|
|
|
|
|
|
namespace unitree_legged_msgs
|
|
{
|
|
template <class ContainerAllocator>
|
|
struct LED_
|
|
{
|
|
typedef LED_<ContainerAllocator> Type;
|
|
|
|
LED_()
|
|
: r(0)
|
|
, g(0)
|
|
, b(0) {
|
|
}
|
|
LED_(const ContainerAllocator& _alloc)
|
|
: r(0)
|
|
, g(0)
|
|
, b(0) {
|
|
(void)_alloc;
|
|
}
|
|
|
|
|
|
|
|
typedef uint8_t _r_type;
|
|
_r_type r;
|
|
|
|
typedef uint8_t _g_type;
|
|
_g_type g;
|
|
|
|
typedef uint8_t _b_type;
|
|
_b_type b;
|
|
|
|
|
|
|
|
|
|
|
|
typedef boost::shared_ptr< ::unitree_legged_msgs::LED_<ContainerAllocator> > Ptr;
|
|
typedef boost::shared_ptr< ::unitree_legged_msgs::LED_<ContainerAllocator> const> ConstPtr;
|
|
|
|
}; // struct LED_
|
|
|
|
typedef ::unitree_legged_msgs::LED_<std::allocator<void> > LED;
|
|
|
|
typedef boost::shared_ptr< ::unitree_legged_msgs::LED > LEDPtr;
|
|
typedef boost::shared_ptr< ::unitree_legged_msgs::LED const> LEDConstPtr;
|
|
|
|
// constants requiring out of line definition
|
|
|
|
|
|
|
|
template<typename ContainerAllocator>
|
|
std::ostream& operator<<(std::ostream& s, const ::unitree_legged_msgs::LED_<ContainerAllocator> & v)
|
|
{
|
|
ros::message_operations::Printer< ::unitree_legged_msgs::LED_<ContainerAllocator> >::stream(s, "", v);
|
|
return s;
|
|
}
|
|
|
|
|
|
template<typename ContainerAllocator1, typename ContainerAllocator2>
|
|
bool operator==(const ::unitree_legged_msgs::LED_<ContainerAllocator1> & lhs, const ::unitree_legged_msgs::LED_<ContainerAllocator2> & rhs)
|
|
{
|
|
return lhs.r == rhs.r &&
|
|
lhs.g == rhs.g &&
|
|
lhs.b == rhs.b;
|
|
}
|
|
|
|
template<typename ContainerAllocator1, typename ContainerAllocator2>
|
|
bool operator!=(const ::unitree_legged_msgs::LED_<ContainerAllocator1> & lhs, const ::unitree_legged_msgs::LED_<ContainerAllocator2> & rhs)
|
|
{
|
|
return !(lhs == rhs);
|
|
}
|
|
|
|
|
|
} // namespace unitree_legged_msgs
|
|
|
|
namespace ros
|
|
{
|
|
namespace message_traits
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
template <class ContainerAllocator>
|
|
struct IsFixedSize< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
: TrueType
|
|
{ };
|
|
|
|
template <class ContainerAllocator>
|
|
struct IsFixedSize< ::unitree_legged_msgs::LED_<ContainerAllocator> const>
|
|
: TrueType
|
|
{ };
|
|
|
|
template <class ContainerAllocator>
|
|
struct IsMessage< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
: TrueType
|
|
{ };
|
|
|
|
template <class ContainerAllocator>
|
|
struct IsMessage< ::unitree_legged_msgs::LED_<ContainerAllocator> const>
|
|
: TrueType
|
|
{ };
|
|
|
|
template <class ContainerAllocator>
|
|
struct HasHeader< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
: FalseType
|
|
{ };
|
|
|
|
template <class ContainerAllocator>
|
|
struct HasHeader< ::unitree_legged_msgs::LED_<ContainerAllocator> const>
|
|
: FalseType
|
|
{ };
|
|
|
|
|
|
template<class ContainerAllocator>
|
|
struct MD5Sum< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
{
|
|
static const char* value()
|
|
{
|
|
return "353891e354491c51aabe32df673fb446";
|
|
}
|
|
|
|
static const char* value(const ::unitree_legged_msgs::LED_<ContainerAllocator>&) { return value(); }
|
|
static const uint64_t static_value1 = 0x353891e354491c51ULL;
|
|
static const uint64_t static_value2 = 0xaabe32df673fb446ULL;
|
|
};
|
|
|
|
template<class ContainerAllocator>
|
|
struct DataType< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
{
|
|
static const char* value()
|
|
{
|
|
return "unitree_legged_msgs/LED";
|
|
}
|
|
|
|
static const char* value(const ::unitree_legged_msgs::LED_<ContainerAllocator>&) { return value(); }
|
|
};
|
|
|
|
template<class ContainerAllocator>
|
|
struct Definition< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
{
|
|
static const char* value()
|
|
{
|
|
return "uint8 r\n"
|
|
"uint8 g\n"
|
|
"uint8 b\n"
|
|
;
|
|
}
|
|
|
|
static const char* value(const ::unitree_legged_msgs::LED_<ContainerAllocator>&) { return value(); }
|
|
};
|
|
|
|
} // namespace message_traits
|
|
} // namespace ros
|
|
|
|
namespace ros
|
|
{
|
|
namespace serialization
|
|
{
|
|
|
|
template<class ContainerAllocator> struct Serializer< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
{
|
|
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
|
|
{
|
|
stream.next(m.r);
|
|
stream.next(m.g);
|
|
stream.next(m.b);
|
|
}
|
|
|
|
ROS_DECLARE_ALLINONE_SERIALIZER
|
|
}; // struct LED_
|
|
|
|
} // namespace serialization
|
|
} // namespace ros
|
|
|
|
namespace ros
|
|
{
|
|
namespace message_operations
|
|
{
|
|
|
|
template<class ContainerAllocator>
|
|
struct Printer< ::unitree_legged_msgs::LED_<ContainerAllocator> >
|
|
{
|
|
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::unitree_legged_msgs::LED_<ContainerAllocator>& v)
|
|
{
|
|
s << indent << "r: ";
|
|
Printer<uint8_t>::stream(s, indent + " ", v.r);
|
|
s << indent << "g: ";
|
|
Printer<uint8_t>::stream(s, indent + " ", v.g);
|
|
s << indent << "b: ";
|
|
Printer<uint8_t>::stream(s, indent + " ", v.b);
|
|
}
|
|
};
|
|
|
|
} // namespace message_operations
|
|
} // namespace ros
|
|
|
|
#endif // UNITREE_LEGGED_MSGS_MESSAGE_LED_H
|