Hi RobotIgnite Community Support,
Sorry is me again, asking some stupid questions but really scratching my head again,
I ran the roslaunch exercise_231 publish_age.launch command and followed the instructions to solution provided for exercise 2.3 (created the msg folder with age.msg inside, created launch and py file with the copy and paste codes) , except my package is called exercise_231 instead which I shouldnt think it would make a difference, I also made this change of exercise_231 for the launch and .py file) , but the errors below still shows up , I’m not sure why exercise_231.msg is not a module…
Traceback (most recent call last):
File “/home/user/catkin_ws/src/exercise_231/src/publish_age.py”, line 4, in
from exercise_231.msg import Age #Import Age message from the exercise_23 package
ImportError: No module named exercise_231.msg
[publish_age_node-1] process has died [pid 26925, exit code 1, cmd /home/user/catkin_ws/src/exercise_231/src/publish_age.py __name:=publish_age_node __log:=/home/user/.ros/log/876a909a-8855-11ea-89c6-02914e9abbec/publish_age_node-1.log].
log file: /home/user/.ros/log/876a909a-8855-11ea-89c6-02914e9abbec/publish_age_node-1*.log
I look forward to your reply and thank you for your help,
Kind Regards,
Roger