Skip to content
Discussion options

You must be logged in to vote

Does that mean that I have to do a warm-up first call to the pinocchio::computeDistance to avoid that multiple threads execute the first-time-memory-allocation in parallel?

It's only mandatory if you evaluate the same collision pair in two different thread. I don't see the use case for that.
If you want to be sure the first iteration of distance detection run as fast as the next one, warm up is a good idea.

I see in that implementation though, that separate model and data objects are used. Is this required, or can the same model / data across the threads?

computeCollisions will write in data. So if you want to avoid a race condition, you should avoid using same data in different threads.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jorisv
Comment options

Answer selected by lukas-ramlab
@lukas-ramlab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants