ROS2 environment entity robot dog mapping

Quick use

1. Power on the robot dog

PI4 version steps:

Press the power switch on the side of the robot dog and wait for the robot dog to start up. And connect the robot dog's WiFi to the same LAN environment as the computer.

WechatIMG125

After the robot dog is started, the laser radar, imu, and robot dog joint status nodes have been automatically started.

If you find that you cannot obtain lidar and other data, please close the robot dog program and restart the chassis program.

To close the large program, restart the chassis and modify the multi-level communication ID, please refer to the tutorial: 14. Radar mapping navigation\6. Obtaining the status of the physical robot dog in the ROS2 environment\Acquiring the real joint data of the robot dog in the ROS2 environment.pdf

 

PI5 version steps:

Press the power switch on the side of the robot dog and wait for the robot dog to start up. And connect the robot dog's WiFi to the same LAN environment as the computer.

WechatIMG125

After the robot dog is started, remotely connect to the robot dog through the IP address on the OLED.

image-20240428181518347

Then ctrl+c closes the large program and enter the following command to enter docker:

image-20240428181812147

Then enter the following commands in the docker terminal to start the car radar, imu, and robot dog joint status nodes.

image-20240428181957458

2. Open the virtual machine

Note: The default virtual machine has been installed here.

Open the virtual machine, enter the password: yahboom and press the Enter key to enter the system desktop.

image-20230423142903590

3. Start the robot dog mapping node

Note: This step is the same for virtual machines of PI4 and PI5 versions

Enter the desktop system and open the folder.

image-20230803214101229

Then double click on the cartoros2 folder

image-20230423145127514

Then right-click in an empty space of the folder and select Open in Terminal

image-20230423145325137

Then enter the following command in the terminal to activate the environment

After completing the input, press the Enter key.

image-20230423150152571

Then enter the command

image-20230804160852295

Then press the Enter key to start drawing.

image-20230423155727913

4. Control the robot dog to walk and build a map

Click on the terminal and press the shortcut key: ctrl + shift + t

Enter the command in the terminal:

image-20230423160842069

By pressing the Enter key, you can press the keyboard keys in the terminal to control the movement of the robot dog. Among them, I is forward, K is pause, and < is backward.

image-20230423161710165

5. Save the map

When the map scan is completed, we press the shortcut key Ctrl shift t in the terminal to reopen a terminal window and enter the following command

First enter the following command to activate the environment

Then enter the following command to stop mapping,

Then enter the following command to save the pbstream file

The path of the filename parameter is the path where the pbstream file of the map is saved.

Finally enter the following command to convert the pbstream file to a pgm file.

image-20230423164945396