Skip to content

Commit

Permalink
CLOiSim-3.1.2
Browse files Browse the repository at this point in the history
[Major Changes]
- Upgrade Unity editor version: 2021.3.23f1 (LTS)

[Minor Changes]
- Service: suppress log print when 'device_list' is requested
- General: Upgrade plugin library 
   - protobuf-net: 3.2.8 -> 3.2.16
   - NetMQ: 4.0.1.10 -> 4.0.1.11

[Bug fix]
- Sensor.Device: Fix Lidar::OnVisualize(), consider rmodel rotation
  • Loading branch information
hyunseok-yang authored Apr 21, 2023
1 parent 27e2f7e commit 5449ab4
Show file tree
Hide file tree
Showing 54 changed files with 80 additions and 66 deletions.
Binary file removed Assets/Plugins/NetMQ.4.0.1.10/.signature.p7s
Binary file not shown.
Binary file removed Assets/Plugins/NetMQ.4.0.1.10/NetMQ.4.0.1.10.nupkg
Binary file not shown.

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

Binary file added Assets/Plugins/NetMQ.4.0.1.11/.signature.p7s
Binary file not shown.
Binary file not shown.

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

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

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

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.

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

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.

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.

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

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.

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

Binary file not shown.
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.

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

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.

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

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.

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

8 changes: 0 additions & 8 deletions Assets/Plugins/protobuf-net.Core.3.2.8.meta

This file was deleted.

Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/Scripts/CLOiSimPlugins/GroundTruthPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ IEnumerator DoUpdateFootprint()
}
catch
{
UE.Debug.LogWarning(trackingId + " is wrong object to get");
UE.Debug.LogWarning(trackingId + "(" + perception.ClassId + ") is wrong object to get");
// foreach (var track in trackingObjectList)
// {
// UE.Debug.Log(track.Key + ", " + track.Value.GetGameObject().name);
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/CLOiSimPlugins/Modules/Base/CLOiSimPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public interface ICLOiSimPlugin
{
enum Type {WORLD, GROUNDTRUTH, ELEVATOR, ACTOR, MICOM, JOINTCONTROL, GPS, IMU, LASER, CAMERA, DEPTHCAMERA, MULTICAMERA, REALSENSE};
enum Type { WORLD, GROUNDTRUTH, ELEVATOR, ACTOR, MICOM, JOINTCONTROL, GPS, IMU, LASER, CAMERA, DEPTHCAMERA, MULTICAMERA, REALSENSE };
void SetPluginParameters(in SDF.Plugin node);
SDF.Plugin GetPluginParameters();
void Reset();
Expand All @@ -35,7 +35,7 @@ public abstract partial class CLOiSimPlugin : MonoBehaviour, ICLOiSimPlugin

protected abstract void OnAwake();
protected abstract void OnStart();
protected virtual void OnReset() {}
protected virtual void OnReset() { }

protected void OnDestroy()
{
Expand Down
3 changes: 2 additions & 1 deletion Assets/Scripts/Core/Services/SimulationControlService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ protected override void OnMessage(MessageEventArgs e)
return;
}

request.Print();
if (request.command.CompareTo("device_list") != 0)
request.Print();

SimulationControlResponseBase output = null;

Expand Down
3 changes: 2 additions & 1 deletion Assets/Scripts/Devices/Lidar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ protected override IEnumerator OnVisualize()

while (true)
{
var rayStart = lidarLink.position + lidarSensorInitPose.position;
var lidarModel = lidarLink.parent;
var rayStart = lidarLink.position + lidarModel.rotation * lidarSensorInitPose.position;
var rangeData = GetRangeData();

if (rangeData != null)
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,14 @@ private IEnumerator LoadModel(string modelPath, string modelFileName)
// Debug.Log("Parsed: " + item.Key + ", " + item.Value.Item1 + ", " + item.Value.Item2);
model.Name = GetClonedModelName(model.Name);

yield return new WaitForEndOfFrame();
yield return StartCoroutine(sdfLoader.StartImport(model));

var targetObject = worldRoot.transform.Find(model.Name);

var addingModel = uiMainCanvasRoot.GetComponentInChildren<AddModel>();
addingModel.SetAddingModelForDeploy(targetObject);

// Debug.Log("Model Loaded:" + targetObject.name);
yield return new WaitForEndOfFrame();

// for GUI
Expand Down
8 changes: 4 additions & 4 deletions Assets/Scripts/Tools/SDF/Parser/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class TrackVisual
public string view_controller = "orbit";

// Description: Set the type of projection for the camera. Valid values are "perspective" and "orthographic".
public string projection_type= "perspective";
public string projection_type = "perspective";

public TrackVisual track_visual = null;

Expand Down Expand Up @@ -104,7 +104,7 @@ public class Road
// Description: Name of the road
public string name = "__default__";

// Description: Width of the road
// Description: Width of the road
public double width = 1;

// Required: +
Expand Down Expand Up @@ -223,13 +223,13 @@ protected override void ParseElements()
lights = new Lights(root);
plugins = new Plugins(root);

var gravityStr = (IsValidNode("gravity"))? GetValue<string>("gravity"): "0 0 -9.8";
var gravityStr = (IsValidNode("gravity")) ? GetValue<string>("gravity") : "0 0 -9.8";
gravity.FromString(gravityStr);

// Console.WriteLine("{0}", GetType().Name);

// Console.WriteLine("[{0}] {1} {2} {3} {4}", GetType().Name,
// isStatic, isSelfCollide, allowAutoDisable, enableWind);
// isStatic, isSelfCollide, allowAutoDisable, enableWind);

if (IsValidNode("gui"))
{
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/UI/RuntimeGizmo/TransformGizmo.drawing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void SetHandleLines()
}
int AxisDirectionMultiplier(Vector3 direction, Vector3 otherDirection)
{
return ExtVector3.IsInDirection(direction, otherDirection)? 1 : -1;
return ExtVector3.IsInDirection(direction, otherDirection) ? 1 : -1;
}

void SetHandlePlanes()
Expand Down Expand Up @@ -428,7 +428,7 @@ void GetTargetRenderers(in Transform target, List<Renderer> renderers)

void ClearAllHighlightedRenderers()
{
foreach(var target in targetRoots)
foreach (var target in targetRoots)
{
RemoveTargetHighlightedRenderers(target.Key);
}
Expand Down
4 changes: 2 additions & 2 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"com.unity.ide.vscode": "1.2.5",
"com.unity.mathematics": "1.2.6",
"com.unity.performance.profile-analyzer": "1.2.2",
"com.unity.render-pipelines.universal": "12.1.10",
"com.unity.render-pipelines.universal": "12.1.11",
"com.unity.searcher": "4.9.2",
"com.unity.textmeshpro": "3.0.6",
"com.unity.toolchain.linux-x86_64": "1.0.0",
"com.unity.toolchain.linux-x86_64": "2.0.4",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.animation": "1.0.0",
Expand Down
Loading

0 comments on commit 5449ab4

Please sign in to comment.