Table des matières

TNY-360 Documentation

Joint

Joint module of the TNY-360 API (code 0x05).

This module contains actions related to the joint management of the robot, such as setting or getting positions and getting status information.


List of actions

Here's a list of all the actions available in the joint module:

0x05 - 0x00

joint.setEnabled

Sets the enabled state of a joint.


Arguments

  • joint_iduint8

    -

    ID of the joint to set the enabled state for.

  • enabledbool

    -

    Whether to enable (true) or disable (false) the joint.


No return values

0x05 - 0x01

joint.getEnabled

Gets the enabled state of a joint.


Arguments

  • joint_iduint8

    -

    ID of the joint to get the enabled state for.


Return Values

  • enabledbool

    -

    Whether the joint is currently enabled.

0x05 - 0x02

joint.setAngle

Sets the target angle of a joint.


Arguments

  • joint_iduint8

    -

    ID of the joint to set the target angle for.

  • anglefloat32

    -

    Target angle in radians.


No return values

0x05 - 0x03

joint.getTargetAngle

Gets the target angle of a joint.


Arguments

  • joint_iduint8

    -

    ID of the joint to get the target angle for.


Return Values

  • anglefloat32

    -

    Target angle in radians.

0x05 - 0x04

joint.getFeedbackAngle

Gets the feedback angle of a joint.


Arguments

  • joint_iduint8

    -

    ID of the joint to get the feedback angle for.


Return Values

  • anglefloat32

    -

    Feedback angle in radians.

0x05 - 0x05

joint.getModelAngle

Gets the model angle of a joint.


Arguments

  • joint_iduint8

    -

    ID of the joint to get the model angle for.


Return Values

  • anglefloat32

    -

    Model angle in radians.

0x05 - 0x06

joint.getEstimatedAngle

Gets the estimated angle of a joint.


Arguments

  • joint_iduint8

    -

    ID of the joint to get the estimated angle for.


Return Values

  • anglefloat32

    -

    Estimated angle in radians.

0x05 - 0x07

joint.setJointAngles

Sets the target angles of all joints at once.


Arguments

  • anglesfloat32[14]

    -

    Target angles for all joints in radians (order: LF hip, LF knee, LF ankle, RF hip, RF knee, RF ankle, LH hip, LH knee, LH ankle, RH hip, RH knee, RH ankle).


No return values

0x05 - 0x08

joint.getJointAngles

Gets the feedback angles of all joints at once.


No arguments


Return Values

  • anglesfloat32[14]

    -

    Feedback angles for all joints in radians (order: LF hip, LF knee, LF ankle, RF hip, RF knee, RF ankle, LH hip, LH knee, LH ankle, RH hip, RH knee, RH ankle).

List of types

Here's a list of all the types used in the joint module:

No custom types found in the actions of the "joint" module.