4.8 Services Quiz

I am very confused. What is the purpose of this package ?

  • Create a new package named **services_quiz_srv
    In previous examples we created package called “custom interfaces”, so is the package “services_quiz_srv” supposed to function as the “custom Interfaces” package does? If that is the request, then I know what to do. But, if not please try to explain the request in more detail.

The following I understand

    • Create another package named services_quiz. You will put the Python scripts that contain the Service Server and Client in this package, and also the launch files to start them.

Is this understanding correct - The client pkg will require keyboard entry of Direction, speed, and time. That will pass to the Service Server using the /turn custom code using string of data.

Hi @ROxX, you are on the right path.

It is good practice to separate any custome messages, actions or services in a different package. That is why you will see a lot of open source like turtlebot3 along with turtlebot3_msgs. In this example, turtlebot3 requires turtlebot3_msgs to work.

It can also be done all in one package, but it can get confusing quick, and you also want to be able to use any custom messages you make without having to bring over all the other information of the main package.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.