Skip to content

Commit

Permalink
Merge pull request #18 from clearpathrobotics/CORE-16023_latch_serial…
Browse files Browse the repository at this point in the history
…ized_publisher

[CORE-16023] Latch serialized publisher
  • Loading branch information
efernandez committed Mar 30, 2020
2 parents fe8aa5e + d539325 commit 88cc285
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fuse_publishers/src/serialized_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ void SerializedPublisher::onInit()
// Configure the publisher
private_node_handle_.getParam("frame_id", frame_id_);

bool latch = true;
private_node_handle_.getParam("latch", latch);

// Advertise the topics
graph_publisher_ = private_node_handle_.advertise<fuse_msgs::SerializedGraph>("graph", 1);
transaction_publisher_ = private_node_handle_.advertise<fuse_msgs::SerializedTransaction>("transaction", 1);
graph_publisher_ = private_node_handle_.advertise<fuse_msgs::SerializedGraph>("graph", 1, latch);
transaction_publisher_ = private_node_handle_.advertise<fuse_msgs::SerializedTransaction>("transaction", 1, latch);
}

void SerializedPublisher::notifyCallback(
Expand Down

0 comments on commit 88cc285

Please sign in to comment.