So if you can rename a node and if you can rename a topic, you can also rename a service when you start
the node.
Okay.
So let's start first our node Ros to run my for example Python package with the Add to mint server.
Okay.
And as you create the service when you create the server, then that's also where you're going to start
to rename the service.
Let's just run it like this.
Okay.
And we can see that we have Ros two.
I'm going to do that here.
Ros two service list.
We find the add to hints.
Okay.
So that's what we expected.
Now let's stop that and let's run the command again.
And this time well we're going to put the Ros ARGs like we did before.
And then dash R for renaming actually remapping.
And then we're going to do the same thing as we did with topics.
So with topics you would just put the name of the topic.
So the old one and then the new one for services we put the old name.
So add to int that's the one we have written in the code.
And then colon equal.
And well let's just say ABC, I run it.
Okay.
It's still working.
So we haven't renamed the node.
We have just renamed the service inside the node.
Now if I do Ros two service list, you see we have ABC.
Okay.
So all the other services stay the same.
Those are automatically generated.
But that one here add to it becomes ABC.
And now let's run the client.
So Ros to run my Python package for example and add to its client.
Let's just run the script.
Um no.
OOP.
It's going to be the same.
And what you can see we're going to create a client, but then waiting for the server.
So the server is not found.
I'll press control see why the server is not found.
Because this here this node is going to try to reach the add to insert service.
But this service doesn't exist anymore.
It's ABC because we have renamed it here.
So you also need to rename it to do that on the client side with ros args.
And then dash r add to int that becomes ABC.
And you see now it is found and it's correctly working.
So if you rename a service on the server side then for each client that you start you also need to rename
the service.