From 5c1dcf0ea45816bdd1dec83db6e494d405bb90ff Mon Sep 17 00:00:00 2001 From: Autumn60 Date: Wed, 14 Feb 2024 18:44:20 +0900 Subject: [PATCH 1/3] Delete unnecessary using --- .../UnitySensorsROS/Runtime/Scripts/Serializers/Serializer.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/Serializer.cs b/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/Serializer.cs index 433b1488..f1a10701 100644 --- a/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/Serializer.cs +++ b/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/Serializer.cs @@ -1,6 +1,4 @@ using Unity.Robotics.ROSTCPConnector.MessageGeneration; -using RosMessageTypes.Std; - using UnitySensors.Sensor; From f2d0891b1708c88e95884a3736a9e434cee2f43f Mon Sep 17 00:00:00 2001 From: Autumn60 Date: Wed, 14 Feb 2024 18:44:29 +0900 Subject: [PATCH 2/3] Fix TFMsgSerializer --- .../Runtime/Scripts/Serializers/TF/TFMsgSerializer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/TF/TFMsgSerializer.cs b/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/TF/TFMsgSerializer.cs index c0a22a64..60f7896a 100644 --- a/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/TF/TFMsgSerializer.cs +++ b/Assets/UnitySensorsROS/Runtime/Scripts/Serializers/TF/TFMsgSerializer.cs @@ -29,12 +29,13 @@ public override TFMessageMsg Serialize() { HeaderMsg headerMsg = _header.Serialize(); List transforms = new List(); - + TFData[] tfData = sensor.GetTFData(); foreach(TFData data in tfData) { TransformStampedMsg transform = new TransformStampedMsg(); - transform.header = headerMsg; + transform.header.seq = headerMsg.seq; + transform.header.stamp = headerMsg.stamp; transform.header.frame_id = data.frame_id_parent; transform.child_frame_id = data.frame_id_child; transform.transform.translation = data.position.To(); From 7409f7973e8764c2bcbae80f7110be47ca824760 Mon Sep 17 00:00:00 2001 From: Autumn60 Date: Wed, 14 Feb 2024 18:55:53 +0900 Subject: [PATCH 3/3] Update version tags --- Assets/UnitySensors/package.json | 2 +- Assets/UnitySensorsROS/package.json | 4 ++-- README.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/UnitySensors/package.json b/Assets/UnitySensors/package.json index 108e8783..e77dd29c 100644 --- a/Assets/UnitySensors/package.json +++ b/Assets/UnitySensors/package.json @@ -1,6 +1,6 @@ { "name": "com.frj.unity-sensors", - "version": "2.0.1", + "version": "2.0.2", "displayName": "UnitySensors", "description": "", "unity": "2021.3", diff --git a/Assets/UnitySensorsROS/package.json b/Assets/UnitySensorsROS/package.json index c8749ad6..7de7a972 100644 --- a/Assets/UnitySensorsROS/package.json +++ b/Assets/UnitySensorsROS/package.json @@ -1,11 +1,11 @@ { "name": "com.frj.unity-sensors-ros", - "version": "2.0.1", + "version": "2.0.2", "displayName": "UnitySensorsROS", "description": "", "unity": "2021.3", "dependencies": { - "com.frj.unity-sensors": "2.0.1", + "com.frj.unity-sensors": "2.0.2", "com.unity.robotics.ros-tcp-connector": "0.7.0-preview" }, "keywords": [ diff --git a/README.md b/README.md index 48f59f2d..39d79d7e 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ There are several Prefab and Scene files available for testing each sensor. 2. In the Package Manager window, find and click the + button in the upper lefthand corner of the window. Select `Add package from git URL....` 3. Enter the git URL for the desired package. - 1. For the UnitySensors, enter `https://github.com/Field-Robotics-Japan/UnitySensors.git?path=/Assets/UnitySensors#v2.0.1`. - 2. For the UnitySensorsROS, enter `https://github.com/Field-Robotics-Japan/UnitySensors.git?path=/Assets/UnitySensorsROS#v2.0.1`. + 1. For the UnitySensors, enter `https://github.com/Field-Robotics-Japan/UnitySensors.git?path=/Assets/UnitySensors#v2.0.2`. + 2. For the UnitySensorsROS, enter `https://github.com/Field-Robotics-Japan/UnitySensors.git?path=/Assets/UnitySensorsROS#v2.0.2`. __Note: UnitySensorsROS does not contain UnitySensors.__ 4. Click `Add`.