ROS 2 Labs · exercise 04
Publisher and subscriber
Connect a timer-driven publisher to a subscriber callback.
Lab 04 · C++ publisher and subscriberGuided steps
- 1.Store the callback when subscribe() is called.
- 2.publish() must hand the value to the stored callback.
- 3.Three timer ticks should deliver three increasing targets.
Your code
Your code is saved in this browser after every run and restored next time.