Module ode :: Class LMotor
[show private | hide private]
[frames | no frames]

Type LMotor

object --+    
         |    
     Joint --+
             |
            LMotor


LMotor joint.

Constructor:
 LMotor(world, jointgroup=None)

Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  getAxis(anum)
Get an LMotor axis.
int getNumAxes()
Get the number of angular axes that are controlled by the LMotor.
  getParam(...)
  setAxis(anum, rel, axis)
Set an LMotor axis.
  setNumAxes(num)
Set the number of angular axes that will be controlled by the LMotor.
  setParam(...)
    Inherited from Joint
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  attach(body1, body2)
Attach the joint to some new bodies.
Body getBody(index)
Return the bodies that this joint connects.
(force1, torque1, force2, torque2) getFeedback()
Get the forces/torques applied by the joint.
  setFeedback(flag)
Create a feedback buffer.
    Inherited from object
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
ode.Joint.__init__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
ode.Joint.__new__

getAxis(anum)

Get an LMotor axis.
Parameters:
anum - Axis index (0-2)
           (type=int)

getNumAxes()

Get the number of angular axes that are controlled by the LMotor.
Returns:
int

setAxis(anum, rel, axis)

Set an LMotor axis.

The anum argument selects the axis to change (0,1 or 2). Each axis can have one of three "relative orientation" modes, selected by rel:

0: The axis is anchored to the global frame. 1: The axis is anchored to the first body. 2: The axis is anchored to the second body.
Parameters:
anum - Axis number
           (type=int)
rel - Relative orientation mode
           (type=int)
axis - Axis
           (type=3-sequence of floats)

setNumAxes(num)

Set the number of angular axes that will be controlled by the LMotor. num may be in the range from 0 to 3.
Parameters:
num - Number of axes (0-3)
           (type=int)

Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 http://epydoc.sf.net