Access EOM/ ODE to perform FWD outside Opensim

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Access EOM/ ODE to perform FWD outside Opensim

Post by Dimitar Stanev » Sun Feb 24, 2019 11:58 am

I suppose you are using my mex wrapper, which is based on an older version of OpenSim that has different CMake configuration.

You should place the register function in the beginning of the program so that the object is recognized afterwards.

Tags:

User avatar
Lars Boers
Posts: 14
Joined: Thu Sep 06, 2018 2:23 am

Re: Access EOM/ ODE to perform FWD outside Opensim

Post by Lars Boers » Tue Feb 26, 2019 1:55 pm

Hi Dimitar, thanks for all the help so far,

I checked out the repo you sent me, however my OpenSim CMakeList was already the same as this code so I left it as is.

As of right now, mexplus.h isn't recognized (fatal error C1083: Cannot open include file: 'mexplus.h': No such file or directory), and my personal links/ invclusion functions don't seem to change this. Do you have any idea how to add mexplus to the path within the CMake code?

Lastly, when I input the CoordinatorActuator registry code into the EngineMatlab.h, it gives the following errors:

c:\users\lsboe\documents\opensimmatlab\src\matlab\EngineMatlab.h(20): error C2653: 'Object': is not a class or namespace c:\users\lsboe\documents\opensimmatlab\src\matlab\EngineMatlab.h(20): error C3861: 'CoordinateActuator': identifier not found
c:\users\lsboe\documents\opensimmatlab\src\matlab\EngineMatlab.h(20): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Could you tell me why this error is generated?
Regards,

Lars Boers

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Access EOM/ ODE to perform FWD outside Opensim

Post by Dimitar Stanev » Wed Feb 27, 2019 1:24 am

Hi,

These errors have nothing to do with OpenSim. I suggest that you read more about C++ and CMake building process. Read about compilation, linking, dynamic linking, how to find external headers, external static libraries for the linking, C++ namespace, C++ basics, etc. We may be able to help you resolve this problem, but you will run into similar problems and will not know how to resolve them. Please note that it is very difficult to find what is missing without providing the source code
fatal error C1083: Cannot open include file: 'mexplus.h': No such file or directory
Probably, CMake didn't find the Matlab directories correctly.
'Object': is not a class or namespace
Maybe: OpenSim::Object:: ...

Kind regards

POST REPLY