Skip to content

Commit a9e3c94

Browse files
authored
Merge pull request #900 from JuliaRobotics/22Q3/enh/plotpc
2 parents d1a7496 + a93cbc4 commit a9e3c94

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/3rdParty/_PCL/_PCL.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ include("services/ICP_Simple.jl")
4040

4141
function __init__()
4242
@require RobotOS="22415677-39a4-5241-a37a-00beabbbdae8" include("services/ROSConversions.jl")
43+
@require Gadfly="c91e804a-d5a3-530f-b6f0-dfbca275c004" include("services/PlottingUtilsPCL.jl")
4344
end
4445

4546

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
@info "Caesar._PCL is loading tools related to Gadfly.jl."
3+
4+
# import ..Gadfly as GF
5+
6+
## =====================================================================================
7+
## _PCL plotting utils
8+
## =====================================================================================
9+
10+
# FIXME move pointcloud plotting to Arena.jl instead
11+
function plotPointCloud(pc::PointCloud)
12+
x = (s->s.data[1]).(pc.points)
13+
y = (s->s.data[2]).(pc.points)
14+
15+
Main.Gadfly.plot(x=x,y=y, Main.Gadfly.Geom.point)
16+
end

0 commit comments

Comments
 (0)