TwoAxisServo Class Reference

general servo motor for 2 axis joints More...

#include <twoaxisservo.h>

Collaboration diagram for TwoAxisServo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TwoAxisServo (TwoAxisJoint *joint, double _min1, double _max1, double power1, double _min2, double _max2, double power2, double damp=0.2, double integration=2, double maxVel=10.0)
 min and max values are understood as travel bounds.
virtual ~TwoAxisServo ()
virtual void set (double pos1, double pos2)
 sets the set point of the servo.
virtual double get1 ()
 returns the position of the servo (joint) of 1.
virtual double get2 ()
 returns the position of the servo (joint) of 2.
void get (double &p1, double &p2)
 returns the positions of the joint in ranges [-1, 1] (scaled by min, max)
virtual void setPower (double power1, double power2)
 adjusts the power of the servo
virtual double & power1 ()
 returns the power of the servo
virtual double & power2 ()
 returns the power of the servo
virtual double & damping1 ()
 returns the damping of the servo
virtual double & damping2 ()
 returns the damping of the servo
virtual double & offsetCanceling ()
 returns the damping of the servo
virtual void setMinMax1 (double _min, double _max)
virtual void setMinMax2 (double _min, double _max)

Detailed Description

general servo motor for 2 axis joints


Constructor & Destructor Documentation

TwoAxisServo ( TwoAxisJoint joint,
double  _min1,
double  _max1,
double  power1,
double  _min2,
double  _max2,
double  power2,
double  damp = 0.2,
double  integration = 2,
double  maxVel = 10.0 
) [inline]

min and max values are understood as travel bounds.

Min should be less than 0.

virtual ~TwoAxisServo (  )  [inline, virtual]


Member Function Documentation

virtual double& damping1 (  )  [inline, virtual]

returns the damping of the servo

virtual double& damping2 (  )  [inline, virtual]

returns the damping of the servo

void get ( double &  p1,
double &  p2 
) [inline]

returns the positions of the joint in ranges [-1, 1] (scaled by min, max)

virtual double get1 (  )  [inline, virtual]

returns the position of the servo (joint) of 1.

axis in ranges [-1, 1] (scaled by min1, max1)

virtual double get2 (  )  [inline, virtual]

returns the position of the servo (joint) of 2.

axis in ranges [-1, 1] (scaled by min2, max2)

virtual double& offsetCanceling (  )  [inline, virtual]

returns the damping of the servo

virtual double& power1 (  )  [inline, virtual]

returns the power of the servo

virtual double& power2 (  )  [inline, virtual]

returns the power of the servo

virtual void set ( double  pos1,
double  pos2 
) [inline, virtual]

sets the set point of the servo.

Position must be between -1 and 1. It is scaled to fit into min, max

virtual void setMinMax1 ( double  _min,
double  _max 
) [inline, virtual]

virtual void setMinMax2 ( double  _min,
double  _max 
) [inline, virtual]

virtual void setPower ( double  power1,
double  power2 
) [inline, virtual]

adjusts the power of the servo


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 22:01:37 2008 for Robotsystem of the Robot Group Leipzig by  doxygen 1.4.7