@@ -29,40 +29,23 @@ The geometry module provides classes and functions for handling 2D and 3D points
29
29
- Intersection checks for convex polygons using GJK.
30
30
- Conversion between different coordinate systems.
31
31
32
- #### Math Module
33
-
34
- The math module offers a variety of mathematical utilities:
35
-
36
- - ** ` accumulator.hpp ` ** : A class for accumulating statistical data, supporting min, max, and mean calculations.
37
- - ** ` constants.hpp ` ** : Defines commonly used mathematical constants like π and gravity.
38
- - ** ` normalization.hpp ` ** : Functions for normalizing angles and degrees.
39
- - ** ` range.hpp ` ** : Functions for generating sequences of numbers (arange, linspace).
40
- - ** ` trigonometry.hpp ` ** : Optimized trigonometric functions for faster computation.
41
- - ** ` unit_conversion.hpp ` ** : Functions for converting between different units (e.g., degrees to radians, km/h to m/s).
42
-
43
32
#### ROS Module
44
33
45
34
The ROS module provides utilities for working with ROS messages and nodes:
46
35
47
36
- ** ` debug_publisher.hpp ` ** : A helper class for publishing debug messages with timestamps.
48
37
- ** ` diagnostics_interface.hpp ` ** : An interface for publishing diagnostic messages.
49
- - ** ` logger_level_configure.hpp ` ** : Utility for configuring logger levels dynamically.
50
- - ** ` marker_helper.hpp ` ** : Helper functions for creating and manipulating visualization markers.
51
38
- ** ` msg_covariance.hpp ` ** : Indices for accessing covariance matrices in ROS messages.
52
39
- ** ` msg_operation.hpp ` ** : Overloaded operators for quaternion messages.
53
40
- ** ` processing_time_publisher.hpp ` ** : Publishes processing times as diagnostic messages.
54
41
- ** ` published_time_publisher.hpp ` ** : Tracks and publishes the time when messages are published.
55
42
- ** ` self_pose_listener.hpp ` ** : Listens to the self-pose of the vehicle.
56
- - ** ` uuid_helper.hpp ` ** : Utilities for generating and managing UUIDs.
57
43
- ** ` debug_traits.hpp ` ** : Traits for identifying debug message types.
58
44
59
45
#### System Module
60
46
61
47
The system module provides low-level utilities for performance monitoring and error handling:
62
48
63
- - ** ` backtrace.hpp ` ** : Prints backtraces for debugging.
64
- - ** ` lru_cache.hpp ` ** : Implements an LRU (Least Recently Used) cache.
65
- - ** ` stop_watch.hpp ` ** : Measures elapsed time for profiling.
66
49
- ** ` time_keeper.hpp ` ** : Tracks and reports the processing time of various functions.
67
50
68
51
## Usage
@@ -106,27 +89,6 @@ int main() {
106
89
}
107
90
```
108
91
109
- #### Using Accumulator from accumulator.hpp
110
-
111
- ```cpp
112
- #include "autoware_utils/math/accumulator.hpp"
113
-
114
- int main() {
115
- autoware_utils::Accumulator<double> acc;
116
-
117
- acc.add(1.0);
118
- acc.add(2.0);
119
- acc.add(3.0);
120
-
121
- std::cout << "Mean: " << acc.mean() << "\n";
122
- std::cout << "Min: " << acc.min() << "\n";
123
- std::cout << "Max: " << acc.max() << "\n";
124
- std::cout << "Count: " << acc.count() << "\n";
125
-
126
- return 0;
127
- }
128
- ```
129
-
130
92
### Detailed Usage Examples
131
93
132
94
#### Logging Processing Times with ProcessingTimePublisher
0 commit comments