Matlab Linux
Compiler and Builder
Function Reference
-
The function reference file is located in
[DynamixelSDK folder]/matlab/m_basic_function/
Building and Running the Sample Code
DYNAMIXEL SDK example code for Python 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.
Import libraries
-
Click
Set Path
-
Click
Add with Subfolders...
-
Select
[DynamixelSDK folder]/c/include
-
Click
Add Folder...
-
Select
[DynamixelSDK folder]/c/build/linux64
(for x86 platform, select[DynamixelSDK folder]/c/build/linux32
)
Import function reference
-
Click
Add with Subfolders...
-
Select
[DynamixelSDK folder]/matlab
-
Click
Save
and thenClose
Run example
-
Make the port be able to be used
$ sudo chmod a+rw /dev/ttyUSB0
-
Click
Browse for folder
-
Select
[DynamixelSDK folder]/matlab
-
Double click
read_write.m
-
Adjust the values surrounded with red circle to proper value as shown in the comment. Then click
Run
in the Eclipse toolbox above. -
Console window will show the results