Skip to content

Commit 08bb787

Browse files
committed
Fix axis
1 parent cfbef55 commit 08bb787

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Assets/UnitySensorsROS/Runtime/Scripts/Publishers/LiDAR/Velodyne/VelodynePointsPublisher.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/UnitySensorsROS/Runtime/Scripts/Serializers/LiDAR/PointCloud2/PointCloud2Serializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public struct PointsToPointCloud2MsgJob : IJobParallelFor
9494
public void Execute(int index)
9595
{
9696
NativeArray<float> tmp = new NativeArray<float>(3, Allocator.Temp);
97-
tmp[0] = points[index].z;
98-
tmp[1] = -points[index].x;
97+
tmp[0] = -points[index].z;
98+
tmp[1] = points[index].x;
9999
tmp[2] = points[index].y;
100100
var slice = new NativeSlice<float>(tmp).SliceConvert<byte>();
101101
slice.CopyTo(data.GetSubArray(index * 12, 12));

0 commit comments

Comments
 (0)