logo logo
Home arrow Robotics Studio... arrow Robotics Studio Services arrow Logitech Webcam Pan Tilt Service
Saturday, 25 October 2014
 
 
Logitech Webcam Pan Tilt Service Print E-mail
Written by Raúl Arrabales Moreno   
Tuesday, 23 March 2010

Logitech Webcam Pan Tilt Service (PanTiltCam Service)

The CRUBOTS Pan Tilt Service for Logitech webcams (PanTiltCam service) is a component to be used with Microsoft Robotics Developer Studio to control the pan and tilt functions of a Logitech webcam like the Logitech Quickcam Sphere MP (also kown as Quickcam Orbit MP).

Logitech Quickcam Sphere - Orbit MP
Logitech Quickcam Sphere - Orbit MP

This service is based on the Logitech Orbit/Sphere Mover DLL Library and permits to control the pan and tilt motors of the Logitech webcam from MRDS 2008 services using C# or any other .NET programming language.

Service Source Code Download

Pan Tilt Cam service source code is available at: MRDS 2008 R2 Download section.

Service Details and Instructions

CRANIUM Dashboard Pan Tilt Control To illustrate how the service works I've added Pan Tilt control buttons to the CRANIUM Dashboard service included in CRUBOTS. As far as I know there is no simulated web cam that supports pan-tilt functions, therefore it can only be used with a real Logitech cam.

The CRANIUM Dashboard service is able to subscribe to a generic Pan Tilt Service, and expose the functionality of such a service in the form of Up, Down, Left, Right buttons. Every time you press these buttons the corresponding commands are sent to the Pan Tilt services you connected to.

The distribution ZIP file actually contains two services:

 - GenericPanTilt Service: The Generic Pan Tilt Service is a Robotics Developer Studio generic service for Pan Tilt actuators. In other words, this generic service defines the behavior (operations) that any pan tilt controller will support. This service is the one you should reference from your control code if you want it to be hardware independent.

 - PanTiltCam Service: The Pan Tilt Cam Service is an implementation of the Generic Pan Tilt Service which can control Logitech pan tilt cameras. It uses the Logimove dll library to communicate with the Logitech driver.

Download the ZIP file to your MRDS home directory, when you unzip the file, it creates two directory projects in the packages\crubots\Actuators directory under your RDS installation:

The folder GenericPanTilt contains the source code of the generic service, and the folder PanTiltCam contains the Logitech pan tilt service.

If you want to compile the projects yourself, then open the project and do a rebuild (see the note below first!)

*** IMPORTANT NOTE: ***

The logimove.dll file has to be copied to the application working directory so the Logitech service finds it at runtime. It can be placed in the MRDS bin directory.

In order to have the project references working for your particular settings, you will need to run DssProjectMigration.exe. For instance (from the MRDS command prompt):

 bin\DssProjectMigration.exe packages\crubots\Actuators

The Pan Tilt service includes just a new operation called PanTiltOperation, which takes a PanTiltOperationRequest object as parameter. This request is defined as follows:

    /// <summary>
    /// Pan Tilt Operation Request
    /// </summary>
    [DataContract]
    public class PanTiltOperationRequest
    {
        public enum OpType
        {
            MoveUp,     // Move the camera up
            MoveDown,   // Move the camera down
            MoveLeft,   // Move the camera left
            MoveRight,  // Move the camera right
            Reset       // Reset
        }

See Readme.txt file for more details. Use the MRDS forum if you have any question about this service.


Add as favourites (292) | Quote this article on your site | Views: 5978

  Comments (2)
RSS comments
 1 Re: Error. Please help
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it website, on 22-04-2011 21:58
Sorry for the late reply.  
The error in processing the reference to Cera.Generic.PanTilt.Proxy indicates that you didn't build the generic service for a PanTilt.  
 
I also wrote a small generic PanTilt service (basically an interface, or generic contract following the RDS nomenclature) to allow for further vendors pantilt controllers. The Logitech pantilt service references the generic pantilt service, therefore you just need to compile the GenericPanTilt service in the first place.
 2 Error. Please help.
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it , on 15-12-2010 15:58
Hi Raul, 
 
I am glad that you were able to develop Logitech Pan/Tilt. I am looking for it. Once i saw your blog, my hopes raised very high. At the end, i am currently facing following error. 
 
Appreciate if you can help me, Please. 
 
Following is error. 
 
Error 1 The type or namespace name 'Generic' does not exist in the namespace 'Cera' (are you missing an assembly reference?) C:\Documents and Settings\Telis\Microsoft Robotics Dev Studio 2008 R3\packages\crubots\Actuators\Test\PanTiltCam\PanTiltCam.cs 12 19 PanTiltCam 
 
 
Advance thanks for helping me.  
 
 
Thank You 
Azuma 
null

Only registered users can write comments.
Please login or register.


Related Items:

  1. Toward a Science of Consciousness 2008
  2. 13th Finnish Artificial Intelligence Conference (STeP 2008)
  3. Nokia Workshop on Machine Consciousness 2008
  4. Microsoft Robotics Studio October 2006 CTP
  5. Microsoft Robotics Studio November 2006 CTP
  6. Microsoft Robotics Developer Studio 2008 CTP April
  7. RoboChamps Competition
  8. Released Robotics Developer Studio 2008
  9. MRDS will not be at RoboCup 2009
  10. MRDS 2008 R2 Released
Last Updated ( Thursday, 25 March 2010 )
 





Lost Password?
 Conscious Robots RSS FeedConscious Robots RSS Feed

Find us on Facebook

Follow us on TwitterFollow us on twitter
Spotlight

Machine Consciousness Bibliography Database

 

ConsScale
The Cognitive Machine Consciousness Scale

 
Categories
Last Posts in Forum
 
CR
miel continental