You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add .repos file and update instructions after repo split.
* Revert to git clone for repos instead of .repos file for now
* Fixing typo
* Updating options for how to source workspace
* Add missing git clone to README
Co-authored-by: Joshua Whitley <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+50-80Lines changed: 50 additions & 80 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,9 @@ To install ROS2 Galactic:
42
42
43
43
Knowledge of ROS2 is not required in order to use KomatsuSim at the most basic level. More information on ROS2 can be found at [ROS](https://www.ros.org/).
44
44
45
-
### ROS-TCP-Endpoint
45
+
### Create and Build a ROS2 Workspace
46
46
47
-
To install ROS-TCP-Endpoint:
48
-
49
-
1. Create a ROS workspace folder structure (https://docs.ros.org/en/foxy/Tutorials/Workspace/Creating-A-Workspace.html). We suggest `~/ros2_ws/src/`. Further instructions will assume that location.
47
+
1. Create a ROS2 workspace folder structure (https://docs.ros.org/en/foxy/Tutorials/Workspace/Creating-A-Workspace.html). We suggest `~/ros2_ws/src/`. Further instructions will assume that location.
50
48
```bash
51
49
mkdir -p ~/ros2_ws/src
52
50
```
@@ -57,121 +55,91 @@ To install ROS-TCP-Endpoint:
57
55
cd~/ros2_ws/src
58
56
```
59
57
60
-
3. Clone ROS2 branch of https://github.com/Unity-Technologies/ROS-TCP-Endpoint.git into the `~/ros2_ws/src` directory:
58
+
3. Clone the required repositories to your ROS2 workspace:
Option 2: source the directory in each new terminal:
102
89
```bash
103
-
cd~/ros2_ws
90
+
source~/ros2_ws/install/setup.bash
104
91
```
105
92
106
-
5. Build the `~/ros2_ws` directory:
93
+
### KomatsuSimulator
107
94
108
-
```bash
109
-
colcon build
110
-
```
95
+
KomatsuSimulator has two projects: 1) a Unity-based simulator and 2) a ROS2 project.
96
+
The instructions above handle the ROS2 components but it is also necessary to download the KomatsuSimulator Unity project.
97
+
If it is preferred to avoid building the Unity simulator then the GaiaMineSimVx.x.x.x.zip binary can be downloaded from [the releases page](https://github.com/gaia-platform/KomatsuSimulator/releases).
98
+
GAIA typically recommends downloading the latest release.
99
+
Downloading and using the simulator binary does not eliminate the need to follow the ROS2 instructions above, it just avoids having to build the Unity project from source.
111
100
112
-
### KomatsuSimulator
101
+
#### Downloading and Using the Binary
102
+
103
+
1. Download GaiaMineSimVx.x.x.x.zip from the latest release at https://github.com/gaia-platform/KomatsuSimulator/releases
104
+
2. Unzip in a location of your choice
105
+
3. Run GaiaMineSim to verify operation.
106
+
```bash
107
+
./Builds/GaiaMine.x86_64
108
+
```
113
109
114
-
KomatsuSimulator has two projects: 1) a Unity-based simulator and 2) a ROS project. In order to use KomatsuSimulator, it is necessary to install ROS2 and `git clone` the KomatsuSimulator repository. If it is preferred to avoid building the Unity simulator then the GaiaMineSimVx.x.x.x.zip binary can be downloaded from [the releases page](https://github.com/gaia-platform/KomatsuSimulator/releases). GAIA typically recommends downloading the latest release. Downloading and using the simulator binary does not eliminate the need to install ROS2 and `git clone` the KomatsuSimulator repo. The releases can be found here:
110
+
#### Cloning and Building from Source
115
111
116
-
To install KomatsuSimulator:
112
+
1. Install the latest 20x LTS build of the Unity Editor.
113
+
2. Follow the Unity instructions [here](https://github.com/Unity-Technologies/Unity-Robotics-Hub/blob/main/tutorials/ros_unity_integration/setup.md#-unity-setup) to install the Robotics package for Unity.
117
114
118
-
1. Create a directory for development. Here we will assume it is '~/dev', but feel free to use any location you wish.
115
+
3. Create a directory for development. Here we will assume it is '~/dev', but feel free to use any location you wish.
1. Download GaiaMineSimVx.x.x.x.zip from the latest release at https://github.com/gaia-platform/KomatsuSimulator/releases
155
-
2. Unzip in a location of your choice
156
-
3. Run GaiaMineSim to verify operation.
157
-
```bash
158
-
./Builds/GaiaMine.x86_64
159
-
```
160
-
161
-
# USE
162
-
163
-
There are several levels of development possible. It is possible to work in only one level, with little to no involvement in the others.
164
-
165
-
1. Develop only Gaia schema and rules.
166
-
2. Develop danger zone ROS2 code.
167
-
3. Develop GaiaMineSim Simulator environments, game objects, and code.
168
-
169
-
## Develop only Gaia schema and rules
139
+
## Startup all nodes at once
170
140
171
141
You can use the `full_launch.py` script to launch all the ROS nodes at once.
172
142
173
-
### Startup all nodes at once
174
-
175
143
1. Start all the ROS nodes
176
144
- Open a terminal.
177
145
- Call the full_launch.py script
@@ -189,7 +157,7 @@ You can use the `full_launch.py` script to launch all the ROS nodes at once.
189
157
```
190
158
- Leave terminal open.
191
159
192
-
### Startup nodes independently
160
+
## Startup nodes independently
193
161
194
162
1. Start ros-unity bridge.
195
163
- Open a terminal.
@@ -231,12 +199,14 @@ You can use the `full_launch.py` script to launch all the ROS nodes at once.
231
199
```
232
200
<ctrl>C
233
201
```
202
+
# Development
203
+
204
+
There are several levels of development possible. It is possible to work in only one level, with little to no involvement in the others.
234
205
235
-
The Gaia schema and rules are in the danger_zone ROS2 project. Standard ROS2 dev practices apply.
206
+
1. Develop only Gaia schema and rules.
207
+
2. Develop danger zone ROS2 code.
208
+
3. Develop GaiaMineSim Simulator environments, game objects, and code.
236
209
237
-
## Releases
238
-
If it is preferred to not install and build with Unity, the Simulator binaries can be downloaded [here](https://github.com/gaia-platform/KomatsuSimulator/releases).
210
+
The Gaia schema and rules are in the [`danger_zone` ROS2 project](https://github.com/gaia-platform/danger_zone) which should be in the ROS2 workspace created earlier (e.g. `~/ros2_ws/src/danger_zone`). Standard [ROS2 developer best-practices](https://docs.ros.org/en/rolling/Contributing/Developer-Guide.html) apply.
239
211
240
-
## Unity setup
241
-
1. Install the latest 20x LTS build of the Unity Editor.
242
-
2. Follow the Unity instructions [here](https://github.com/Unity-Technologies/Unity-Robotics-Hub/blob/main/tutorials/ros_unity_integration/setup.md#-unity-setup) to install the Robotics package for Unity.
212
+
If you wish to develop the KomatsuSimulator Unity application, see the instructions above on Cloning and Building from Source.
0 commit comments