Unable to import the service message python classes (for exercise 5.1 & example 6.1)

When executing the code as in the exercise / example, there are error message about the import of both exercise 5.1 and example 6.1.

Exercise 5.1:

Example 6.1:


I didn’t do anything weird or different than described in the exercises.

Can anyone help me?

Hi @xvossen ,

Sometimes the IDE does not detect some libraries available in ROS. It may happen when these libraries are located in the simulation workspace, it is a known issue and we are working on that.

Does the code work properly if you run it? If the message is not available, you should have a python error in runtime, otherwise, you can just ignore (for instance) the IDE message.

About not having the service available, make sure you have it running in another shell. Could you run rosnode list to make sure it is running?

Regards