Hey guys @faichele @guparan @hugtalbot,
I was working on the control solution of a soft-robot in SOFA using RL (from python3).
Well, since SofaPython3 is a WIP so I thought maybe I can try to find a work around by using ros as a middleware for communication b/w my python script and Sofa simulation of a soft robot. I built SOFA from the source and after that I was trying to build the SofaROSConnector plugin to run my simulation. I followed the exact procedure from here (https://www.sofa-framework.org/community/doc/getting-started/build/linux/) and here (https://github.com/sofa-framework/SofaROSConnector).
We fixed a few things like all the paths in ZyROSConnector/CMakeLists.txt, added a variable CMAKE_MODULE_PATH= $HOME/sofa/src/applications/plugins/SofaROSConnector/cmake/Modules, and changed SofaROSConnector CmakeList since sofa_create_package is called with wrong arguments.
After all this, it still does not work and the error we got is:
Adding application runSofa
Write Plugin list at /home/my-machine/sofa/build/lib/plugin_list.conf.default
Configuring done
CMake Error: install(EXPORT "SoftRobotsTargets" ...) includes target "SoftRobots" which requires target "ZyROSConnector" that is not in any export set.
CMake Error: install(EXPORT "SoftRobotsTargets" ...) includes target "SoftRobots" which requires target "ZyROSConnectionManager" that is not in any export set.
I have no idea how to fix it.
Thank you for your help! and I really appreciate your work.
Hey guys @faichele @guparan @hugtalbot,
I was working on the control solution of a soft-robot in SOFA using RL (from python3).
Well, since SofaPython3 is a WIP so I thought maybe I can try to find a work around by using ros as a middleware for communication b/w my python script and Sofa simulation of a soft robot. I built SOFA from the source and after that I was trying to build the SofaROSConnector plugin to run my simulation. I followed the exact procedure from here (https://www.sofa-framework.org/community/doc/getting-started/build/linux/) and here (https://github.com/sofa-framework/SofaROSConnector).
We fixed a few things like all the paths in ZyROSConnector/CMakeLists.txt, added a variable CMAKE_MODULE_PATH= $HOME/sofa/src/applications/plugins/SofaROSConnector/cmake/Modules, and changed SofaROSConnector CmakeList since sofa_create_package is called with wrong arguments.
After all this, it still does not work and the error we got is:
Adding application runSofa
Write Plugin list at /home/my-machine/sofa/build/lib/plugin_list.conf.default
Configuring done
CMake Error: install(EXPORT "SoftRobotsTargets" ...) includes target "SoftRobots" which requires target "ZyROSConnector" that is not in any export set.
CMake Error: install(EXPORT "SoftRobotsTargets" ...) includes target "SoftRobots" which requires target "ZyROSConnectionManager" that is not in any export set.
I have no idea how to fix it.
Thank you for your help! and I really appreciate your work.