123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- // Generated by gencpp from file lslidar_msgs/LslidarScan.msg
- // DO NOT EDIT!
- #ifndef LSLIDAR_MSGS_MESSAGE_LSLIDARSCAN_H
- #define LSLIDAR_MSGS_MESSAGE_LSLIDARSCAN_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>
- #include <lslidar_msgs/LslidarPoint.h>
- namespace lslidar_msgs
- {
- template <class ContainerAllocator>
- struct LslidarScan_
- {
- typedef LslidarScan_<ContainerAllocator> Type;
- LslidarScan_()
- : altitude(0.0)
- , points() {
- }
- LslidarScan_(const ContainerAllocator& _alloc)
- : altitude(0.0)
- , points(_alloc) {
- (void)_alloc;
- }
- typedef double _altitude_type;
- _altitude_type altitude;
- typedef std::vector< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >> _points_type;
- _points_type points;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan_<ContainerAllocator> > Ptr;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const> ConstPtr;
- }; // struct LslidarScan_
- typedef ::lslidar_msgs::LslidarScan_<std::allocator<void> > LslidarScan;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan > LslidarScanPtr;
- typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan const> LslidarScanConstPtr;
- // constants requiring out of line definition
- template<typename ContainerAllocator>
- std::ostream& operator<<(std::ostream& s, const ::lslidar_msgs::LslidarScan_<ContainerAllocator> & v)
- {
- ros::message_operations::Printer< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >::stream(s, "", v);
- return s;
- }
- template<typename ContainerAllocator1, typename ContainerAllocator2>
- bool operator==(const ::lslidar_msgs::LslidarScan_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarScan_<ContainerAllocator2> & rhs)
- {
- return lhs.altitude == rhs.altitude &&
- lhs.points == rhs.points;
- }
- template<typename ContainerAllocator1, typename ContainerAllocator2>
- bool operator!=(const ::lslidar_msgs::LslidarScan_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarScan_<ContainerAllocator2> & rhs)
- {
- return !(lhs == rhs);
- }
- } // namespace lslidar_msgs
- namespace ros
- {
- namespace message_traits
- {
- template <class ContainerAllocator>
- struct IsMessage< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- : TrueType
- { };
- template <class ContainerAllocator>
- struct IsMessage< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const>
- : TrueType
- { };
- template <class ContainerAllocator>
- struct IsFixedSize< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- : FalseType
- { };
- template <class ContainerAllocator>
- struct IsFixedSize< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const>
- : FalseType
- { };
- template <class ContainerAllocator>
- struct HasHeader< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- : FalseType
- { };
- template <class ContainerAllocator>
- struct HasHeader< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const>
- : FalseType
- { };
- template<class ContainerAllocator>
- struct MD5Sum< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- {
- static const char* value()
- {
- return "e133ef5862996d57bf7e7244728c6ced";
- }
- static const char* value(const ::lslidar_msgs::LslidarScan_<ContainerAllocator>&) { return value(); }
- static const uint64_t static_value1 = 0xe133ef5862996d57ULL;
- static const uint64_t static_value2 = 0xbf7e7244728c6cedULL;
- };
- template<class ContainerAllocator>
- struct DataType< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- {
- static const char* value()
- {
- return "lslidar_msgs/LslidarScan";
- }
- static const char* value(const ::lslidar_msgs::LslidarScan_<ContainerAllocator>&) { return value(); }
- };
- template<class ContainerAllocator>
- struct Definition< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- {
- static const char* value()
- {
- return "# Altitude of all the points within this scan\n"
- "float64 altitude\n"
- "\n"
- "# The valid points in this scan sorted by azimuth\n"
- "# from 0 to 359.99\n"
- "LslidarPoint[] points\n"
- "\n"
- "================================================================================\n"
- "MSG: lslidar_msgs/LslidarPoint\n"
- "# Time when the point is captured\n"
- "float64 time\n"
- "\n"
- "# Converted distance in the sensor frame\n"
- "float64 x\n"
- "float64 y\n"
- "float64 z\n"
- "\n"
- "# Raw measurement from Leishen C16\n"
- "float64 azimuth\n"
- "float64 distance\n"
- "float64 intensity\n"
- "uint16 ring\n"
- "\n"
- ;
- }
- static const char* value(const ::lslidar_msgs::LslidarScan_<ContainerAllocator>&) { return value(); }
- };
- } // namespace message_traits
- } // namespace ros
- namespace ros
- {
- namespace serialization
- {
- template<class ContainerAllocator> struct Serializer< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- {
- template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
- {
- stream.next(m.altitude);
- stream.next(m.points);
- }
- ROS_DECLARE_ALLINONE_SERIALIZER
- }; // struct LslidarScan_
- } // namespace serialization
- } // namespace ros
- namespace ros
- {
- namespace message_operations
- {
- template<class ContainerAllocator>
- struct Printer< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
- {
- template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lslidar_msgs::LslidarScan_<ContainerAllocator>& v)
- {
- s << indent << "altitude: ";
- Printer<double>::stream(s, indent + " ", v.altitude);
- s << indent << "points[]" << std::endl;
- for (size_t i = 0; i < v.points.size(); ++i)
- {
- s << indent << " points[" << i << "]: ";
- s << std::endl;
- s << indent;
- Printer< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]);
- }
- }
- };
- } // namespace message_operations
- } // namespace ros
- #endif // LSLIDAR_MSGS_MESSAGE_LSLIDARSCAN_H
|