Skip to content

Commit

Permalink
Create LivoxCustomMsgPublisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Autumn60 committed Feb 10, 2024
1 parent a481a3b commit 8210cad
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using UnityEngine;
using UnitySensors.Data.PointCloud;
using UnitySensors.Sensor.LiDAR;
using UnitySensors.ROS.Publisher.PointCloud;

namespace UnitySensors.ROS.Publisher.LiDAR
{
[RequireComponent(typeof(DepthBufferLiDARSensor))]
public class DepthBufferLiDARLivoxCustomMsgPublisher : LivoxCustomMsgPublisher<DepthBufferLiDARSensor, PointXYZI>
{
}
}

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using UnityEngine;
using UnitySensors.Data.PointCloud;
using UnitySensors.Sensor.LiDAR;
using UnitySensors.ROS.Publisher.PointCloud;

namespace UnitySensors.ROS.Publisher.LiDAR
{
[RequireComponent(typeof(RaycastLiDARSensor))]
public class RaycastLiDARLivoxCustomMsgPublisher : LivoxCustomMsgPublisher<RaycastLiDARSensor, PointXYZI>
{
}
}

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using UnityEngine;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using RosMessageTypes.Livox;
using UnitySensors.Data.PointCloud;
using UnitySensors.Sensor;
using UnitySensors.ROS.Serializer.PointCloud;

namespace UnitySensors.ROS.Publisher.PointCloud
{
public class LivoxCustomMsgPublisher<T, TT> : RosMsgPublisher<T,LivoxCustomMsgSerializer<T, TT>, CustomMsgMsg>
where T : UnitySensor, IPointCloudInterface<TT>
where TT : struct, IPointXYZInterface
{
private void OnDestroy()
{
_serializer.Dispose();
}
}
}

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

0 comments on commit 8210cad

Please sign in to comment.