Class: Artoo::Adaptors::Opencv

Inherits:
Adaptor
  • Object
show all
Defined in:
lib/artoo/adaptors/opencv.rb

Overview

Connect to a opencv device

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *arguments, &block) ⇒ Object

Uses method missing to call device actions

See Also:



24
25
26
# File 'lib/artoo/adaptors/opencv.rb', line 24

def method_missing(method_name, *arguments, &block)
  device.send(method_name, *arguments, &block)
end

Instance Attribute Details

#deviceObject (readonly)

Returns the value of attribute device.



8
9
10
# File 'lib/artoo/adaptors/opencv.rb', line 8

def device
  @device
end

Instance Method Details

#connectBoolean

Creates a connection with device

Returns:

  • (Boolean)


12
13
14
# File 'lib/artoo/adaptors/opencv.rb', line 12

def connect
  super
end

#disconnectBoolean

Closes connection with device

Returns:

  • (Boolean)


18
19
20
# File 'lib/artoo/adaptors/opencv.rb', line 18

def disconnect
  super
end