Bug in ROS2 basics in 5 days - Chapter 3.5/3.6

3.5:
Custom interface definition (with s at the end):
int32 years
int32 months
int32 days

3.6:
Custom interface usage (without s at the end):
def on_shutdown(self):
self.age.year = 2021
self.age.month = 5
self.age.day = 21
self.get_logger().info(‘Date this program was made : %d’ %
self.age.day + ‘/%d’ % self.age.month + ‘/%d’ % self.age.year)

1 Like

Thank you for pointing it out. The custom interface definition has been corrected.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.