Table des matières

TNY-360 Documentation

IMU

IMU module of the TNY-360 API (code 0x07).

This module contains actions related to the IMU management of the robot, such as getting orientation and acceleration information.


List of actions

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

0x07 - 0x00

imu.getAcceleration

Gets the current acceleration vector from the IMU.


No arguments


Return Values

  • accelerationVec3f

    -

    Acceleration vector in m/s^2 (x, y, z).

0x07 - 0x01

imu.getAngularVelocity

Gets the current angular velocity vector from the IMU.


No arguments


Return Values

  • angular_velocityVec3f

    -

    Angular velocity vector in rad/s (x, y, z).

0x07 - 0x02

imu.getDownVector

Gets the current down vector from the IMU (i.e. the direction of gravity).


No arguments


Return Values

  • down_vectorVec3f

    -

    Down vector (unit vector pointing in the direction of gravity).

0x07 - 0x03

imu.getOrientation

Gets the current orientation of the robot as a rotation vector (axis-angle representation).


No arguments


Return Values

  • orientationVec3f

    -

    Rotation vector representing the robot's orientation (Euler rotation in radians, XYZ order)

Not Implemented

imu.getCalibrationState

Gets the current calibration state of the IMU.


No arguments


Return Values

  • stateuint8

    -

    Calibration state (0 = not calibrated, 1 = calibrating, 2 = calibrated).

Not Implemented

imu.getCalibrationData

Gets the current calibration data of the IMU.


No arguments


Return Values

  • databyte[]

    -

    Calibration data blob (format TBD).

Not Implemented

imu.setCalibrationData

Sets the calibration data of the IMU.


Arguments

  • databyte[]

    -

    Calibration data blob (format TBD).


No return values

Not Implemented

imu.startCalibration

Starts the calibration process for the IMU.


No arguments


No return values

Not Implemented

imu.stopCalibration

Stops the calibration process for the IMU.


No arguments


No return values

Not Implemented

imu.getCalibrationProgress

Gets the current progress of the IMU calibration process.


No arguments


Return Values

  • progressuint8

    -

    Calibration progress percentage (0-100).

List of types

Here's a list of all the types used in the imu 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.