Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RobCoGen can generate all cpp files except for jacobians for kinova 6 axis robot #196

Open
mustang66ytz opened this issue Jul 4, 2021 · 4 comments

Comments

@mustang66ytz
Copy link

When I was following the instructions to generate cpp code for Kinova 6-axis robot, it always fails when generating the jacobians.cpp.

I wander is this caused by the long processing time? If so, where should I change the Maxima timeout parameter and give it a try?

I would be very thankful to any suggestions because I have been stuck here for quite a while haha!

Exception in thread "main" java.lang.RuntimeException: Maxima timeout exception
at iit.dsl.maxdsl.utils.MaximaRunner.run(Unknown Source)
at iit.dsl.maxdsl.utils.MaximaConversionUtils.getMatrix(Unknown Source)
at iit.dsl.coord.generator.maxima.converter.MaximaConverter.toText(Unknown Source)
at iit.dsl.coord.generator.maxima.converter.MaximaConverter.process(Unknown Source)
at iit.dsl.generator.maxima.Converter.process(Unknown Source)
at iit.dsl.generator.cpp.kinematics.Jacobians.localClassesDefinitions(Unknown Source)
at iit.dsl.generator.cpp.kinematics.Jacobians.sourceFile(Unknown Source)
at iit.dsl.generator.cpp.Generator.generateJacobiansFiles(Unknown Source)
at iit.robcogen.KinDSLWrapper.generate(Unknown Source)
at iit.robcogen.KinDSLWrapper.generate(Unknown Source)
at iit.robcogen.Generator.main(Unknown Source)

Best regards

@markusgft
Copy link
Member

Hi, in the version of robcogen that we are using in the CT, robcogen should generate the -impl headers rather than *.cpp files. Are you sure you are using the linked version of robcogen, please dont use the current main version. In case of further problems, I would recommend reaching out to the developer of robcogen, Marco Frigerio.

@mustang66ytz
Copy link
Author

Hi, thanks for your advice!!
I followed the RobCoGen official tutorial and used the RobCoGen-0.5.2 version, could I know what is the "linked version" that you are referring to?
Best regards

@markusgft
Copy link
Member

markusgft commented Jul 6, 2021 via email

@mustang66ytz
Copy link
Author

@markusgft It turns out that since my urdf model consists of multiple links, whose centers of mass have translation and orientation offset relative to their parent links. Therefore, the kindsl format model converted from the urdf format model generate a few more intermediate link frames on top of the original number of links, which results in a kinematic chain too long to be properly handled by Maxima.
I think what I need to do next is to figure out how to describe the model properly to minimize the extra DOFs got involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants