File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
include/diagnostic_aggregator Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,13 @@ class Aggregator
111
111
DIAGNOSTIC_AGGREGATOR_PUBLIC
112
112
Aggregator ();
113
113
114
+ /* !
115
+ *\brief Constructor initializes with main prefix (ex: '/Robot') and custom node options
116
+ */
117
+ DIAGNOSTIC_AGGREGATOR_PUBLIC
118
+ explicit Aggregator (rclcpp::NodeOptions options);
119
+
120
+
114
121
DIAGNOSTIC_AGGREGATOR_PUBLIC
115
122
virtual ~Aggregator ();
116
123
Original file line number Diff line number Diff line change @@ -57,9 +57,12 @@ using diagnostic_msgs::msg::DiagnosticStatus;
57
57
* @todo(anordman): make aggregator a lifecycle node.
58
58
*/
59
59
Aggregator::Aggregator ()
60
+ : Aggregator(rclcpp::NodeOptions()) {}
61
+
62
+ Aggregator::Aggregator (rclcpp::NodeOptions options)
60
63
: n_(std::make_shared<rclcpp::Node>(
61
64
" analyzers" , " " ,
62
- rclcpp::NodeOptions () .allow_undeclared_parameters(true ).
65
+ options .allow_undeclared_parameters(true ).
63
66
automatically_declare_parameters_from_overrides (true ))),
64
67
logger_(rclcpp::get_logger(" Aggregator" )),
65
68
pub_rate_(1.0 ),
You can’t perform that action at this time.
0 commit comments