Difference between revisions of "Motor control"

From Wiki for iCub and Friends
Jump to: navigation, search
 
Line 1: Line 1:
 
== Motor control in Yarp, a brief tutorial ==
 
== Motor control in Yarp, a brief tutorial ==
  
Motor control in Yarp is done through a device driver. For more documentation please see: [http://www.example.com Yarp on SF] and the related classes. The project on the iCub repository under src/simple_headcontrol is a good example to start playing with motor control. This example uses a remoted device driver which exports exactly the same interfaces of the actual device driver. Clearly, the main difference between the two is in terms of efficiency, if you're developing a low-level control loop you might want to be local, on the other hand a simple sporadic position control can be effected through the remote device driver.
+
Motor control in Yarp is done through a device driver. For more documentation please see: [http://www.example.com Yarp on SF] and the related classes. The project on the iCub repository under src/simple_headcontrol is a good example to start playing with motor control. This example uses a remoted device driver which exports exactly the same interfaces of the actual device driver ('''initialization is different'''). Clearly, the main difference between the two is in terms of efficiency, if you're developing a low-level control loop you might want to be local, on the other hand a simple sporadic position control can be effected through the remote device driver.
  
In practice, we start by loading a set of configuration parameters from a file:
+
In practice, we start by preparing a set of configuration parameters:
 
 
  const char *conf = ACE_OS::getenv("ICUB_ROOT");
 
  
 
   Property options;
 
   Property options;
 
   options.fromCommand(argc, argv);
 
   options.fromCommand(argc, argv);

Revision as of 18:54, 25 July 2006

Motor control in Yarp, a brief tutorial

Motor control in Yarp is done through a device driver. For more documentation please see: Yarp on SF and the related classes. The project on the iCub repository under src/simple_headcontrol is a good example to start playing with motor control. This example uses a remoted device driver which exports exactly the same interfaces of the actual device driver (initialization is different). Clearly, the main difference between the two is in terms of efficiency, if you're developing a low-level control loop you might want to be local, on the other hand a simple sporadic position control can be effected through the remote device driver.

In practice, we start by preparing a set of configuration parameters:

 Property options;
 options.fromCommand(argc, argv);