Exercise 2.5(ROS2) - code completion doesn't work for custom message

In Exercise 2.5 for ROS2, I create the custom message in Age.msg. I compiled the package. When I write a publisher to publish the age, code completion doesn’t work for the Age message. I am able to write it correctly and compile it and it works. But I would like code completion to work for custom messages. What do I need for that?

Hi @bijoua,

Nice to see you here again :slight_smile: .

After recompiling your workspace, have you source the workspace on every shell where you are using the custom message, using the command below?

source ~/ros2_ws/install/setup.bash