kjyv / FloBaRoID

Framework for dynamical system identification of floating-base rigid body tree structures
GNU Lesser General Public License v3.0
61 stars 26 forks source link

Trajectory file not generated #1

Closed mouhyemen closed 6 years ago

mouhyemen commented 6 years ago

I installed all dependencies and individually tested if Python can import the libraries.

For the trajectory script (others as well), the trajectory file is not being generated. I am also getting warnings such as: [WARNING] The iDynTree::Regressors::DynamicsRegressorGenerator class still needs to be migrated to [WARNING] iDynTree native classes. To continue to use the iDynTree::HighLevel::DynamicsComputations class in the [WARNING] bindings in the current form, please compile iDynTree with the IDYNTREE_USES_KDL CMake option. [WARNING] The iDynTree::Regressors::DynamicsRegressorGenerator class still needs to be migrated to [WARNING] iDynTree native classes. To continue to use the iDynTree::HighLevel::DynamicsComputations class in the [WARNING] bindings in the current form, please compile iDynTree with the IDYNTREE_USES_KDL CMake option

Is the script dependent on this warning and that's why none of the trajectories are generated?? How did you solve this issue?

kjyv commented 6 years ago

Well, iDynTree was originally based on KDL and is still in the process of being modified to use only it's own code. As the iDynTree::Regressors::DynamicsRegressorGenerator class is used to generate the regressor and this code is still based on KDL, as the warning explains, you have to compile iDynTree with KDL. You can do this conveniently by using the mentioned iDynTree superbuild. Are these the only errors you receive? Please post the full output of e.g. the trajectory script if compiling with the IDYNTREE_USES_KDL flag does not help.

mouhyemen commented 6 years ago

These are all the options i get while compiling iDynTree. Where can I get enable the flag for IDYNTREE_USES_KDL? Note: I also tried CoDyCo and did not find any KDL flags. idyntree_ccmake

These are the warnings I get after running trajectory script: trajectory_warnings

I went through the code identification/model.py and

# create generator instance and load model
self.generator = iDynTree.DynamicsRegressorGenerator()
ret = self.generator.loadRobotAndSensorsModelFromFile(urdf_file)

if not ret:
      sys.exit()

The system exits because ret is False.

mouhyemen commented 6 years ago

Hi,

Did you get a chance to look at the warnings? Still waiting to hear back.

On 28 Mar 2018, at 8:28 am, Stefan Bethge notifications@github.com wrote:

Well, iDynTree was originally based on KDL and is still in the process of being modified to use only it's own code. As the iDynTree::Regressors::DynamicsRegressorGenerator class is used to generate the regressor and this code is still based on KDL, as the warning explains, you have to compile iDynTree with KDL. Are these the only errors you receive? Please post the full output of e.g. the trajectory script if compiling with the IDYNTREE_USES_KDL flag does not help.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

traversaro commented 6 years ago

Hi @mouhyemen , let me know if the modifications to idyntree-superbuild mentioned in https://github.com/robotology/idyntree/issues/427 helped you in solving this issue.

mouhyemen commented 6 years ago

Yes, issue solved.

kjyv commented 6 years ago

Great! I'm aware that the installation process is a bit of an effort. Also thanks for the help @traversaro ;) Has the preferred method of installing iDynTree changed, especially considering the KDL dependency?