Skip to content

Commit 9f45d5b

Browse files
committed
Add minimal working dasing example
1 parent dd00c24 commit 9f45d5b

File tree

69 files changed

+1871
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1871
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ sysinfo.txt
4646

4747
# Crashlytics generated file
4848
crashlytics-build.properties
49+
50+
Assets/ros_config.yaml

Assets/Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Editor/BuildRos.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// C# example.
2+
using UnityEditor;
3+
using System.Diagnostics;
4+
5+
public class ScriptBatch
6+
{
7+
[MenuItem("ROS/Windows Build")]
8+
public static void BuildGame()
9+
{
10+
// Get filename.
11+
string path = EditorUtility.SaveFolderPanel("Choose Location of Built Game", "", "");
12+
string[] levels = new string[] { "Assets/Scenes/RosExample.unity"};
13+
14+
// Build player.
15+
BuildPipeline.BuildPlayer(levels, path + "/BuiltGame.exe", BuildTarget.StandaloneWindows64, BuildOptions.None);
16+
17+
// Copy a file from the project folder to the build folder, alongside the built game.
18+
FileUtil.CopyFileOrDirectory("Assets/Resources/start_player.py", path + "/start_player.py");
19+
FileUtil.CopyFileOrDirectory("Assets/Resources/start_player.bat", path + "/start_player.bat");
20+
21+
}
22+
}
23+

Assets/Editor/BuildRos.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
17 KB
Binary file not shown.

Assets/Plugins/x86_64/action_msgs__python.dll.meta

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/Plugins/x86_64/action_msgs__rosidl_generator_c.dll.meta

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/Plugins/x86_64/action_msgs__rosidl_typesupport_c.dll.meta

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/Plugins/x86_64/action_msgs__rosidl_typesupport_cpp.dll.meta

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/Plugins/x86_64/action_msgs__rosidl_typesupport_fastrtps_c.dll.meta

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

0 commit comments

Comments
 (0)