-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ArenaCaesarExt and test plotPointCloud (#119)
* add ArenaCaesarExt and test plotPointCloud * bug fix on test plotPointCloud * missing extra dep LasIO for testing * missing extra dep Downloads for test * Add Caesar and LasIO compat * Update Project.toml compat --------- Co-authored-by: Johannes Terblanche <[email protected]>
- Loading branch information
Showing
7 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
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
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,18 @@ | ||
module ArenaCaesarExt | ||
|
||
@info "Loading ArenaCaesarExt" | ||
|
||
using GLMakie | ||
using ColorSchemes | ||
using TensorCast | ||
|
||
using Caesar | ||
import Caesar._PCL as _PCL | ||
|
||
using Arena | ||
import Arena: plotPointCloud | ||
|
||
|
||
include("services/PlotPointCloudMap.jl") | ||
|
||
end |
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,3 @@ | ||
|
||
|
||
function plotPointCloud end |
File renamed without changes.
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
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
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,42 @@ | ||
|
||
using Arena | ||
using Caesar | ||
using Downloads | ||
using DelimitedFiles | ||
using LasIO | ||
using Test | ||
|
||
## | ||
|
||
function downloadTestData(datafile, url) | ||
if 0 === Base.filesize(datafile) | ||
Base.mkpath(dirname(datafile)) | ||
@info "Downloading $url" | ||
Downloads.download(url, datafile) | ||
end | ||
return datafile | ||
end | ||
|
||
testdatafolder = joinpath(tempdir(), "caesar", "testdata") # "/tmp/caesar/testdata/" | ||
|
||
lidar_terr1_file = joinpath(testdatafolder,"lidar","simpleICP","terrestrial_lidar1.xyz") | ||
if !isfile(lidar_terr1_file) | ||
lidar_terr1_url = "https://github.com/JuliaRobotics/CaesarTestData.jl/raw/main/data/lidar/simpleICP/terrestrial_lidar1.xyz" | ||
downloadTestData(lidar_terr1_file,lidar_terr1_url) | ||
end | ||
|
||
# load the data to memory | ||
X_fix = readdlm(lidar_terr1_file, Float32) | ||
# convert data to PCL types | ||
pc_fix = Caesar._PCL.PointCloud(X_fix); | ||
|
||
|
||
## | ||
@testset "test plotPointCloud" begin | ||
## | ||
|
||
pl = Arena.plotPointCloud(pc_fix); | ||
|
||
## | ||
end | ||
## |