MicroROS-Pi5:First Trial

This tutorial is just a simplified version, mainly paired with quick-start videos!

一、joystick control

Start the car

Turn on the power switch and the car will start for about 30 seconds. You can press the START button on the handle. If the buzzer of the car makes a beep sound, it means that the handle can be used to control it.

joystick control

Before officially using the USB controller to control, you need to press the R1 button.

 

USB handle buttoncontrol function
Left joystick upThe car moves forward
Left joystick downCar backs up
Right joystick to the rightCar turns right
Right rocker leftCar turns left
XSteering gear to the left
BSteering gear to the right
AServo down
YServo up

2. Remote control

We demonstrate the use of VNC remote here. VNC remote needs to ensure that both remote devices are on the same LAN!

VNC Remote: Windows Remote Desktop Connection

VNC installation

VNC connection

The IP corresponding to Raspberry Pi hotspot mode is 10.42.0.1

system message

Hot information

If you want to connect your own WIFI in hotspot mode, you can read the 【4. Network configuration tutorial in hotspot mode (must read)】 in Section 4

Turn off the auto-start handle control after power on

The MicroROS car will automatically start the program when it is turned on. The two terminals displayed are starting the agent and starting docker.

Temporarily closed

Display information about all processes on the system:

Forcefully terminate the process:

permanently closed

Modify startup script file

In the video, press "E" to enter editing!

3. Keyboard control car

Start and connect to the agent

Enter docker

View ROS nodes

Start keyboard control

The mouse needs to stay on the keyboard control command terminal to control the car!

4. Autonomous driving line patrol

Start and connect to the agent

Enter docker

Start autonomous driving line patrol

selected route

After the camera screen is loaded, press the "R" key to select it. It is recommended to choose a brightly colored route!

Start patrolling

After successfully selecting the route, press the space bar to start following the route!