Missing Function in ChCCollisionInfo.h

18 views
Skip to first unread message

Nicholas Richmond

unread,
Mar 19, 2018, 12:55:54 PM3/19/18
to ProjectChrono
I'm working through some of the demos after downloading the most recent Windows installer package (Precompiled Project Chrono 3.0.0). I can get demo_FEA_basic.cpp to build and run, but when I try to build demo_FEA_contacts.cpp, I received an error stating that: 'SetDefaultEffectiveCurvatureRadius': is not a member of 'chrono::collision::ChCollisionInfo'

When I checked ChCollisionInfo.h (attached), the SetDefaultEffectiveCurvatureRadius function isn't defined. I noticed that the ChCollisionInfo.h available through the git repository does contain the 'SetDefaultEffectiveCurvatureRadius' function. It might make sense to build new precompiled binaries with the updated code such that the examples provided in the Tutorials are able to run with the precompiled Chrono packages.
ChCCollisionInfo.h

Radu Serban

unread,
Mar 19, 2018, 1:59:32 PM3/19/18
to projec...@googlegroups.com

Hi Nicholas,

The function SetDefaultEffectiveCurvatureRadius was added to the code after 3.0.0 was released. 

The issues appears to be that you are trying to build a demo from the current development branch against the Chrono libraries from the 3.0.0 release.  How/where did you get demo_FEA_contacts.cpp?

--Radu


On 3/19/2018 5:55 PM, Nicholas Richmond wrote:
I'm working through some of the demos after downloading the most recent Windows installer package (Precompiled Project Chrono 3.0.0). I can get demo_FEA_basic.cpp to build and run, but when I try to build demo_FEA_contacts.cpp, I received an error stating that: 'SetDefaultEffectiveCurvatureRadius': is not a member of 'chrono::collision::ChCollisionInfo'

When I checked ChCollisionInfo.h (attached), the SetDefaultEffectiveCurvatureRadius function isn't defined. I noticed that the ChCollisionInfo.h available through the git repository does contain the 'SetDefaultEffectiveCurvatureRadius' function. It might make sense to build new precompiled binaries with the updated code such that the examples provided in the Tutorials are able to run with the precompiled Chrono packages.
--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To post to this group, send email to projec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nicholas Richmond

unread,
Mar 19, 2018, 3:09:25 PM3/19/18
to ProjectChrono
Hi Radu,

That makes sense. I was using the demo_FEA_contact.cpp from the Tutorials section of this site. Indeed, it looks like the demo uses code in the develop branch of Chrono. I compiled Chrono from the develop branch, and then the demo_FEA_contact.cpp built and ran perfectly.
Reply all
Reply to author
Forward
0 new messages