Creating a wrapper to a C++ robot driver library that was compiled with VS2010
1 次查看(过去 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 中查找有关 ROS Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!