File: PCLPlotter.txt

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,828 kB
  • sloc: python: 3,094; cpp: 283; makefile: 181; sh: 24; ansic: 12
file content (19 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-
# PCLPlotter
# http://pointclouds.org/documentation/tutorials/pcl_plotter.php#pcl-plotter

import pcl

# //defining a plotter
# pcl::visualization::PCLPlotter * plotter = new PCLPlotter ();
# 
# //defining the polynomial function, y = x^2. Index of x^2 is 1, rest is 0
# vector<double> func1 (3,0);
# func1[2] = 1;
# 
# //adding the polynomial func1 to the plotter with [-10, 10] as the range in X axis and "y = x^2" as title
# plotter->addPlotData (func1, -10, 10, "y = x^2");
# 
# //display the plot, DONE!
# plotter->plot ();