z1_controller/include/message/unitree_legged_msgs/IMU.h

248 lines
6.1 KiB
C
Raw Normal View History

2022-07-20 11:11:38 +08:00
// Generated by gencpp from file unitree_legged_msgs/IMU.msg
// DO NOT EDIT!
#ifndef UNITREE_LEGGED_MSGS_MESSAGE_IMU_H
#define UNITREE_LEGGED_MSGS_MESSAGE_IMU_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 IMU_
{
typedef IMU_<ContainerAllocator> Type;
IMU_()
: quaternion()
, gyroscope()
, accelerometer()
, temperature(0) {
quaternion.assign(0.0);
gyroscope.assign(0.0);
accelerometer.assign(0.0);
}
IMU_(const ContainerAllocator& _alloc)
: quaternion()
, gyroscope()
, accelerometer()
, temperature(0) {
(void)_alloc;
quaternion.assign(0.0);
gyroscope.assign(0.0);
accelerometer.assign(0.0);
}
typedef boost::array<float, 4> _quaternion_type;
_quaternion_type quaternion;
typedef boost::array<float, 3> _gyroscope_type;
_gyroscope_type gyroscope;
typedef boost::array<float, 3> _accelerometer_type;
_accelerometer_type accelerometer;
typedef int8_t _temperature_type;
_temperature_type temperature;
typedef boost::shared_ptr< ::unitree_legged_msgs::IMU_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::unitree_legged_msgs::IMU_<ContainerAllocator> const> ConstPtr;
}; // struct IMU_
typedef ::unitree_legged_msgs::IMU_<std::allocator<void> > IMU;
typedef boost::shared_ptr< ::unitree_legged_msgs::IMU > IMUPtr;
typedef boost::shared_ptr< ::unitree_legged_msgs::IMU const> IMUConstPtr;
// constants requiring out of line definition
template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::unitree_legged_msgs::IMU_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::unitree_legged_msgs::IMU_<ContainerAllocator> >::stream(s, "", v);
return s;
}
template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator==(const ::unitree_legged_msgs::IMU_<ContainerAllocator1> & lhs, const ::unitree_legged_msgs::IMU_<ContainerAllocator2> & rhs)
{
return lhs.quaternion == rhs.quaternion &&
lhs.gyroscope == rhs.gyroscope &&
lhs.accelerometer == rhs.accelerometer &&
lhs.temperature == rhs.temperature;
}
template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator!=(const ::unitree_legged_msgs::IMU_<ContainerAllocator1> & lhs, const ::unitree_legged_msgs::IMU_<ContainerAllocator2> & rhs)
{
return !(lhs == rhs);
}
} // namespace unitree_legged_msgs
namespace ros
{
namespace message_traits
{
template <class ContainerAllocator>
struct IsFixedSize< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsFixedSize< ::unitree_legged_msgs::IMU_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::unitree_legged_msgs::IMU_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
: FalseType
{ };
template <class ContainerAllocator>
struct HasHeader< ::unitree_legged_msgs::IMU_<ContainerAllocator> const>
: FalseType
{ };
template<class ContainerAllocator>
struct MD5Sum< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
{
static const char* value()
{
return "dd4bb4e42aa2f15aa1fb1b6a3c3752cb";
}
static const char* value(const ::unitree_legged_msgs::IMU_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0xdd4bb4e42aa2f15aULL;
static const uint64_t static_value2 = 0xa1fb1b6a3c3752cbULL;
};
template<class ContainerAllocator>
struct DataType< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
{
static const char* value()
{
return "unitree_legged_msgs/IMU";
}
static const char* value(const ::unitree_legged_msgs::IMU_<ContainerAllocator>&) { return value(); }
};
template<class ContainerAllocator>
struct Definition< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
{
static const char* value()
{
return "float32[4] quaternion\n"
"float32[3] gyroscope\n"
"float32[3] accelerometer\n"
"int8 temperature\n"
;
}
static const char* value(const ::unitree_legged_msgs::IMU_<ContainerAllocator>&) { return value(); }
};
} // namespace message_traits
} // namespace ros
namespace ros
{
namespace serialization
{
template<class ContainerAllocator> struct Serializer< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
{
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.quaternion);
stream.next(m.gyroscope);
stream.next(m.accelerometer);
stream.next(m.temperature);
}
ROS_DECLARE_ALLINONE_SERIALIZER
}; // struct IMU_
} // namespace serialization
} // namespace ros
namespace ros
{
namespace message_operations
{
template<class ContainerAllocator>
struct Printer< ::unitree_legged_msgs::IMU_<ContainerAllocator> >
{
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::unitree_legged_msgs::IMU_<ContainerAllocator>& v)
{
s << indent << "quaternion[]" << std::endl;
for (size_t i = 0; i < v.quaternion.size(); ++i)
{
s << indent << " quaternion[" << i << "]: ";
Printer<float>::stream(s, indent + " ", v.quaternion[i]);
}
s << indent << "gyroscope[]" << std::endl;
for (size_t i = 0; i < v.gyroscope.size(); ++i)
{
s << indent << " gyroscope[" << i << "]: ";
Printer<float>::stream(s, indent + " ", v.gyroscope[i]);
}
s << indent << "accelerometer[]" << std::endl;
for (size_t i = 0; i < v.accelerometer.size(); ++i)
{
s << indent << " accelerometer[" << i << "]: ";
Printer<float>::stream(s, indent + " ", v.accelerometer[i]);
}
s << indent << "temperature: ";
Printer<int8_t>::stream(s, indent + " ", v.temperature);
}
};
} // namespace message_operations
} // namespace ros
#endif // UNITREE_LEGGED_MSGS_MESSAGE_IMU_H