Edit on GitHub

Library Setup

Java Linux

Compiler and Builder

Required Packages


Java Native Access (JNA)

Function Reference

Building and Running the Sample Code

The Dynamixel SDK example code for Java uses the library files(.so for Linux) built in C language.

Each released Dynamixel SDK have latest library files in [DynamixelSDK folder]/c/build/[linuxXX]/libdxl_xYY_c.so which should be built by its own source code.

2.1 Make Java Project

2.2 Import function reference

(for x86 platform, select [DynamixelSDK folder]/java/dynamixel_functions_java/linux32)

2.3 Import DynamixelSDK library

2.4 JNA 를 import 하기

3. Run example

[Terminal] $ sudo chmod a+rw /dev/ttyUSB0