File: GrabberCallbackTest.py

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 (10 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
import pcl.pcl_grabber

def func(obj):
    print(obj)
    obj.Test()     # Call to a specific method from class 'PyGrabberNode'
    return obj.d_prop

n = pcl.pcl_grabber.PyGrabberNode()    # Custom class of my own
cb = pcl.pcl_grabber.PyGrabberCallback(func)
print(cb.execute(n))