Exercise3.2 error

"Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.*?)}/ at /usr/bin/print line 528.
Error: no such file “msg” "

I got this error when I tried to do the exercise 3.2. I did everything exactly as the solution, but still getting this error.
Please help me out! Thank you very much!

Hi @nvo14

Please correct the following errors in your code

  1. In file publish_age.py, you wrote:
from Age.msg import Age #Import Age message from the exercise_33 package

This is not the right way to import the message. You need to import it like this:

# from package_name.msg import Age
# In this case, it should be
from read_odometry.msg import Age
  1. It seems that you are doing copy/paste when creating your packages. If so, please don’t do it anymore. You should always create your packages with catkin_create_pkg.

  2. There is a nested package exercise_31 inside my_examples_pkg. You should move it out.

1 Like

[publish_age.launch] is neither a launch file in package [read_odometry] nor is [read_odometry] a launch file name
The traceback for the exception was written to the log file

Now I got this error? Could you please check it for me?

Please check the following:

  • Can you successfully compile the packages using catkin_make, without errors?
  • Have you run source devel/setup.bash after catkin_make?
  • Is your launch file correctly written?