Table des matières

TNY-360 Documentation

Gait

Gait module of the TNY-360 API (code 0x02).

This module contains actions related to the gait control of the robot, such as setting gait type, frequency, etc.


List of actions

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

0x02 - 0x00

gait.setType

Sets the gait type for the robot.


Arguments

  • gait_typeuint8

    -

    Gait type (0 = Stand, 1 = Walk, 2 = Trot, 3 = Gallop).


No return values

0x02 - 0x01

gait.getType

Gets the current gait type for the robot.


No arguments


Return Values

  • gait_typeuint8

    -

    Gait type (0 = Stand, 1 = Walk, 2 = Trot, 3 = Gallop).

0x02 - 0x02

gait.setFrequency

Sets the step frequency for the robot's gait.


Arguments

  • frequencyfloat

    -

    Step frequency in Hz.


No return values

0x02 - 0x03

gait.getFrequency

Gets the step frequency of the robot's gait.


No arguments


Return Values

  • frequencyfloat

    -

    Step frequency in Hz.

0x02 - 0x04

gait.setDutyFactor

Sets the duty factor for the robot's gait.


Arguments

  • valuefloat

    -

    Duty factor.


No return values

0x02 - 0x05

gait.getDutyFactor

Gets the duty factor of the robot's gait.


No arguments


Return Values

  • valuefloat

    -

    Duty factor.

0x02 - 0x06

gait.setStepHeight

Sets the step height for the robot's gait.


Arguments

  • valuefloat

    -

    Step height in meters.


No return values

0x02 - 0x07

gait.getStepHeight

Gets the step height of the robot's gait.


No arguments


Return Values

  • valuefloat

    -

    Step height in meters.

0x02 - 0x08

gait.setStanceDepth

Sets the stance depth for the robot's gait.


Arguments

  • valuefloat

    -

    Stance depth in meters.


No return values

0x02 - 0x09

gait.getStanceDepth

Gets the stance depth of the robot's gait.


No arguments


Return Values

  • valuefloat

    -

    Stance depth in meters.

0x02 - 0x0A

gait.setLegSpread

Sets the leg spread for the robot's gait.


Arguments

  • spread_xfloat

    -

    Spread in the X direction (meters).

  • spread_yfloat

    -

    Spread in the Y direction (meters).


No return values

0x02 - 0x0B

gait.getLegSpread

Gets the leg spread of the robot's gait.


No arguments


Return Values

  • spread_xfloat

    -

    Spread in the X direction (meters).

  • spread_yfloat

    -

    Spread in the Y direction (meters).

List of types

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

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