ROS2 entity robot dog APP navigation

Quick use

1. Power up the robot dog

Press the power switch on the side of the robot dog and wait for the robot dog to finish starting up. And connect the WiFi of the robot dog to the same LAN environment as your computer.

WechatIMG125

After the robot dog startup is complete, the lidar, imu, and robot dog joint status nodes have been automatically started.

If you find that you are unable to obtain data such as LIDAR, please close the Mechanical Dog Large programme and restart the chassis programme.

Close the big programme, restart the chassis as well as multi-level communication id modification can refer to the tutorial: 14. Lidar maping navigation \6. ROS2 environment entity robot dog state acquisition \ ROS2 environment to obtain the real joints of the robot dog data.pdf

2. Open the virtual machine

Note: Here the default virtual machine has been installed.

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

image-20230423142903590

3. Starting ROSBridge

Go to the desktop system and open the folder.

image-20230423144528828

Then double click on the cartoros2 folder

image-20230423145127514

Then right-click in a blank space in the folder and select Open in Terminal

image-20230423145325137

Then activate the environment by typing the following command in the terminal

Press the Enter key when you have finished typing.

image-20230423150152571

Then type the following command and press enter to start rosbridge

image-20230705142530433

 

4. Launch navigation

Then press the shortcut key: ctrl + shift + t

In the newly opened terminal enter the command

image-20230804161721363

Then pressing the enter key can will allow you to navigate.

image-20230423175717643

Press the enter key, at this time the robot dog urdf is activated.

5. APP control robot dog walking and navigation

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

In the terminal, enter the command to start the point cloud publishing node:

image-20230705151930240

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

Enter the command in the terminal to launch the Locate Publishing node:

image-20230705152136120

 

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

In the terminal, enter the command to remotely connect to the Mechanical Dog, the current Mechanical Dog and the virtual machine are in the same LAN, the IP of the Mechanical Dog is: 192.168.2.79, in practice, it depends on the specific IP address of your own Mechanical Dog.

Press enter and type yes, then enter the login password of Robotics Dog: yahboom.

image-20230705201156130

Then enter the command to start the camera in the terminal:

image-20230705201333328

Open mobile app ROS Robot

IMG_20230621_095117

Enter the IP address of the VM, take the current VM IP as: 192.168.2.117 as an example, and also select the camera topic of the Mechanical Dog as /usb_cam/imge_raw/compress and select ros2.

Then scroll down a bit and click Connect.

Screenshot_2023-07-05-20-18-48-927_com.rosrobot

Once you enter the map screen, you can see the map of the radar scan as well as the camera feed.

Screenshot_2023-07-05-20-25-09-211_com.rosrobot

Click the Settings button to slide down the pop-up screen and click the Navigation button.

Screenshot_2023-07-05-20-25-16-726_com.rosrobot

The following picture shows the screen to enter the navigation mode

Screenshot_2023-07-05-20-25-16-726_com.rosrobot

Then click a target point on the underground and the robot dog can navigate normally. Where the yellow line bit navigation path.

Screenshot_2023-07-05-20-25-16-726_com.rosrobot