Skip to content

Commit

Permalink
Add minimal working dasing example
Browse files Browse the repository at this point in the history
  • Loading branch information
samiamlabs committed Aug 22, 2019
1 parent dd00c24 commit 9f45d5b
Show file tree
Hide file tree
Showing 69 changed files with 1,871 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -46,3 +46,5 @@ sysinfo.txt

# Crashlytics generated file
crashlytics-build.properties

Assets/ros_config.yaml
8 changes: 8 additions & 0 deletions Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Assets/Editor/BuildRos.cs
@@ -0,0 +1,23 @@
// C# example.
using UnityEditor;
using System.Diagnostics;

public class ScriptBatch
{
[MenuItem("ROS/Windows Build")]
public static void BuildGame()
{
// Get filename.
string path = EditorUtility.SaveFolderPanel("Choose Location of Built Game", "", "");
string[] levels = new string[] { "Assets/Scenes/RosExample.unity"};

// Build player.
BuildPipeline.BuildPlayer(levels, path + "/BuiltGame.exe", BuildTarget.StandaloneWindows64, BuildOptions.None);

// Copy a file from the project folder to the build folder, alongside the built game.
FileUtil.CopyFileOrDirectory("Assets/Resources/start_player.py", path + "/start_player.py");
FileUtil.CopyFileOrDirectory("Assets/Resources/start_player.bat", path + "/start_player.bat");

}
}

11 changes: 11 additions & 0 deletions Assets/Editor/BuildRos.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Plugins/x86_64/action_msgs__python.dll
Binary file not shown.
64 changes: 64 additions & 0 deletions Assets/Plugins/x86_64/action_msgs__python.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
64 changes: 64 additions & 0 deletions Assets/Plugins/x86_64/action_msgs__rosidl_generator_c.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
64 changes: 64 additions & 0 deletions Assets/Plugins/x86_64/action_msgs__rosidl_typesupport_c.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
64 changes: 64 additions & 0 deletions Assets/Plugins/x86_64/action_msgs__rosidl_typesupport_cpp.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

0 comments on commit 9f45d5b

Please sign in to comment.