Lecture 4: ROS Topics - Ex. 2.5 "Age topic does not appear to be published yet"

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.

I think I know what the issue is. I didn’t ‘print’ the topic with ROS_INFO

1 Like

Hi @rmmilner,

In addition, Age is not a topic - it’s a custom message. Messages are published to topics.

From your code, the topic associated with Age is /age_info.

By the way, welcome to the Community!