add chess world scene

This commit is contained in:
brothermechanic 2023-12-08 15:48:03 +03:00
parent ce322be04a
commit 3abb4c09d8
No known key found for this signature in database
GPG key ID: 9C59EF9503ACD106
35 changed files with 553 additions and 0 deletions

BIN
world/chess/models/bishop/meshes/bishop.dae (Stored with Git LFS) Normal file

Binary file not shown.

BIN
world/chess/models/bishop/meshes/bishop.stl (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<model>
<name>bishop</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>brothermechanic</name>
<email>brothermechanic@yandex.com</email>
</author>
<description>
bishop
</description>
</model>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="bishop">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/bishop.dae</uri>
</mesh>
</geometry>
</visual>
<collision name="collision">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/bishop.stl</uri>
</mesh>
</geometry>
</collision>
</link>
</model>
</sdf>

View file

@ -0,0 +1 @@
b1c8392466ab2f17e27eaa5e6d79f4be

BIN
world/chess/models/board/meshes/board.dae (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<model>
<name>board</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>brothermechanic</name>
<email>brothermechanic@yandex.com</email>
</author>
<description>
board
</description>
</model>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="board">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/board.dae</uri>
</mesh>
</geometry>
</visual>
</link>
</model>
</sdf>

View file

@ -0,0 +1 @@
abb14cd4eb3d527058fdf2ef14f4a42e

BIN
world/chess/models/king/meshes/king.dae (Stored with Git LFS) Normal file

Binary file not shown.

BIN
world/chess/models/king/meshes/king.stl (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<model>
<name>king</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>brothermechanic</name>
<email>brothermechanic@yandex.com</email>
</author>
<description>
king
</description>
</model>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="king">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/king.dae</uri>
</mesh>
</geometry>
</visual>
<collision name="collision">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/king.stl</uri>
</mesh>
</geometry>
</collision>
</link>
</model>
</sdf>

View file

@ -0,0 +1 @@
33d4dba334fe520f39599530b1387022

BIN
world/chess/models/knight/meshes/knight.dae (Stored with Git LFS) Normal file

Binary file not shown.

BIN
world/chess/models/knight/meshes/knight.stl (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<model>
<name>knight</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>brothermechanic</name>
<email>brothermechanic@yandex.com</email>
</author>
<description>
knight
</description>
</model>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="knight">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/knight.dae</uri>
</mesh>
</geometry>
</visual>
<collision name="collision">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/knight.stl</uri>
</mesh>
</geometry>
</collision>
</link>
</model>
</sdf>

View file

@ -0,0 +1 @@
903f17bcd344d157f25839d84982c8b3

BIN
world/chess/models/pawn/meshes/pawn.dae (Stored with Git LFS) Normal file

Binary file not shown.

BIN
world/chess/models/pawn/meshes/pawn.stl (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<model>
<name>pawn</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>brothermechanic</name>
<email>brothermechanic@yandex.com</email>
</author>
<description>
pawn
</description>
</model>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="pawn">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/pawn.dae</uri>
</mesh>
</geometry>
</visual>
<collision name="collision">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/pawn.stl</uri>
</mesh>
</geometry>
</collision>
</link>
</model>
</sdf>

View file

@ -0,0 +1 @@
f4a50d3e17ec15de20861224ef13f176

BIN
world/chess/models/queen/meshes/queen.dae (Stored with Git LFS) Normal file

Binary file not shown.

BIN
world/chess/models/queen/meshes/queen.stl (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<model>
<name>queen</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>brothermechanic</name>
<email>brothermechanic@yandex.com</email>
</author>
<description>
queen
</description>
</model>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="queen">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/queen.dae</uri>
</mesh>
</geometry>
</visual>
<collision name="collision">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/queen.stl</uri>
</mesh>
</geometry>
</collision>
</link>
</model>
</sdf>

View file

@ -0,0 +1 @@
aefef21e3852e15123ff8f1b41c5ba42

BIN
world/chess/models/rook/meshes/rook.dae (Stored with Git LFS) Normal file

Binary file not shown.

BIN
world/chess/models/rook/meshes/rook.stl (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<model>
<name>rook</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>brothermechanic</name>
<email>brothermechanic@yandex.com</email>
</author>
<description>
rook
</description>
</model>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="rook">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/rook.dae</uri>
</mesh>
</geometry>
</visual>
<collision name="collision">
<geometry>
<mesh>
<scale>1.0 1.0 1.0</scale>
<uri>meshes/rook.stl</uri>
</mesh>
</geometry>
</collision>
</link>
</model>
</sdf>

View file

@ -0,0 +1 @@
f97ed56a43b6aed8cc3852033e3637fc

228
world/chess/world.json Normal file
View file

@ -0,0 +1,228 @@
{
"models": [
{
"name": "bishop",
"id": "b1c8392466ab2f17e27eaa5e6d79f4be",
"path": "models/bishop/model.sdf"
},
{
"name": "queen",
"id": "aefef21e3852e15123ff8f1b41c5ba42",
"path": "models/queen/model.sdf"
},
{
"name": "board",
"id": "abb14cd4eb3d527058fdf2ef14f4a42e",
"path": "models/board/model.sdf"
},
{
"name": "king",
"id": "33d4dba334fe520f39599530b1387022",
"path": "models/king/model.sdf"
},
{
"name": "rook",
"id": "f97ed56a43b6aed8cc3852033e3637fc",
"path": "models/rook/model.sdf"
},
{
"name": "knight",
"id": "903f17bcd344d157f25839d84982c8b3",
"path": "models/knight/model.sdf"
},
{
"name": "pawn",
"id": "f4a50d3e17ec15de20861224ef13f176",
"path": "models/pawn/model.sdf"
}
],
"instances": [
{
"model_name": "bishop",
"model_id": "b1c8392466ab2f17e27eaa5e6d79f4be",
"id": "",
"pose": {
"x": -0.005,
"y": 0.126,
"z": 0.016,
"roll": 97.716,
"pitch": 36.118,
"yaw": 4.566
},
"scale": 1.0,
"type": "asset",
"parent": "world"
},
{
"model_name": "king",
"model_id": "33d4dba334fe520f39599530b1387022",
"id": "",
"pose": {
"x": 0.128,
"y": 0.246,
"z": 0.0,
"roll": 0.0,
"pitch": 0.0,
"yaw": -85.533
},
"scale": 1.0,
"type": "asset",
"parent": "world"
},
{
"model_name": "knight",
"model_id": "903f17bcd344d157f25839d84982c8b3",
"id": "",
"pose": {
"x": 0.457,
"y": 0.101,
"z": 0.0,
"roll": 0.0,
"pitch": 0.0,
"yaw": -202.478
},
"scale": 1.0,
"type": "asset",
"parent": "world"
},
{
"model_name": "pawn",
"model_id": "f4a50d3e17ec15de20861224ef13f176",
"id": "",
"pose": {
"x": 0.372,
"y": -0.126,
"z": -0.0,
"roll": 0.0,
"pitch": 0.0,
"yaw": 259.161
},
"scale": 1.0,
"type": "asset",
"parent": "world"
},
{
"model_name": "queen",
"model_id": "aefef21e3852e15123ff8f1b41c5ba42",
"id": "",
"pose": {
"x": 0.214,
"y": -0.141,
"z": 0.018,
"roll": 97.377,
"pitch": -38.194,
"yaw": -220.986
},
"scale": 1.0,
"type": "asset",
"parent": "world"
},
{
"model_name": "rook",
"model_id": "f97ed56a43b6aed8cc3852033e3637fc",
"id": "",
"pose": {
"x": 0.293,
"y": 0.023,
"z": 0.014,
"roll": -95.336,
"pitch": -61.59,
"yaw": 68.278
},
"scale": 1.0,
"type": "asset",
"parent": "world"
},
{
"model_name": "board",
"model_id": "abb14cd4eb3d527058fdf2ef14f4a42e",
"id": "",
"pose": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"roll": 0.0,
"pitch": -0.0,
"yaw": 0.0
},
"scale": 1.0,
"type": "asset",
"parent": "world"
},
{
"model_name": "",
"model_id": "",
"id": "",
"pose": {
"x": 0.0,
"y": -0.0,
"z": 0.384,
"roll": 0.0,
"pitch": -28.926,
"yaw": -0.0
},
"scale": 1.0,
"type": "light",
"light_type": "directional",
"intencity": 2.0,
"diffuse": [
1.0,
1.0,
0.5
]
},
{
"model_name": "",
"model_id": "",
"id": "",
"pose": {
"x": 0.426,
"y": -0.0,
"z": 0.147,
"roll": 0.0,
"pitch": 0.0,
"yaw": 0.0
},
"scale": 1.0,
"type": "light",
"light_type": "point",
"intencity": 1.0,
"diffuse": [
0.5,
0.5,
1.0
]
},
{
"model_name": "",
"model_id": "",
"id": "",
"pose": {
"x": 0.228,
"y": 0.024,
"z": 0.581,
"roll": 0.0,
"pitch": 0.0,
"yaw": 0.0
},
"scale": 1.0,
"type": "light",
"light_type": "spot",
"spot_angle": 40.0,
"intencity": 10.0,
"diffuse": [
1.0,
1.0,
1.0
]
}
],
"physics": {
"engine_name": "BULLET",
"gravity": {
"x": 0.0,
"y": 0.0,
"z": -9.81
}
}
}