Creating a wrapper to a C++ robot driver library that was compiled with VS2010
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I want to control a robot via its C++ driver but idealy developing the control using Matlab/Simulink. I have already verified the driver by itself and now I am looking for an avenue to communicate from Matlab/Simulink so I can send commands to the robot. The problem I se is that the library is compiled using Visual Studio C++ 2010 and it is not possible to compile with a newer version(The robot is very old) so if I understand the documentation correctly, I can not use the:
clibgen.generateLibraryDefinition(HeaderFiles,'Libraries',SharedLibrary);
clibgen.buildInterface(HeaderFiles,'Libraries',SharedLibrary);
because to do this I need the same compiler as the library was compiled with but Visual Studio C++ 2010 is not supported by Matlab anymore. I also tried
loadlibrary(libname,hfile)
but there I get an error which I think is the result that I have the source code inside a .sln Visual Studio solution. But I am also not sure if this should be working anyways becaue its made for C libraries instead of C++, is that correct?
The documentation on C++ Wrappers seems to be a bit sparse. Can you guide me to the correct ressources to figure out a way to use the c++ library?
Best Regards
Martin
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Robotics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!