@@ -151,28 +151,28 @@ namespace message_traits
151151template <typename T>
152152struct MD5Sum <pcl::PointCloud<T>>
153153{
154- static const char * value () {return MD5Sum<sensor_msgs::PointCloud2>::value ();}
154+ static const char * value () {return MD5Sum<sensor_msgs::msg:: PointCloud2>::value ();}
155155 static const char * value (const pcl::PointCloud<T> &) {return value ();}
156156
157- static const uint64_t static_value1 = MD5Sum<sensor_msgs::PointCloud2>::static_value1;
158- static const uint64_t static_value2 = MD5Sum<sensor_msgs::PointCloud2>::static_value2;
157+ static const uint64_t static_value1 = MD5Sum<sensor_msgs::msg:: PointCloud2>::static_value1;
158+ static const uint64_t static_value2 = MD5Sum<sensor_msgs::msg:: PointCloud2>::static_value2;
159159
160160 // If the definition of sensor_msgs/PointCloud2 changes, we'll get a compile error here.
161- ROS_STATIC_ASSERT (static_value1 == 0x1158d486dd51d683ULL );
162- ROS_STATIC_ASSERT (static_value2 == 0xce2f1be655c3c181ULL );
161+ static_assert (static_value1 == 0x1158d486dd51d683ULL );
162+ static_assert (static_value2 == 0xce2f1be655c3c181ULL );
163163};
164164
165165template <typename T>
166166struct DataType <pcl::PointCloud<T>>
167167{
168- static const char * value () {return DataType<sensor_msgs::PointCloud2>::value ();}
168+ static const char * value () {return DataType<sensor_msgs::msg:: PointCloud2>::value ();}
169169 static const char * value (const pcl::PointCloud<T> &) {return value ();}
170170};
171171
172172template <typename T>
173173struct Definition <pcl::PointCloud<T>>
174174{
175- static const char * value () {return Definition<sensor_msgs::PointCloud2>::value ();}
175+ static const char * value () {return Definition<sensor_msgs::msg:: PointCloud2>::value ();}
176176 static const char * value (const pcl::PointCloud<T> &) {return value ();}
177177};
178178
@@ -190,26 +190,26 @@ struct TimeStamp<pcl::PointCloud<T>>
190190 // pointer returned by the first functions may go out of scope, but there
191191 // isn't a lot I can do about that. This is a good reason to refuse to
192192 // returning pointers like this...
193- static ros ::Time * pointer (typename pcl::PointCloud<T> & m)
193+ static rclcpp ::Time * pointer (typename pcl::PointCloud<T> & m)
194194 {
195- header_.reset (new std_msgs::Header ());
195+ header_.reset (new std_msgs::msg:: Header ());
196196 pcl_conversions::fromPCL (m.header , *(header_));
197197 return &(header_->stamp );
198198 }
199- static ros ::Time const * pointer (const typename pcl::PointCloud<T> & m)
199+ static rclcpp ::Time const * pointer (const typename pcl::PointCloud<T> & m)
200200 {
201- header_const_.reset (new std_msgs::Header ());
201+ header_const_.reset (new std_msgs::msg:: Header ());
202202 pcl_conversions::fromPCL (m.header , *(header_const_));
203203 return &(header_const_->stamp );
204204 }
205- static ros ::Time value (const typename pcl::PointCloud<T> & m)
205+ static rclcpp ::Time value (const typename pcl::PointCloud<T> & m)
206206 {
207207 return pcl_conversions::fromPCL (m.header ).stamp ;
208208 }
209209
210210private:
211- static boost::shared_ptr<std_msgs::Header> header_;
212- static boost::shared_ptr<std_msgs::Header> header_const_;
211+ static boost::shared_ptr<std_msgs::msg:: Header> header_;
212+ static boost::shared_ptr<std_msgs::msg:: Header> header_const_;
213213};
214214
215215template <typename T>
@@ -267,14 +267,14 @@ struct Serializer<pcl::PointCloud<T>>
267267 template <typename Stream>
268268 inline static void read (Stream & stream, pcl::PointCloud<T> & m)
269269 {
270- std_msgs::Header header;
270+ std_msgs::msg:: Header header;
271271 stream.next (header);
272272 pcl_conversions::toPCL (header, m.header );
273273 stream.next (m.height );
274274 stream.next (m.width );
275275
276276 // / @todo Check that fields haven't changed!
277- std::vector<sensor_msgs::PointField> fields;
277+ std::vector<sensor_msgs::msg:: PointField> fields;
278278 stream.next (fields);
279279
280280 // Construct field mapping if deserializing for the first time
0 commit comments