Skip to content

Commit

Permalink
Merge pull request #997 from JuliaRobotics/23Q1/fix/saveLas
Browse files Browse the repository at this point in the history
saveLAS round to Int32
  • Loading branch information
dehann authored Nov 29, 2023
2 parents 6fd490f + cd81320 commit adf5ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/services/LasIOSupport.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function saveLAS(
r = map(p->p.color.r, pc.points)
g = map(p->p.color.g, pc.points)
b = map(p->p.color.b, pc.points)
pCloud = LasPoint2.(round.(scale*x),round.(scale*y),round.(scale*z), 1, 0, 0, 0, 0, 0, r, g, b);
pCloud = LasPoint2.(round.(Int32,scale*x),round.(Int32,scale*y),round.(Int32,scale*z), 1, 0, 0, 0, 0, 0, r, g, b);

tim = unix2datetime(pc.header.stamp*1e-6) # now()

Expand Down

0 comments on commit adf5ccc

Please sign in to comment.