DIABIO-SIM-ENV
Noted that the environment has no controller, but you can design your own controller to control the robot.
- Ubuntu 20.04/22.04 (64-bit PC (AMD64) desktop)
- Windows 10
- Docker (if you use docker to install, this is necessary)
Use this script to install Webots,gdbgui,and clonthe diablo-A1 project without controller
Run the following in the bash :
./scripts/webots_install.sh./scripts/docker_install.sh- Imort the docker image (recommended by rmecboy)
docker pull registry.cn-guangzhou.aliyuncs.com/ddt_robot/diablo_sim:v1- Use docker container(run the script in your local host)
./scripts/create_container.shYou shall see this if everything is normal.
./scripts/enter_container.sh- Exit the docker container(即
diablo-sim)
./scripts/halt.shwebots
2.2.1 Enter the makefile directory :
cd /opt/webots-sim-projects/sim-webots/diablo_A1/controllers/diablo_webots/2.2.2 compile the code
make debug2.2.3 Run the simulation, you shall see the robot fall down. Now you can start to design your own controller.
./diablo_webots- Remeber to choose Add path to envieonment variable
- unzip and open mingw64\bin,change mingw32-make.exe to make.exe,then add the bin file to PATH.
- https://github.com/cyberbotics/webots/releases ,choose R2023a
- Add the following to PATH Webots\lib\controller
- Open VSCODE in diablo-sim-env\diablo_A1\controllers,then modify launch.json
将launch.json内容替换为如下代码
{
"version": "0.2.0",
"configurations": [
{
"type": "cppdbg",
"request": "launch",
"name": "Webots",
"program": "${workspaceFolder}/diablo_webots/diablo_webots.exe",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"args": [ ],
"environment": [],
"externalConsole": false
}
]
}
- Open diablo_webots\Makefile
Change WEBOTS_HOME_PATH to your webots path
- then
makeyour project to generate diablo_webots.exe
cd /d/study/liao/diablo-sim-env/diablo_A1/controllers/diablo_webots
make debug









