You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes the tutorial work on Galactic. In particular:
1. Switch to using a std_msgs/msg/String for the first example.
That's what 'demo_nodes_cpp::Talker' uses, so this should match.
2. Fix up the API calls in the generating your own data node
so it actually works.
3. Rename the data object to data_ to better match convention.
Signed-off-by: Chris Lalancette <[email protected]>
@@ -403,12 +403,12 @@ The timer fires with a one-second period, and calls the given member function wh
403
403
404
404
Within the timer callback, we generate (or otherwise obtain, e.g. read from a serial port connected to some hardware) the data we wish to store in the bag.
405
405
The important difference between this and the previous sample is that the data is not yet serialised.
406
-
Instead we are passing to the writer object a ROS message data type, in this case an instance of ``example_interfaces/msg/Int32``.
406
+
Instead we are passing a ROS message data type to the writer object, in this case an instance of ``example_interfaces/msg/Int32``.
407
407
The writer will serialise the data for us before writing it into the bag.
0 commit comments