yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
PALMSLAM📖
1. Product Introduction
  • 0.Get started
  • 1. Learning route
  • 2. Frequently Questions
  • 3. Control panel introduction
  • 4. Introduction to LiDAR
  • 5. Robot charging and battery considerations
  • 6.Unboxing and reviewing
2. Assembly video
  • Installation Video
3. Basic configuration
  • 0. Get started quickly
  • 1. Write the firmware
  • 2. Virtual machine installation and startup system
  • 3. Expansion board configuration parameters
  • 4. How to choose the alarm level and radar model
  • 5. Connection Agent
4. LiDAR course
  • 0. Enter the same docker terminal
  • 1. Robot information release
  • 2. Robot URDF model
  • 3. Basic distance measurement function
  • 4. SLAM Gmapping
  • 5. SLAM Cartographer
  • 6. APP mapping
5. Linux operating system
  • 1.Introduction to Linux system
  • 2.Ubuntu file system
  • 3.Ubuntu common commands
  • 4.Ubuntu common editors
  • 5.Ubuntu software operation commands
  • 6.Virtual machine installation
  • 7.SSH remote control
  • 8.VNC remote control
  • 9.Transfer files remotely
  • 10.Driver library and communication
  • 11.Static IP and hotspot mode
  • 12.Bind device ID
  • 13.Capacity expansion and resource allocation
  • 14.Update system software sources
  • 15.Set root user password
  • 16.sudo free password
  • 17.Connect to WiFi network
  • 18.View system version
  • 19.Customized service management
  • 20.Back up system image
6. ROS2 Basic Course
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
Download
  • System_File
  • VM_File
  • Code
  • Software_Tool
  • Hareware_Info
  • 3D_Model_File
  • Instruction_Manual
  • ROS2_Basic_VM
Download ZIP

Welcome to PALMSLAM repository

6. APP mapping

ROS Robot App Map Building

Note: The virtual machine needs to be in the same LAN as the car, and the ROS_DOMAIN_ID needs to be consistent. You can view the [Expansion Board Parameter Configuration] to set the IP and ROS_DOMAIN_ID on the board.

1. Program Function Description

The car connects to the proxy, runs the program, opens the [ROS Robot] app downloaded on the mobile phone, enters the IP address of the car, selects ROS2, clicks Connect, and the car can be connected. Place the handheld radar in parallel and slowly control the walking area to complete the map building. Finally, click Save Map, and the car will save the current built map.

2. Start and connect the agent

If you are using the factory virtual machine system, you can enter in the terminal:

xxxxxxxxxx
sh ~/start_agent_computer.sh

If you are using a third-party virtual machine system, you need to install the docker development environment first, and open the terminal and enter:

xxxxxxxxxx
#CarAgency
sudo docker run -it --rm -v /dev:/dev -v /dev/shm:/dev/shm --privileged --net=host microros/micro-ros-agent:humble udp4 --port 8090 -v4

image-20240102120120341

Then, turn on the car, select the warning level and radar model, and wait for the car to connect to the proxy. The connection is successful as shown in the figure below.

image-20231219100456522

3. Start the program

If it is the Raspberry Pi desktop version and the Jetson Nano desktop version, you need to enter docker in advance and enter the terminal.

xxxxxxxxxx
sh ~/ros2_humble.sh

When the following interface appears, it means that you have successfully entered docker.

image-20241129151456323

Then enter in docker separately, (see [Enter the same docker terminal] section)

xxxxxxxxxx
ros2 launch yahboomcar_bringup yahboomcar_bringup_launch.py    #underlying data program
ros2 launch rf2o_laser_odometry rf2o_laser_odometry.launch.py
ros2 launch yahboomcar_nav map_gmapping_app_launch.xml

Take the matching virtual machine as an example, first start the car to process the underlying data program, terminal input,

xxxxxxxxxx
ros2 launch yahboomcar_bringup yahboomcar_bringup_launch.py

image-20241122182501912

Start the laser odometer, input in the terminal,

xxxxxxxxxx
ros2 launch rf2o_laser_odometry rf2o_laser_odometry.launch.py

image-20241125111925529

Start the APP map building command, input in the terminal,

xxxxxxxxxx
ros2 launch yahboomcar_nav map_gmapping_app_launch.xml

The mobile APP is displayed as shown below. Enter the IP address of the car. [zh] means Chinese and [en] means English. Select ROS2. Select /usb_cam/image_raw/compressed in the Video Tpoic below. Finally, click [Connect].

image-20231219143224710

After successful connection, the display is as follows.

image-20231219143427091

Control the handheld radar to slowly move through the area where the map needs to be built, and then click Save Map. Enter the map name and click Submit to save the map

image-20231219143658951

The map is saved in,

xxxxxxxxxx
/home/yahboom/yahboomcar_ws/src/yahboomcar_nav/maps

image-20231219143847102

4. Code analysis

Here is the launch file for opening the APP map, taking gmapping map as an example,

map_gmapping_app_launch.xml

xxxxxxxxxx
<launch>
    <include file="$(find-pkg-share rosbridge_server)/launch/rosbridge_websocket_launch.xml"/>
    <node name="laserscan_to_point_publisher" pkg="laserscan_to_point_publisher" exec="laserscan_to_point_publisher"/>
    <include file="$(find-pkg-share yahboomcar_nav)/launch/map_gmapping_launch.py"/>
    <include file="$(find-pkg-share robot_pose_publisher_ros2)/launch/robot_pose_publisher_launch.py"/>
    <include file="$(find-pkg-share yahboom_app_save_map)/yahboom_app_save_map.launch.py"/>
</launch>

Here are several launch files and nodes:

  • rosbridge_websocket_launch.xml: Open rosbridge service related nodes. After startup, you can connect to ROS through the network
  • laserscan_to_point_publisher: Publish the point cloud conversion of the radar to the APP for visualization
  • map_gmapping_launch.py: gmapping map building program
  • robot_pose_publisher_launch.py: Car pose publishing program, car pose is visualized in the APP
  • yahboom_app_save_map.launch.py: program for saving maps

 

SLAM Cartographer
Introduction to Linux system

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文