Robotsystem of the Robot Group Leipzig: OneAxisJoint Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Examples

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# OneAxisJoint Class Reference

`#include <joint.h>`

Inherits Joint.

Inherited by HingeJoint, SliderJoint, and TwoAxisJoint.

Inheritance diagram for OneAxisJoint:

[legend]
Collaboration diagram for OneAxisJoint:

[legend]
List of all members.

## Public Member Functions
| OneAxisJoint (Primitive *part1, Primitive *part2, const osg::Vec3 &anchor, const Axis axis1)
virtual Axis | getAxis1 () const
virtual double | getPosition1 () const =0
virtual double | getPosition1Rate () const =0
virtual int | getNumberAxes () const
| returns the number of Axes
virtual std::list< double > | getPositions () const
| returns the positions of all Axes
virtual std::list< double > | getPositionRates () const
| returns the position rates of all Axes
virtual int | getPositions (double *sensorarray) const
| stores the positions of all Axes into sensorarray and returns the number of written entries
virtual int | getPositionRates (double *sensorarray) const
| stores the position rates of all Axes into sensorarray and returns the number of written entries
## Protected Attributes
Axis | axis1

## Constructor & Destructor Documentation

OneAxisJoint | ( | Primitive * | part1,
|  | Primitive * | part2,
|  | const osg::Vec3 & | anchor,
|  | const Axis | axis1 |
| ) |  |  | `[inline]`

## Member Function Documentation

virtual Axis getAxis1 | ( |  | ) | const`[inline, virtual]`

virtual int getNumberAxes | ( |  | ) | const`[inline, virtual]`

returns the number of Axes

Implements Joint.

Reimplemented in TwoAxisJoint.

virtual double getPosition1 | ( |  | ) | const`[pure virtual]`

Implemented in HingeJoint, Hinge2Joint, UniversalJoint, and SliderJoint.

virtual double getPosition1Rate | ( |  | ) | const`[pure virtual]`

Implemented in HingeJoint, Hinge2Joint, UniversalJoint, and SliderJoint.

int getPositionRates | ( | double * | sensorarray | ) | const`[virtual]`

stores the position rates of all Axes into sensorarray and returns the number of written entries

Reimplemented from Joint.

Reimplemented in TwoAxisJoint.

std::list< double > getPositionRates | ( |  | ) | const`[virtual]`

returns the position rates of all Axes

Reimplemented from Joint.

Reimplemented in TwoAxisJoint.

int getPositions | ( | double * | sensorarray | ) | const`[virtual]`

stores the positions of all Axes into sensorarray and returns the number of written entries

Reimplemented from Joint.

Reimplemented in TwoAxisJoint.

std::list< double > getPositions | ( |  | ) | const`[virtual]`

returns the positions of all Axes

Reimplemented from Joint.

Reimplemented in TwoAxisJoint.

## Member Data Documentation

Axis axis1`[protected]`

The documentation for this class was generated from the following files:

- joint.h
- joint.cpp