Classes | Functions | Variables
pyglet_pointcloud_viewer Namespace Reference

Classes

class  AppState
 

Functions

def axes (size=1, width=1)
 
def convert_fmt (fmt)
 
def frustum (intrinsics)
 
def grid (size=1, n=10, width=1)
 
def handle_mouse_btns (x, y, button, modifiers)
 
def on_draw ()
 
def on_key_press (symbol, modifiers)
 
def on_mouse_drag (x, y, dx, dy, buttons, modifiers)
 
def on_mouse_scroll (x, y, scroll_x, scroll_y)
 
def rotation_matrix (axis, theta)
 
def run (dt)
 

Variables

 color_h
 
 color_intrinsics = other_profile.get_intrinsics()
 
 color_w
 
 colorizer = rs.colorizer()
 
 config = rs.config()
 
 decimate = rs.decimation_filter()
 
 depth_intrinsics = depth_profile.get_intrinsics()
 
 depth_profile = rs.video_stream_profile(profile.get_stream(rs.stream.depth))
 
list filters
 
 fps_display = pyglet.clock.ClockDisplay()
 
 h
 
 image_data
 
 image_h
 
 image_w
 
 keys = pyglet.window.key.KeyStateHandler()
 
 other_format
 
 other_profile = rs.video_stream_profile(profile.get_stream(other_stream))
 
 other_stream
 
 pc = rs.pointcloud()
 
 pipeline = rs.pipeline()
 
 profile = pipeline.get_active_profile()
 
 state = AppState()
 
 vertex_list
 
 w
 
 window
 

Function Documentation

def pyglet_pointcloud_viewer.axes (   size = 1,
  width = 1 
)
draw 3d axes

Definition at line 233 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.convert_fmt (   fmt)
rs.format to pyglet format string

Definition at line 128 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.frustum (   intrinsics)
draw camera's frustum

Definition at line 247 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.grid (   size = 1,
  n = 10,
  width = 1 
)
draw a grid on xz plane

Definition at line 271 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.handle_mouse_btns (   x,
  y,
  button,
  modifiers 
)

Definition at line 181 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.on_draw ( )

Definition at line 289 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.on_key_press (   symbol,
  modifiers 
)

Definition at line 197 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.on_mouse_drag (   x,
  y,
  dx,
  dy,
  buttons,
  modifiers 
)

Definition at line 164 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.on_mouse_scroll (   x,
  y,
  scroll_x,
  scroll_y 
)

Definition at line 191 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.rotation_matrix (   axis,
  theta 
)
Return the rotation matrix associated with counterclockwise rotation about
the given axis by theta radians.

Definition at line 46 of file pyglet_pointcloud_viewer.py.

def pyglet_pointcloud_viewer.run (   dt)

Definition at line 387 of file pyglet_pointcloud_viewer.py.

Variable Documentation

pyglet_pointcloud_viewer.color_h

Definition at line 148 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.color_intrinsics = other_profile.get_intrinsics()

Definition at line 147 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.color_w

Definition at line 148 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.colorizer = rs.colorizer()

Definition at line 110 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.config = rs.config()

Definition at line 92 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.decimate = rs.decimation_filter()

Definition at line 108 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.depth_intrinsics = depth_profile.get_intrinsics()

Definition at line 103 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.depth_profile = rs.video_stream_profile(profile.get_stream(rs.stream.depth))

Definition at line 102 of file pyglet_pointcloud_viewer.py.

list pyglet_pointcloud_viewer.filters
Initial value:
1 = [rs.disparity_transform(),
2  rs.spatial_filter(),
3  rs.temporal_filter(),
4  rs.disparity_transform(False)]

Definition at line 111 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.fps_display = pyglet.clock.ClockDisplay()

Definition at line 158 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.h

Definition at line 104 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.image_data
Initial value:
1 = pyglet.image.ImageData(image_w, image_h, convert_fmt(
2 other_profile.format()), (gl.GLubyte * (image_w * image_h * 3))())

Definition at line 153 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.image_h

Definition at line 146 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.image_w

Definition at line 146 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.keys = pyglet.window.key.KeyStateHandler()

Definition at line 124 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.other_format

Definition at line 95 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.other_profile = rs.video_stream_profile(profile.get_stream(other_stream))

Definition at line 144 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.other_stream

Definition at line 95 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.pc = rs.pointcloud()

Definition at line 107 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.pipeline = rs.pipeline()

Definition at line 91 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.profile = pipeline.get_active_profile()

Definition at line 100 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.state = AppState()

Definition at line 88 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.vertex_list
Initial value:
1 = pyglet.graphics.vertex_list(
2  w * h, 'v3f/stream', 't2f/stream', 'n3f/stream')

Definition at line 141 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.w

Definition at line 104 of file pyglet_pointcloud_viewer.py.

pyglet_pointcloud_viewer.window
Initial value:
1 = pyglet.window.Window(
2  config=gl.Config(
3  double_buffer=True,
4  samples=8 # MSAA
5  ),
6  resizable=True, vsync=True)

Definition at line 118 of file pyglet_pointcloud_viewer.py.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40