Package and Age custom message not found

I am having this issue. I have seen it in two forms:

  1. The issue shown above
  2. I am also getting

user:~/catkin_ws/src$ rosrun exercise_4_2
[rospack] Error: package ‘exercise_4_2’ not found

Any thoughts?

Hi @lclemen,

Have you created the package exercise_4_2? Also, please post the error given about your Age message here.

There were two issues that I found.

  • The devel and source directories had to be deleted.
  • Further, the command source devel/setup.bash needs to be run in any shell that wants to access the new message which was not mentioned anywhere…