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
Plugin
- Ricardo Lameira
- Posts: 17
- Joined: Tue Apr 12, 2016 1:43 pm
Plugin
Last edited by Ricardo Lameira on Fri Nov 25, 2016 7:37 am, edited 1 time in total.
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Ricardo Lameira
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.
- Ricardo Lameira
- Posts: 17
- Joined: Tue Apr 12, 2016 1:43 pm
Re: Ricardo Lameira
I read the instructions, and I think the cmake was well configured.