Table des matières

TNY-360 Documentation

Body

Body module of the TNY-360 API (code 0x03).

This module contains actions related to the body control of the robot, such as setting body velocity, posture, etc.


List of actions

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

0x03 - 0x00

body.setEnabled

Sets the enabled state of the body joints.


Arguments

  • enabled_flaguint16

    -

    Bitfield representing the enabled state of each joint (see JointId).


No return values

0x03 - 0x01

body.getEnabled

Gets the enabled state of the body joints.


No arguments


Return Values

  • enabled_flaguint16

    -

    Bitfield representing the enabled state of each joint (see JointId).

0x03 - 0x02

body.setVelocity

Sets the target velocity of the robot's body.


Arguments

  • x_msfloat32

    -

    X velocity in meters per second.

  • y_msfloat32

    -

    Y velocity in meters per second.

  • z_radsfloat32

    -

    Rotational velocity around Z axis in radians per second.

  • clear_overridesbool

    -

    Whether to clear joint overrides when setting the velocity (default: true).


No return values

0x03 - 0x03

body.getTargetVelocity

Gets the target velocity of the robot's body.


No arguments


Return Values

  • x_msfloat32

    -

    X velocity in meters per second.

  • y_msfloat32

    -

    Y velocity in meters per second.

  • z_radsfloat32

    -

    Rotational velocity around Z axis in radians per second.

0x03 - 0x04

body.setPosture

Sets the target posture of the robot's body.


Arguments

  • x_posfloat32

    -

    X position in meters.

  • y_posfloat32

    -

    Y position in meters.

  • z_posfloat32

    -

    Z position in meters.

  • x_rotfloat32

    -

    X rotation in radians (Euler XYZ).

  • y_rotfloat32

    -

    Y rotation in radians (Euler XYZ).

  • z_rotfloat32

    -

    Z rotation in radians (Euler XYZ).

  • clear_overridesbool

    -

    Whether to clear joint overrides when setting the posture (default: true).


No return values

0x03 - 0x05

body.getPosture

Gets the target posture of the robot's body.


No arguments


Return Values

  • posVec3f

    -

    Target position of the body in meters.

  • rotVec3f

    -

    Target rotation of the body in radians (Euler XYZ).

0x03 - 0x06

body.enableSmooth

Enables the whole body smoothly, going slowly into stand position.


No arguments


Return Values

  • timefloat32

    -

    Estimated time in seconds for the smooth enable to complete.

0x03 - 0x07

body.disableSmooth

Disables the whole body smoothly, going slowly to a rest position before disabling all joints.


No arguments


Return Values

  • timefloat32

    -

    Estimated time in seconds for the smooth disable to complete.

List of types

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

Vec3f

A 3D vector with x, y, z components represented as floats.


Fields

  • xfloat32

    -

    The x component of the vector.

  • yfloat32

    -

    The y component of the vector.

  • zfloat32

    -

    The z component of the vector.