Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with control of Dynamixel AX-12A by using MatLab #34

Closed
Y-Grigoriy opened this issue Sep 29, 2016 · 7 comments
Closed

Problem with control of Dynamixel AX-12A by using MatLab #34

Y-Grigoriy opened this issue Sep 29, 2016 · 7 comments
Assignees

Comments

@Y-Grigoriy
Copy link

Y-Grigoriy commented Sep 29, 2016

I plan to work with Dynamixel AX-12A, which is connected to computer (Win64) by USB2Dynamixel. I use information from Dynamixel SDK Manual (item 4.6) for adding libraries in MatLab R2014a (it's files for DynamixelSDK-3.4.1), but when I run file "read_write.m", I got error:

Index exceeds matrix dimensions.

Error in
loadlibrary>getLoadlibraryCompilerConfiguration
(line 497)
compilerConfiguration=compilerConfiguration(1);
%unix machines return c and cpp
compilers here

Error in loadlibrary (line 253)
[thunk_build_fn,preprocess_command]=getLoadlibraryCompilerConfiguration(ccinclude,header,headername,compilerConfiguration);

Error in read_write (line 60)
[notfound, warnings] =
loadlibrary(lib_name,
'dynamixel_sdk.h', 'addheader',
'port_handler.h', 'addheader',
'packet_handler.h');

Also I tried to add library as it's written in ROBOTIS e-Manual v1.24.00, but I have simular error.
Could you help me, what should I do?

@Y-Grigoriy
Copy link
Author

It was problem with compiler, which I solved by installing Microsoft Visual Studio Professional 2013. On some reason I couldn't use Microsoft Visual Studio 2015.

@LeonJung
Copy link
Contributor

Hi Grigoriy
Sorry for my late reply

You've tried in a correct way, that's so thankful.

But I will make your computer be able to use with MS VS 2015 built file.
I should edit something in the source.
Please try and let me know if modified source works after all :)

@LeonJung
Copy link
Contributor

I just uploaded modified source on the develop branch.
please let me know whether it solves the problem you told

@Y-Grigoriy
Copy link
Author

Leon, thank you, but I will try your solution later. Do you know, it is possible to control in MatLab Dynamixel motor which is connected to computer by using Arduino?

@LeonJung
Copy link
Contributor

Hi

If you are going to use your arduino board as a signal converter that makes TTL/RS485 signal,
I don't know about how to port the arduino with your Laptop in MATLAB, but yes you can do.

When you are going to use it as a Dynamixel controller, and it just gets the order from your Laptop, there is no Dynamixel Library that can be used with Arduino IDE, so you can't perhaps,
or make the Dynamixel Library yourself by referring the source built for OpenCM IDE (See at support.robotis.com/en), then it would be OK.

Plus, I am now working on developing new Dynamixel Library for ArduinoIDE using my DynamixelSDK. So, if you are interested in, how about waiting nearly 2 weeks? or if you are in urgent, keep doing above.

@Y-Grigoriy
Copy link
Author

Thanks a lot! Sure, I can wait.

@LeonJung
Copy link
Contributor

LeonJung commented Nov 4, 2016

Hi,

I just finished to make the DynamixelSDK for OpenCR, which is a next version of OpenCM but can be used with ROS serial in ROS 2.0. Anyway, the OpenCR is also able to be used as Arduino Board but you can just think that this is kinda Arduino board specialized for Dynamixel.

Send me e-mail to rwjung@robotis.com so that I can send you the file.
We'll upload onto the GIthub when all the work is finished

I hope it can work well :)

@LeonJung LeonJung mentioned this issue Nov 29, 2016
7 tasks
@LeonJung LeonJung self-assigned this Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants