And now we want that this joystick control, this robot.
This is the package that we want to utilize and we have opened it in the VS code as well.
This has the build type CMake, but we want to write a python node in in this package.
So we will make some changes as we made previously in this package.
Turtles import.
Okay, we'll make it quickly.
Now I have made some necessary changes in it and I will go to the post workspace and now I will try
to build my package.
Now this can run the python node as well.
And now we will add a node inside the script folder.
This is the node that we are going to utilize.
Okay, so first let's make some changes in the same place as well.
And now I will build it again.
Now it can run the line.
Turtle Joy.
Darkfire Not so in here.
We are utilizing the topic and topic and the server topic LEDs to trigger the LED's and the server to
move the server up and down.
So now first let's take a look on the demo.
First I will run the micro Ros agent and I will give it a restart.
Now this is connected, okay?
And now I will run the joystick node in here.
Yes, this is running and.
And now I will run this line.
Dirtrillionoad.
We can control list now for first, if we want to control the server, I will press this button to take
it above and this button to take it.
Take it near to the ground.
But if we want a gradual increase, I will do it like this.
Okay?
And if I want to gradually take it down, I will do this.
Yes, this is going and again, if I want to take it above this and if I want to take it down this.
All right.
If I want to control the LEDs, I will press A to turn off the both.
And now I will press y to turn on both.
Turn off, turn on, turn off, turn on if I want.
Just right already I will press b okay.
If I want just left, I will press x.
There we go.
As we have made the configuration already, I will press this enable button and move the this vertical
axis a little bit.
Share.
This is moving.
I want to rotate it.
So now we can play with it.
Okay, now come to the code.