Package baxter_interface :: Module camera :: Class CameraController
[hide private]
[frames] | no frames]

Class CameraController

source code

object --+
         |
        CameraController

Interface class for controlling camera settings on the Baxter robot.

Instance Methods [hide private]
 
__init__(self, name)
Constructor.
source code
 
_reload(self) source code
 
_get_value(self, control, default) source code
 
_set_control_value(self, control, value) source code
 
open(self)
Open the camera currently under control.
source code
 
close(self)
Close, if necessary the camera.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  MODES = [(1280, 800), (960, 600), (640, 400), (480, 300), (384...
  CONTROL_AUTO = -1
Properties [hide private]
  resolution
Camera resolution as a tuple.
  fps
Camera frames per second
  exposure
Camera exposure.
  gain
Camera gain.
  white_balance_red
White balance red.
  white_balance_green
White balance green.
  white_balance_blue
White balance blue.
  window
Camera windowing, returns a tuple, (x, y)
  flip
Camera flip.
  mirror
Camera mirror.
  half_resolution
Return True if binning/half resolution is enabled on the camera.

Inherited from object: __class__

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 

Constructor.

Parameters:
  • name - camera identifier. You can get a list of valid identifiers by calling the ROS service /cameras/list.

    Expected names are right_hand_camera, left_hand_camera and head_camera. However if the cameras are not identified via the parameter server, they are simply indexed starting at 0.

Overrides: object.__init__

Class Variable Details [hide private]

MODES

Value:
[(1280, 800),
 (960, 600),
 (640, 400),
 (480, 300),
 (384, 240),
 (320, 200)]

Property Details [hide private]

resolution

Camera resolution as a tuple. (width, height). Valid resolutions are listed as tuples in CameraController.MODES

Get Method:
unreachable.resolution(self) - Camera resolution as a tuple.
Set Method:
unreachable.resolution(self, res)

fps

Camera frames per second

Get Method:
unreachable.fps(self) - Camera frames per second
Set Method:
unreachable.fps(self, fps)

exposure

Camera exposure. If autoexposure is on, returns CameraController.CONTROL_AUTO

Get Method:
unreachable.exposure(self) - Camera exposure.
Set Method:
unreachable.exposure(self, exposure) - Camera Exposure.

gain

Camera gain. If autogain is on, returns CameraController.CONTROL_AUTO

Get Method:
unreachable.gain(self) - Camera gain.
Set Method:
unreachable.gain(self, gain) - Camera gain.

white_balance_red

White balance red. If autocontrol is on, returns CameraController.CONTROL_AUTO

Get Method:
unreachable.white_balance_red(self) - White balance red.
Set Method:
unreachable.white_balance_red(self, value) - White balance red.

white_balance_green

White balance green. If autocontrol is on, returns CameraController.CONTROL_AUTO

Get Method:
unreachable.white_balance_green(self) - White balance green.
Set Method:
unreachable.white_balance_green(self, value) - White balance green.

white_balance_blue

White balance blue. If autocontrol is on, returns CameraController.CONTROL_AUTO

Get Method:
unreachable.white_balance_blue(self) - White balance blue.
Set Method:
unreachable.white_balance_blue(self, value) - White balance blue.

window

Camera windowing, returns a tuple, (x, y)

Get Method:
unreachable.window(self) - Camera windowing, returns a tuple, (x, y)
Set Method:
unreachable.window(self, win) - Set camera window.

flip

Camera flip. Returns True if flip is enabled on the camera.

Get Method:
unreachable.flip(self) - Camera flip.
Set Method:
unreachable.flip(self, value)

mirror

Camera mirror. Returns True if mirror is enabled on the camera.

Get Method:
unreachable.mirror(self) - Camera mirror.
Set Method:
unreachable.mirror(self, value)

half_resolution

Return True if binning/half resolution is enabled on the camera.

Get Method:
unreachable.half_resolution(self) - Return True if binning/half resolution is enabled on the camera.
Set Method:
unreachable.half_resolution(self, value)