123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- // Generated by gencpp from file lslidar_msgs/LslidarPacket.msg
- // DO NOT EDIT!
- #ifndef LSLIDAR_MSGS_MESSAGE_LSLIDARPACKET_H
- #define LSLIDAR_MSGS_MESSAGE_LSLIDARPACKET_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 lslidar_msgs
- {
- template <class ContainerAllocator>
- struct LslidarPacket_
- {
- typedef LslidarPacket_<ContainerAllocator> Type;
- LslidarPacket_()
- : stamp()
- , data() {
- data.assign(0);
- }
- LslidarPacket_(const ContainerAllocator& _alloc)
- : stamp()
- , data() {
- (void)_alloc;
- data.assign(0);
- }
- typedef ros::Time _stamp_type;
- _stamp_type stamp;
- typedef boost::array<uint8_t, 1212> _data_type;
- _data_type data;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> > Ptr;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const> ConstPtr;
- }; // struct LslidarPacket_
- typedef ::lslidar_msgs::LslidarPacket_<std::allocator<void> > LslidarPacket;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket > LslidarPacketPtr;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket const> LslidarPacketConstPtr;
- // constants requiring out of line definition
- template<typename ContainerAllocator>
- std::ostream& operator<<(std::ostream& s, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator> & v)
- {
- ros::message_operations::Printer< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >::stream(s, "", v);
- return s;
- }
- template<typename ContainerAllocator1, typename ContainerAllocator2>
- bool operator==(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator2> & rhs)
- {
- return lhs.stamp == rhs.stamp &&
- lhs.data == rhs.data;
- }
- template<typename ContainerAllocator1, typename ContainerAllocator2>
- bool operator!=(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator2> & rhs)
- {
- return !(lhs == rhs);
- }
- } // namespace lslidar_msgs
- namespace ros
- {
- namespace message_traits
- {
- template <class ContainerAllocator>
- struct IsMessage< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- : TrueType
- { };
- template <class ContainerAllocator>
- struct IsMessage< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const>
- : TrueType
- { };
- template <class ContainerAllocator>
- struct IsFixedSize< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- : TrueType
- { };
- template <class ContainerAllocator>
- struct IsFixedSize< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const>
- : TrueType
- { };
- template <class ContainerAllocator>
- struct HasHeader< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- : FalseType
- { };
- template <class ContainerAllocator>
- struct HasHeader< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const>
- : FalseType
- { };
- template<class ContainerAllocator>
- struct MD5Sum< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- {
- static const char* value()
- {
- return "2176b512706452637099709287fea15e";
- }
- static const char* value(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>&) { return value(); }
- static const uint64_t static_value1 = 0x2176b51270645263ULL;
- static const uint64_t static_value2 = 0x7099709287fea15eULL;
- };
- template<class ContainerAllocator>
- struct DataType< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- {
- static const char* value()
- {
- return "lslidar_msgs/LslidarPacket";
- }
- static const char* value(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>&) { return value(); }
- };
- template<class ContainerAllocator>
- struct Definition< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- {
- static const char* value()
- {
- return "# Raw Leishen LIDAR packet.\n"
- "\n"
- "time stamp # packet timestamp\n"
- "uint8[1212] data # packet contents\n"
- "\n"
- ;
- }
- static const char* value(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>&) { return value(); }
- };
- } // namespace message_traits
- } // namespace ros
- namespace ros
- {
- namespace serialization
- {
- template<class ContainerAllocator> struct Serializer< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- {
- template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
- {
- stream.next(m.stamp);
- stream.next(m.data);
- }
- ROS_DECLARE_ALLINONE_SERIALIZER
- }; // struct LslidarPacket_
- } // namespace serialization
- } // namespace ros
- namespace ros
- {
- namespace message_operations
- {
- template<class ContainerAllocator>
- struct Printer< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
- {
- template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>& v)
- {
- s << indent << "stamp: ";
- Printer<ros::Time>::stream(s, indent + " ", v.stamp);
- s << indent << "data[]" << std::endl;
- for (size_t i = 0; i < v.data.size(); ++i)
- {
- s << indent << " data[" << i << "]: ";
- Printer<uint8_t>::stream(s, indent + " ", v.data[i]);
- }
- }
- };
- } // namespace message_operations
- } // namespace ros
- #endif // LSLIDAR_MSGS_MESSAGE_LSLIDARPACKET_H
|