Skip to content

Commit

Permalink
Add a comment to the do_always_ros2_publish option
Browse files Browse the repository at this point in the history
  • Loading branch information
bdm-k committed Feb 14, 2025
1 parent 2be9bfb commit 46fa3fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/agnocastlib/include/agnocast_publisher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ extern "C" uint32_t get_borrowed_publisher_num();

struct PublisherOptions
{
bool do_always_ros2_publish = true; // For transient local.
// For transient local. If true, publish() does both Agnocast publish and ROS 2 publish,
// regardless of the existence of ROS 2 subscriptions.
bool do_always_ros2_publish = true;
};

template <typename MessageT>
Expand Down

0 comments on commit 46fa3fc

Please sign in to comment.