module PlaceOS::Driver::Interface::Camera
Overview
All cameras should expose limits:
- pan_range, pan_speed
- tilt_range, tilt_speed
- zoom_range,
- has_discrete_zoom = true / false
Optional:
- focus_out, focus_in, has_discrete_focus
- iris_open, iris_close, has_discrete_iris
Included Modules
- PlaceOS::Driver::Interface::Moveable
- PlaceOS::Driver::Interface::Stoppable
- PlaceOS::Driver::Interface::Zoomable
Defined in:
placeos-driver/interface/camera.crInstance Method Summary
-
#joystick(pan_speed : Float64, tilt_speed : Float64, index : Int32 | String = 0)
Most cameras support sending a move speed, the interface should expect a percentage
- #pan(direction : PanDirection, index : Int32 | String = 0)
-
#recall(position : String, index : Int32 | String = 0)
Most cameras support presets (either as a feature or via manual positioning)
- #remove_position(name : String, index : Int32 | String = 0)
- #save_position(name : String, index : Int32 | String = 0)
- #tilt(direction : TiltDirection, index : Int32 | String = 0)
Instance methods inherited from module PlaceOS::Driver::Interface::Zoomable
zoom(direction : ZoomDirection, index : Int32 | String = 0)
zoom,
zoom_to(position : Float64, auto_focus : Bool = true, index : Int32 | String = 0)
zoom_to
Instance methods inherited from module PlaceOS::Driver::Interface::Moveable
move(position : MoveablePosition, index : Int32 | String = 0)
move
Instance methods inherited from module PlaceOS::Driver::Interface::Stoppable
stop(index : Int32 | String = 0, emergency : Bool = false)
stop
Instance Method Detail
abstract
def joystick(pan_speed : Float64, tilt_speed : Float64, index : Int32 | String = 0)
#
Most cameras support sending a move speed, the interface should expect a percentage
abstract
def recall(position : String, index : Int32 | String = 0)
#
Most cameras support presets (either as a feature or via manual positioning)