# OpenConstructionSimulator
**Repository Path**: maoweiming/OpenConstructionSimulator
## Basic Information
- **Project Name**: OpenConstructionSimulator
- **Description**: 开放式施工模拟器(OCS)是一个免费的施工模拟器。
它是基于游戏引擎“Unity”开发的,为使用重型机械的挖掘和土方运输提供了一个模拟环境。
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-04-08
- **Last Updated**: 2024-04-08
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Description
Open Construction Simulator (OCS) is a free construction simulator.
It is developed based on the game engine "Unity" and provides a simulation environment for excavation and earth transportation using heavy machinery.
**note**
The version maintained in this repository is a **Demo** version.
[The Full version](https://github.com/Field-Robotics-Japan/OpenConstructionSimulator/releases) is distributed only as a binary due to license restrictions.

In this repository, following packages are utilized.
Please check them if you have more interests.
- [UnitySensors](https://github.com/Field-Robotics-Japan/UnitySensors) : Sensor packages available for Unity
- [OcsSystem](https://github.com/qoopen0815/OcsSystem) : System management package
- [OcsTerrain](https://github.com/qoopen0815/OcsTerrain) : Terrain control package
- [OcsVehicle](https://github.com/qoopen0815/OcsVehicle) : Vehicle control package
## Installation
### 1.Installation of unity(2020.3.6f1)
First, install UnityHub with following links.
- Windows, Mac : https://unity3d.com/jp/get-unity/download
- Linux : Goto https://unity3d.com/get-unity/download and click "Download Unity Hub" button to get latest `UnityHub.AppImage`.
Then add execution permission for `UnityHub.AppImage` by following command.
```bash
$ sudo chmod +x UnityHub.AppImage
```
Then, run the UnityHub.AppImage
```bash
$ ./UnityHub.AppImage
```
Please certificate the LICENSE for Unity on UnityHub application (you can use them free !)
After that, choose and install Unity Editor (version : `2020.3.6f1`) from archive.
https://unity3d.com/get-unity/download/archive
**For Windows**
You have `.exe` file from above link. Just run them.
**For Linux**
1. Right click on `Unity Hub` button on your desired Unity Editor version, and click "Copy Lilnk Location".
2. Run `UnityHub.AppImage` by setting copied link location as the argument. Here is the example for `2020.3.6f1` version.
```bash
$ ./UnityHub.AppImage unityhub://2020.3.6f1/338bb68529b2
```
If you need any other version, the procedure is same.
After above commands, the UnityHub will start to install desird version's Unity Editor!
### 4.Open project
Finally, please open `OpenConstructionSimulator` package from UnityHub. (It takes more than 5 minuites at the first time, in the case)
### 5. Select the Scene file
There are Demo Scene file in `Asset/OpenConstructionSim/Scenes/DemoEnv.unity`.
Please open the Scene file you want.