Skip to content

Commit

Permalink
0.2.5e4
Browse files Browse the repository at this point in the history
Fixed bug where rerunning code didn't reconnect.
  • Loading branch information
griffinteller committed May 5, 2020
1 parent 5b8ee61 commit 83a5a79
Show file tree
Hide file tree
Showing 52 changed files with 124 additions and 7,290 deletions.
4 changes: 2 additions & 2 deletions Assets/Materials/Industrial/Standard/BasicCube.mat
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ Material:
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _Glossiness: 0.484
- _GlossyReflections: 1
- _Metallic: 0.182
- _Metallic: 0.172
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
Expand Down
82 changes: 82 additions & 0 deletions Assets/Scenes/New Material.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: New Material
m_Shader: {fileID: 45, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.599
- _GlossyReflections: 1
- _Metallic: 0.365
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.9150943, g: 0.78784794, b: 0.366901, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
8 changes: 8 additions & 0 deletions Assets/Scenes/New Material.mat.meta

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

45 changes: 31 additions & 14 deletions Assets/Scripts/Main/RobotStateSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,43 @@ public class RobotStateSender : MonoBehaviour

private static readonly Action<object> ConnectUpdateAndWritePosix = rss =>
{

var rssCast = (RobotStateSender) rss;

var robotDescriptionBytes = GetRobotDescriptionBytes(rssCast._robotStateDescription); // json
var rssCast = (RobotStateSender) rss;

while (true)
try
{
try
{
rssCast._clientStream = new FileStream("/tmp/" + PipeName, FileMode.Open, FileAccess.Write);
break;
}
catch (IOException)

var robotDescriptionBytes = GetRobotDescriptionBytes(rssCast._robotStateDescription); // json

while (true)
{
continue;
try
{
rssCast._clientStream = new FileStream("/tmp/" + PipeName, FileMode.Open, FileAccess.Write);
break;
}
catch (IOException)
{
continue;
}
}

rssCast._clientStream.Write(robotDescriptionBytes, 0, robotDescriptionBytes.Length);
rssCast._clientStream.Close();

}
catch (Exception e)
{

Debug.LogError(e);

}
finally
{

rssCast._clientStream.Close();

}

rssCast._clientStream.Write(robotDescriptionBytes, 0, robotDescriptionBytes.Length);
rssCast._clientStream.Close();

};

Expand Down
3 changes: 1 addition & 2 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 0.2.5e3
bundleVersion: 0.2.5e4
preloadedAssets:
- {fileID: 0}
- {fileID: 0}
Expand Down Expand Up @@ -148,7 +148,6 @@ PlayerSettings:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down
Loading

0 comments on commit 83a5a79

Please sign in to comment.