MicroROS-VM:First Trial

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

1、Burn MicroROS control board firmware

Note: For users who have just received the product, the MicroROS control board does not need to burn the factory firmware.

Please check directly below for the tutorial on configuring the MicroROS control board

 

1.1、Serial device identification

Device connection

Use Type-C data cable to connect the computer and MicroROS control board.

Note: Burning firmware requires turning on the power switch of the MicroROS control board for power supply!

Install serial device driver

Open system device manager

If the device manager does not correctly identify the serial device, we need to install the CP210x series driver:

View device

Check the corresponding serial device in the device manager port option.

1.2、Write factory firmware

Factory firmware

The firmware we demonstrate here:microROS_Robot_V0.0.4

Flash download tool

We need to prepare the Flash download tool in advance:

1.3、Burn factory firmware

Open the Flash download tool
Software download mode

Check the corresponding download tool mode option

image-20240123122335797

The terminal can see the corresponding download information!

Download factory firmware

image-20240123122920747

Verify factory firmware

Check the information printed by the MicroROS control board through the UartAssist software: After connecting the serial port, press the Reset button of the development board!

 

2、VMware installation and use

2.1、VMware installation

VMware Workstation Player

This version is free for non-commercial use.

VMware Workstation Pro

Commercial use requires payment, and you can experience the 30-day trial version.

2.2、VMware uses

You need to download and decompress the virtual machine image provided in our information in advance

3、Configure MicroROS control board

3.1、Parameter introduction

Edit the config_robot.py file according to your own configuration

image-20240123171716094

2、Configuration parameters

Shortly press the reset button of the MicroROS control board (it is in the configuration state within 5 seconds of reset), and enter the following command to configure the robot. If the data returned by the terminal is consistent with what you set, it means that the configuration parameters are successful!

After the configuration is successful, you can unplug the data cable connecting the virtual machine and the MicroROS control board!

image-20240123171635957

3. Start/connect the agent

Start agent

Using the virtual machine provided in our materials, run the following command:

image-20240123171810951

connection broker

Turn on the power switch and the car will automatically connect to the agent.

image-20240123171842576

4、test

View ROS nodes

Reopen a terminal and enter the following command:

Keyboard control car

Enter the following command in the terminal and keep the mouse on the terminal: Control the car according to the terminal key prompts!

image-20240123172349615