Javascript SDK

You want to control your TNY-360 using JavaScript? We got you covered!

This section is here to get you started with the JavaScript SDK for your TNY-360. To learn more about the SDK and go a little deeper, you can check out the on our GitHub repository.


🚧 Documentation Under Construction 🚧

The TNY-360 documentation is still under redaction.
For immediate instructions, please refer to :

Note : It's not out yet, but the Javascript SDK should look something like this:

example.js
import { TNY360 } from 'tny-360-sdk'

ROBOT_IP_ADDR = '192.168.4.1'  // Replace with your TNY-360 IP address

// Create an instance of the TNY-360
robot = TNY360()

try {
    robot.connect(ROBOT_IP_ADDR)
    console.log("Connected to TNY-360 successfully!")
} catch (e) {
    console.log(`Failed to connect to TNY-360: ${e}`)
}

robot.walk(x=0.2, y=0.0, yaw=0.0)  // Move forward
console.log("Walk command dispatched successfully!")

Any help with the Javascript SDK is very welcome, so if you want to contribute, please check out our GitHub repository and join the discussion in the issues or the Discord server!