Skip to content

Commit

Permalink
Merge pull request #18 from lge-ros2/develop
Browse files Browse the repository at this point in the history
Update app version info in Project settings
  • Loading branch information
hyunseok-yang authored Jul 26, 2020
2 parents 9fa2638 + f9ee8b0 commit 1a2565a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
1 change: 0 additions & 1 deletion Assets/Scripts/Devices/Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ private IEnumerator CameraWorker()

readback.WaitForCompletion();


if (readback.hasError)
{
Debug.LogError("Failed to read GPU texture");
Expand Down
7 changes: 5 additions & 2 deletions Assets/Scripts/ModelLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public class ModelLoader : MonoBehaviour
public string worldFileName;

private string filesRootDirectory = string.Empty;
private List<string> modelRootDirectories;
private List<string> worldRootDirectories;

public List<string> modelRootDirectories;
public List<string> worldRootDirectories;

private GameObject modelsRoot = null;

Expand Down Expand Up @@ -74,6 +75,8 @@ void Awake()
filesRootDirectory = "/usr/share/gazebo-9/";
modelRootDirectories.Add("../sample-resources/models/");
worldRootDirectories.Add("../sample-resources/worlds/");
// modelRootDirectories.Add("../../lgrs_resource/assets/models/");
// worldRootDirectories.Add("../../lgrs_resource/worlds/");
#else
var separator = new char[] {':'};
filesRootDirectory = Environment.GetEnvironmentVariable("CLOISIM_FILES_PATH");
Expand Down
14 changes: 13 additions & 1 deletion Assets/Scripts/Tools/SDF/Geometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public Geometry(XmlNode _node)

protected override void ParseElements()
{

if (IsValidNode("box"))
{
Type = "box";
Expand Down Expand Up @@ -82,6 +81,7 @@ protected override void ParseElements()
IsValidNode("polyline"))
{
Console.WriteLine("Currently not supported");
empty = true;
}
else if (IsValidNode("empty"))
{
Expand All @@ -102,17 +102,29 @@ public ShapeType GetShape()
public Type GetShapeType()
{
if (Type.Equals("box"))
{
return typeof(Box);
}
else if (Type.Equals("mesh"))
{
return typeof(Mesh);
}
else if (Type.Equals("sphere"))
{
return typeof(Sphere);
}
else if (Type.Equals("cylinder"))
{
return typeof(Cylinder);
}
else if (Type.Equals("plane"))
{
return typeof(Plane);
}
else
{
return null;
}
}
}
}
5 changes: 3 additions & 2 deletions Assets/Scripts/Tools/SDFImporter/SDFImporter.Sensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected override System.Object ImportSensor(in SDF.Sensor item, in System.Obje

var sensorType = item.Type;

if (sensorType.Equals("ray") || sensorType.Equals("gpu_ray"))
if (sensorType.Equals("lidar") || sensorType.Equals("ray") || sensorType.Equals("gpu_ray"))
{
var ray = item.GetSensor() as SDF.Ray;
sensor = SDFImplement.Sensor.AddLidar(ray, targetObject);
Expand Down Expand Up @@ -56,7 +56,8 @@ protected override System.Object ImportSensor(in SDF.Sensor item, in System.Obje
var gps = item.GetSensor() as SDF.GPS;
sensor = SDFImplement.Sensor.AddGps(gps, targetObject);
}
else if (sensorType.Equals("altimeter") || sensorType.Equals("contact") ||
else if (sensorType.Equals("air_pressure") ||
sensorType.Equals("altimeter") || sensorType.Equals("contact") ||
sensorType.Equals("force_torque") ||
sensorType.Equals("logical_camera") || sensorType.Equals("magnetometer") ||
sensorType.Equals("rfidtag") ||
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 1.4.0
bundleVersion: 1.4.1
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit 1a2565a

Please sign in to comment.