Skip to content

Commit

Permalink
Complete published event message when declaring a parameter (#928)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno authored and jacobperron committed Jan 17, 2020
1 parent c0ad535 commit 4f61268
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp
Expand Up @@ -402,6 +402,8 @@ NodeParameters::declare_parameter(

// Publish if events_publisher_ is not nullptr, which may be if disabled in the constructor.
if (nullptr != events_publisher_) {
parameter_event.node = combined_name_;
parameter_event.stamp = node_clock_->get_clock()->now();
events_publisher_->publish(parameter_event);
}

Expand Down

0 comments on commit 4f61268

Please sign in to comment.