Page 1 of 1

Plugin

Posted: Sat Nov 19, 2016 8:02 am
by eskimo
Hello,

I tried to create the plugin controller (https://github.com/msdemers/opensim-reflex-controllers), but the project is not finalized successfully. The following error appears:


1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
1> Checking Build System
1> CMake does not need to re-run because C:/OpenSim 3.3/build/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: Libraries - ReflexControllersPlugin, Configuration: Release Win32 ------
2> Building Custom Rule C:/OpenSim 3.3/Code/opensim-reflex-controllers-master/plugin/CMakeLists.txt
2> CMake does not need to re-run because C:\OpenSim 3.3\build\CMakeFiles\generate.stamp is up-to-date.
2> DelayedPathReflexController.cpp
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(126): error C2039: 'computeControls': is not a member of '`global namespace''
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(127): error C2270: 'computeControls': modifiers not allowed on nonmember functions
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(133): error C3861: 'getActuatorSet': identifier not found
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(156): error C2065: 'muscleStretchVelocityHistory': undeclared identifier
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(156): error C2228: left of '.get' must have class/struct/union
2> C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(156): note: type is 'unknown-type'
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(156): error C2228: left of '.addPoint' must have class/struct/union
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(159): error C3861: 'get_delay': identifier not found
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(159): error C2065: 'muscleStretchVelocityHistory': undeclared identifier
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(159): error C2228: left of '.get' must have class/struct/union
2> C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(159): note: type is 'unknown-type'
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(159): error C2228: left of '.getXValues' must have class/struct/union
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(164): error C3861: 'get_gain': identifier not found
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(164): error C2065: 'muscleStretchVelocityHistory': undeclared identifier
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(164): error C2228: left of '.get' must have class/struct/union
2> C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(164): note: type is 'unknown-type'
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(164): error C2228: left of '.calcValue' must have class/struct/union
2>C:\OpenSim 3.3\Code\opensim-reflex-controllers-master\plugin\DelayedPathReflexController.cpp(164): error C3861: 'get_delay': identifier not found
2> MuscleFiberStretchController.cpp
2> MusclePathStretchController.cpp
2> ReflexController.cpp
2> RegisterTypes_osimPlugin.cpp
2> Generating Code...
3>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
3> Building Custom Rule C:/OpenSim 3.3/Code/opensim-reflex-controllers-master/plugin/CMakeLists.txt
3> CMake does not need to re-run because C:\OpenSim 3.3\build\CMakeFiles\generate.stamp is up-to-date.
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




Has anyone ever built this plugin?

thank you , Ricardo Lameira

Re: Ricardo Lameira

Posted: Sun Nov 20, 2016 9:29 am
by mitkof6
You probably have to configure the the project correctly through CMake. Read the instructions in the repository and make sure that cmake finds OpenSim 3.2. correctly.

Re: Ricardo Lameira

Posted: Sun Nov 20, 2016 3:54 pm
by eskimo
I read the instructions, and I think the cmake was well configured.