KinematicUnitService error when Armar3Simulation is running
Describe the bug
When the Armar3Simulation is running in ArmarX, armarest will crash upon initialising the KinematicUnitService.
Steps to Reproduce
- Start Armarx, open the GUI
- open the Armar3Simulation Scenario and start it
- start armarest
Screenshots/Video
in the KinematicUnitService, the method get_robot_filename
is called. This method uses the getArmarXPackages
method of the KinematicUnitInterface. There, the helper FindPackageX.cmake
is used which internally makes use of the find_package
command of cmake. One important detail here is that the FindPackage helper is beeing run with cmake -P ...
which means in script-mode
. When searching in the IVT
package (which is a dependecy of the Armar3Sim), this error occurs. The reason for the error is simple: the add_library
command is by design not available / supported when using cmake in script-mode.
Edited by Julian Tusch