bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
camera_server.SyntheticSource Class Reference

Public Member Functions

 __init__ (self, width, height, side=0.6, line_width=0.035, seed=1)
 read (self)
 close (self)

Static Public Attributes

str name = "synthetic"

Protected Attributes

 _width = width
 _height = height
 _side = side
 _line_width = line_width
 _rng = np.random.default_rng(seed)
 _start = time.monotonic()
 _paper = np.repeat(light[:, :, None], 3, axis=2)

Detailed Description

A square of thick dark lines on paper, as a camera above it would see it.

The paper is slightly rotated and moves a little over time, and the frames
have uneven lighting and noise, so the simulator cannot rely on a perfect
picture.

Constructor & Destructor Documentation

◆ __init__()

camera_server.SyntheticSource.__init__ ( self,
width,
height,
side = 0.6,
line_width = 0.035,
seed = 1 )

Member Function Documentation

◆ close()

camera_server.SyntheticSource.close ( self)

◆ read()

camera_server.SyntheticSource.read ( self)

Member Data Documentation

◆ _height

camera_server.SyntheticSource._height = height
protected

◆ _line_width

camera_server.SyntheticSource._line_width = line_width
protected

◆ _paper

camera_server.SyntheticSource._paper = np.repeat(light[:, :, None], 3, axis=2)
protected

◆ _rng

camera_server.SyntheticSource._rng = np.random.default_rng(seed)
protected

◆ _side

camera_server.SyntheticSource._side = side
protected

◆ _start

camera_server.SyntheticSource._start = time.monotonic()
protected

◆ _width

camera_server.SyntheticSource._width = width
protected

◆ name

str camera_server.SyntheticSource.name = "synthetic"
static

The documentation for this class was generated from the following file: