Welcome to PALMSLAM repository
0. Get started quickly
Quick Start
- Install and start the virtual machine
Open the browser, enter the following URL to enter the VMware Player virtual machine software download page, and click Download
https://www.vmware.com/products/workstation-player.html



Double-click to run the VMware virtual machine compressed package file, and then install the virtual machine software according to the prompts.
Use the virtual machine software to open the virtual machine system file in the data and enter the virtual machine system.

- Configure the robot
- The control board has been burned with factory firmware. If other routine firmware has been burned, please re-burn the factory firmware, then power the board and turn on the power switch.
- Copy the configuration script (config_robot.py) file included in the product information to the virtual machine/computer.
- If the virtual machine/computer has an external USB serial port device, please temporarily remove the USB external serial port device of the virtual machine/computer, and then use a type-C data cable to connect the serial port of the virtual machine/computer and the control board. At this time, the system pops up a window and asks you to select the connection to the virtual machine.
- Edit the config_robot.py file, scroll to the bottom of the file, update the parameters of the set_wifi_config function according to your home WiFi network name and password, and update the parameters of the set_udp_config function according to the IP address of the virtual machine/computer. The virtual machine/computer version needs to set the car type to CAR_TYPE_COMPUTER. The parameter robot.set_lidar_id(4) indicates that the configuration file selects the radar model. Other parameters remain default or modify as needed. Save the configuration file.

- After configuring the parameters, run the following command in the configuration state to configure the robot. At this time, check whether the returned data is consistent with your settings. If they are consistent, the setting is successful.
xxxxxxxxxxpython3 config_robot.py

- Press the robot's reset button to reload the configuration. After waiting for the IMU to initialize, the oled will display the warning level and radar model selection to be selected. At this time, you can switch the warning level and radar model by turning left and right while holding the pistol. Switch to the desired position and press the button to confirm. The following figure shows how to shake and select.
Select the alarm level. After selecting, press the button and you will hear a beep to confirm.

Select the radar model. After selecting, press the button and you will hear a beep to confirm.

After selecting the warning level and radar model, the selected radar model, imu data and radar front distance information will be displayed on the OLED.

- Start the map
- Start the agent and enter the virtual machine terminal:
xxxxxxxxxxsh ~/start_agent_computer.sh

- Start the map command and enter it in the virtual machine terminal. Wait for a while and the map screen will appear.
xxxxxxxxxxros2 launch yahboomcar_nav map_gmapping_slam_launch.xml

- After the map is built, run the following command to save the map to the location of the red box in the figure.
xxxxxxxxxxros2 launch yahboomcar_nav save_map_launch.py
