-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Autumn60/test/restruct
Add TF scripts
- Loading branch information
Showing
10 changed files
with
164 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using UnityEditor; | ||
using UnitySensors.Sensor.TF; | ||
|
||
namespace UnitySensors.Editor | ||
{ | ||
[CustomEditor(typeof(TF))] | ||
public class TFEditor : UnityEditor.Editor | ||
{ | ||
public override void OnInspectorGUI() | ||
{ | ||
base.OnInspectorGUI(); | ||
EditorGUILayout.HelpBox("TF does not use \"Frequency\" param.", MessageType.Info); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
74 changes: 73 additions & 1 deletion
74
...rs/Runtime/Scripts/Sensors/TF/TFSensor.cs → ...ySensors/Runtime/Scripts/Sensors/TF/TF.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
Assets/UnitySensorsROS/Runtime/Scripts/Publishers/TF/TFMsgPublisher.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using UnityEngine; | ||
|
||
using RosMessageTypes.Tf2; | ||
|
||
using UnitySensors.Sensor.TF; | ||
using UnitySensors.ROS.Serializer.TF; | ||
|
||
namespace UnitySensors.ROS.Publisher.TF | ||
{ | ||
using TFSensor = Sensor.TF.TF; | ||
|
||
[RequireComponent(typeof(TFSensor))] | ||
public class TFMsgPublisher : RosMsgPublisher<TFSensor, TFMsgSerializer, TFMessageMsg> | ||
{ | ||
} | ||
} |
File renamed without changes.
25 changes: 0 additions & 25 deletions
25
Assets/UnitySensorsROS/Runtime/Scripts/Publishers/TF/TFPublisher.cs
This file was deleted.
Oops, something went wrong.
46 changes: 41 additions & 5 deletions
46
...me/Scripts/Serializers/TF/TFSerializer.cs → ...Scripts/Serializers/TF/TFMsgSerializer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.