Skip to content

Commit

Permalink
note that lazy publishers are possible in iron and later
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson authored Nov 17, 2023
1 parent fffa858 commit 2671caf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rclcpp/workarounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Lazy Publishers

ROS2 does not yet have subscriber connect callbacks. This code creates
a function which is called periodically to check if we need to start
or stop subscribers:
Prior to the Iron release, ROS 2 did not support subscriber connect
callbacks. This code creates a function which is called periodically
to check if we need to start or stop subscribers:

```cpp
#include <rclcpp/rclcpp.hpp>
Expand Down Expand Up @@ -76,4 +76,4 @@ private:
image_transport::CameraPublisher pub_;
rclcpp::TimerBase::SharedPtr timer_;
};
```
```

0 comments on commit 2671caf

Please sign in to comment.