@@ -47,7 +47,6 @@ The ROS module provides utilities for working with ROS messages and nodes:
47
47
- ** ` debug_publisher.hpp ` ** : A helper class for publishing debug messages with timestamps.
48
48
- ** ` diagnostics_interface.hpp ` ** : An interface for publishing diagnostic messages.
49
49
- ** ` logger_level_configure.hpp ` ** : Utility for configuring logger levels dynamically.
50
- - ** ` managed_transform_buffer.hpp ` ** : A managed buffer for handling static and dynamic transforms.
51
50
- ** ` marker_helper.hpp ` ** : Helper functions for creating and manipulating visualization markers.
52
51
- ** ` msg_covariance.hpp ` ** : Indices for accessing covariance matrices in ROS messages.
53
52
- ** ` msg_operation.hpp ` ** : Overloaded operators for quaternion messages.
@@ -56,12 +55,10 @@ The ROS module provides utilities for working with ROS messages and nodes:
56
55
- ** ` processing_time_publisher.hpp ` ** : Publishes processing times as diagnostic messages.
57
56
- ** ` published_time_publisher.hpp ` ** : Tracks and publishes the time when messages are published.
58
57
- ** ` self_pose_listener.hpp ` ** : Listens to the self-pose of the vehicle.
59
- - ** ` transform_listener.hpp ` ** : Manages transformation listeners.
60
58
- ** ` update_param.hpp ` ** : Updates parameters from remote nodes.
61
59
- ** ` uuid_helper.hpp ` ** : Utilities for generating and managing UUIDs.
62
60
- ** ` wait_for_param.hpp ` ** : Waits for parameters from remote nodes.
63
61
- ** ` debug_traits.hpp ` ** : Traits for identifying debug message types.
64
- - ** ` pcl_conversion.hpp ` ** : Efficient conversion and transformation of PointCloud2 messages to PCL point clouds.
65
62
66
63
#### System Module
67
64
@@ -72,10 +69,6 @@ The system module provides low-level utilities for performance monitoring and er
72
69
- ** ` stop_watch.hpp ` ** : Measures elapsed time for profiling.
73
70
- ** ` time_keeper.hpp ` ** : Tracks and reports the processing time of various functions.
74
71
75
- #### Transform Module
76
-
77
- Efficient methods for transforming and manipulating point clouds.
78
-
79
72
## Usage
80
73
81
74
### Including Headers
@@ -140,36 +133,6 @@ int main() {
140
133
141
134
### Detailed Usage Examples
142
135
143
- #### Transform Point Clouds with ManagedTransformBuffer
144
-
145
- ``` cpp
146
- #include " autoware_utils/ros/managed_transform_buffer.hpp"
147
- #include " sensor_msgs/msg/point_cloud2.hpp"
148
- #include < rclcpp/rclcpp.hpp>
149
-
150
- int main (int argc, char * argv[ ] ) {
151
- rclcpp::init(argc, argv);
152
- auto node = rclcpp::Node::make_shared("transform_node");
153
-
154
- // Initialize ManagedTransformBuffer
155
- autoware_utils::ManagedTransformBuffer transform_buffer(node, false);
156
-
157
- // Load point cloud data
158
- sensor_msgs::msg::PointCloud2 cloud_in; // Assume this is populated with data
159
- sensor_msgs::msg::PointCloud2 cloud_out;
160
-
161
- // Transform point cloud from "base_link" to "map" frame
162
- if (transform_buffer.transform_pointcloud("map", cloud_in, cloud_out)) {
163
- RCLCPP_INFO(node->get_logger(), "Point cloud transformed successfully.");
164
- } else {
165
- RCLCPP_ERROR(node->get_logger(), "Failed to transform point cloud.");
166
- }
167
-
168
- rclcpp::shutdown();
169
- return 0;
170
- }
171
- ```
172
-
173
136
#### Update Parameters Dynamically with update_param.hpp
174
137
175
138
``` cpp
@@ -250,36 +213,6 @@ int main(int argc, char * argv[]) {
250
213
}
251
214
```
252
215
253
- #### Efficient Point Cloud Conversion with pcl_conversion.hpp
254
-
255
- ``` cpp
256
- #include " autoware_utils/ros/pcl_conversion.hpp"
257
- #include " sensor_msgs/msg/point_cloud2.hpp"
258
- #include < pcl/point_types.h>
259
- #include < pcl/PCLPointCloud2.h>
260
- #include < Eigen/Core>
261
- #include < rclcpp/rclcpp.hpp>
262
-
263
- int main (int argc, char * argv[ ] ) {
264
- rclcpp::init(argc, argv);
265
- auto node = rclcpp::Node::make_shared("pcl_conversion_node");
266
-
267
- // Load point cloud data
268
- sensor_msgs::msg::PointCloud2 cloud_in; // Assume this is populated with data
269
- pcl::PointCloud< pcl::PointXYZ > pcl_cloud;
270
-
271
- // Define transformation matrix
272
- Eigen::Matrix4f transform = Eigen::Matrix4f::Identity();
273
- // Populate transform matrix with actual values
274
-
275
- // Convert and transform point cloud
276
- autoware_utils::transform_point_cloud_from_ros_msg(cloud_in, pcl_cloud, transform);
277
-
278
- rclcpp::shutdown();
279
- return 0;
280
- }
281
- ```
282
-
283
216
#### Handling Debug Message Types with debug_traits.hpp
284
217
285
218
```cpp
0 commit comments