Thumbnail

Camera Click Servo

by Synthiam

Attaches to the camera control to enable servo panning by clicking on the video image.

How to add the Camera Click Servo robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Camera category tab.
  5. Press the Camera Click Servo icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Camera Click Servo robot skill.

How to use the Camera Click Servo robot skill

Add this skill to your ARC project and bring the camera to life. The video will be interactive, where you can click on objects to center. There are hot spots along the edges which moves the camera as well.

Main Window

User-inserted image

1. Attach Button This button will add the Camera Click servo functionality to the Camera skill in ARC.

Settings

User-inserted image

1. Horizontal Servo These settings configure the "Pan" servo along the horizontal plane.

2. Vertical Servo These settings configure the "Tilt" servo along the vertical plane.

3. Fine Tune Specify the number of degrees that the X/Y servo will move per pixel

3. Hot Edges When enabled the 4 edges of the video image will move the camera if the cursor is held on the edge. The border edge width can be adjusted.

How to Use the Camera Click servo Skill

  1. Add a Camera Device skill to your ARC project (Project -> Add Skill -> Camera -> Camera Device).

  2. Add a Camera Click servo skill to your ARC project (Project -> Add Skill -> Camera -> Camera Click Servo).

  3. Physically mount your camera to a servo controlled pan-tilt mechanism.

  4. Physically connect the servos to an ARC connected I/O controller.

  5. Configure the servos in the settings of the Camera Click servo skill, and save the settings.

  6. Click the Attach button to connect to the Camera Device skill.

  7. Click on the video preview area of the Camera Device skill and voila, you're moving the camera view around the room with the click of a mouse!

Multi Camera Support Use the ControlCommand() syntax presented in the Cheat Sheet to attach this control to your desired camera, if your project has more than one camera skill. Otherwise, pressing Attach without specifying the camera name will attach to the first instance.

Video

Requirements

A installed camera device mounted on a servo controlled pan/tilt mechanism.

Resources

Source Code: CameraClickServo.zip

Version Changes

  • v4 fixes the Edge Size not displaying in the drop down when editing the settings.

  • v5 add ControlCommand() to attach to any camera

  • v6 uses new servo storage container in Config File for plugin

  • v7 compatibility with latest ARC (version 2019.01.04 or later)


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

#1  

When clicking attach I get the following ARC Error:

Version: 2018.12.17.00

System.MissingMethodException: Method not found: 'System.Windows.Forms.Panel EZ_Builder.UCForms.FormCameraDevice.get_VideoPreviewPanel()'.
   at CameraClickServo.FormMaster.attach(String cameraName)
   at CameraClickServo.FormMaster.button1_Click(Object sender, EventArgs e) in c:\My Documents\SVN\Developer - Windows\ARC skill plugins\CameraClickServo\CameraClickServo\FormMaster.cs:line 75
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
PRO
Synthiam
#2  

This will be fixed in the next update of ARC. Stay tuned!

PRO
Synthiam
#3   — Edited

Okay - the latest ARC update works with the latest version of this plugin: https://synthiam.com/Software/Release/Release-2019-01-04-00-17410

#4  

Thank you DJ

It is working now.

Is the source code for the control also updated or was the change inside of ARC itself?

#6  

Thanks DJ this looks awesome,more camera fun!

PRO
USA
#7  

Thanks for the technology you share

PRO
USA
#8  

The camera click servo works good

EzAng