public class OffsetJointMapper extends java.lang.Object implements IJointToMotorMapper
Constructor and Description |
---|
OffsetJointMapper(double offset) |
OffsetJointMapper(double offset,
double scaling) |
Modifier and Type | Method and Description |
---|---|
double[] |
jointToMotorAngle(double[] jointAngles)
Maps joint to motor angles.
|
double[] |
motorToJointAngle(double[] motorAngles)
Maps motor to joint angles.
|
public OffsetJointMapper(double offset)
offset
- scaling
- public OffsetJointMapper(double offset, double scaling)
offset
- scaling
- public double[] jointToMotorAngle(double[] jointAngles)
IJointToMotorMapper
jointToMotorAngle
in interface IJointToMotorMapper
jointAngles
- the joint angles in degrees.public double[] motorToJointAngle(double[] motorAngles)
IJointToMotorMapper
motorToJointAngle
in interface IJointToMotorMapper
motorAngles
- the motor angles in degrees.