Skip to content

Simulation Platform

To support developers in development, debugging, and testing without physical robot hardware, the Daystar Bot SDK provides a simulation platform SDK, offering a virtual environment for robot development and testing. This avoids excessive experimentation on actual hardware, thereby improving development efficiency and reducing risks.


1. Overview

1.1 Simulation Platform Introduction

Webots is an open-source 3D robot simulation platform designed for robotics research, education, and industrial applications. It supports various robot types, including wheeled robots, quadruped robots, robotic arms, drones, and more. It enables high-precision robot motion simulation with physics engine support. The Daystar Bot Simulation SDK is implemented based on the Webots platform.

1.2 Supported Features

  • Basic motion control
  • Robot status monitoring

2. Installation & Environment Setup

2.1 System Requirements

  • Linux (Recommended): Ubuntu 20.04
  • Windows: Windows 11 (requires a dedicated GPU and must run in a Linux environment, e.g. WSL2)

2.2 Download, Installation & Environment Setup

Download Link: Simulation Tool Download

Linux System

Install Webots

  1. Extract the downloaded daystar-bot-sdk-sim-tools.tar.gz (includes Webots tools, simulation SDK, and robot model):
bash
tar -xvzf daystar-bot-sdk-sim-tools.tar.gz

Windows System

Install WSL and Upgrade to WSL 2

  1. Manually create a .wslconfig file.
  2. Copy it to the C:\Users directory.
  3. Restart WSL for the changes to take effect.
bash
# Settings apply across all Linux distros running on WSL 2
[wsl2]
networkingMode=mirrored
firewall=true
dnsTunneling=true
autoProxy=true

Install Webots

  1. Extract the downloaded daystar-bot-sdk-sim-tools.tar.gz file (contains Webots tools, simulation SDK, and robot model):
bash
tar -xvzf daystar-bot-sdk-sim-tools.tar.gz

2.3 Launching the Simulation Platform

After installation. Launch the simulation with the following steps: (path: lenovo-sdk-server-sim/programs/webots_release/rc_core)

  1. Run:
plain
sudo ./run_webots.sh
  1. On first launch, the platform will download required Webots resources online. Ensure a stable internet connection and wait patiently.

1768454518122-a8d7e4b6-c7bd-4ad7-b9a4-5335d9c63a8b.png

1768454518198-0efa1eba-6594-499b-aaf0-82f7345718c1.png


# 3. Quick Start Guide ## 3.1 Loading the Default Robot Model After Webots resources are downloaded, load the preconfigured **Daystar Bot** model:
  1. In Webots: File → Open World →saturn_V2.0_simple_model.wbt
  2. Model path: webots/webots_release/rc_core/webots/worlds/saturn_V2.0_simple_model.wbt

1768454518270-cbcc3f43-b90a-4eb2-a413-0dc19212ac09.png

If success:

1768454518332-33380a78-c051-424e-bc9c-c1e4dbe1c8f5.png

3.2 Basic Operations

Once the model loads successfully:

  1. Connect your application device (running DaystarBot SDK) and the simulation device to the same local network.
  2. Control the simulated robot via LAN.

4. Troubleshooting

Issue 1: run_sim.sh fails with "library not found"

1768454518438-1fb35468-0a03-4964-9fd2-a2792853509a.png

Solution: Install missing dependencies: sudo apt-get install -f, then rerun ./run_sim.sh.


Issue 2: Missing libopencv_core.so.4.2

1768454518511-86789417-7057-46fb-a256-abd885b65a35.png

Solution: Manually install OpenCV 4.2 compatibility packages.

bash
sudo add-apt-repository universe
sudo apt update
sudo apt install -y libopencv-core4.2

If sudo apt install -y libopencv-core4.2 fails, create a symlink:

1768454518576-2fd37d4c-e254-4703-b1c5-e1b4372079b3.png

1768454518638-385d1043-7de8-4a10-b7cb-df5198b11bbb.png


Issue 3: Missing libopencv_imgcodecs.so.4.2

Solution:

Check current OpenCV versions:

1768454518701-de9ba45f-c3ad-4de1-a84f-72e0c09c10f7.png

Solution:

Run the command ldconfig -p | grep libopencv_imgcodecs to check the current path and version of the libopencv_imgcodecs library, then execute the following command to create a soft link to version 4.2.

Solution:

  1. Check current OpenCV versions:
bash
ldconfig -p | grep libopencv_imgcodecs
  1. Symlink to v4.2:
bash
sudo ln -s /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.4.6.0 /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.4.2
sudo ldconfig

1768454518768-9beb0af5-6983-4b4d-8eb9-6e9d7270bff1.png


Issue 4: wsl --install fails with "cannot resolve server"

Solution: Modify the hosts file:

  1. Find a valid IP for raw.githubusercontent.com (e.g., 185.199.110.133) via IP Lookup
  2. Edit hosts :
    • Path: C:\Windows\System32\drivers\etc\hosts
    • Add:
bash
185.199.110.133 raw.githubusercontent.com

If permission denied: Right-click file → Properties → Security → Add Everyone with full control.

  1. Verify DNS:
bash
ping raw.githubusercontent.com

Issue 5: Webots launches with a black screen (no 3D model)

1768454518830-eca15623-b20a-4330-840c-6062c8f41c08.png

Solution: Update your GPU drivers and restart Webots.