After completing and making sure my code matched the solutions for exercise 2.5 in lecture 4 -understanding ROS topics. I compiled, sourced and launched my ros node successfully.
But when I tried to use “rostopic echo /Age” after launching my publisher, I got the message, ‘topic [/Age] does not appear to be published yet’.
Additionally, I did not get any errors at compilation, but VS code is giving and error on a few lines of my cpp file.