uwgraphics / relaxed_ik_ros1

Public Repository for the Wrappers for ROS1 for RelaxedIK
MIT License
18 stars 21 forks source link

Compilation error due to ncollide2d and ncollide3d #7

Closed calebescobedo closed 2 years ago

calebescobedo commented 2 years ago

I'm trying to get the example simulation of CollisionIK working with the sawyer, but I can't get passed an error when compiling the core with cargo build in step 5.ii of the README.

The first error I get with ncollide2d is:

 error[E0310]: the parameter type `T` may not live long enough

   |
19 | impl<N: RealField, T> BroadPhasePairFilters<N, T> {
   |                    - help: consider adding an explicit lifetime bound...: `T: 'static`
...
68 |             .all(|&(_, ref f)| f.is_pair_valid(b1, b2))
   |                                  ^^^^^^^^^^^^^ ...so that the type `dyn BroadPhasePairFilter<N, T>` will meet its required lifetime bounds...
   |
note: ...that is required by this bound

This comes from ncollide2d-0.19.2/src/pipeline/broad_phase/broad_phase_pair_filter.rs:68:34

I'm using Ubuntu 18.04 LTS, cmake 3.23.2, and cargo 1.61.0

I also tried this on Ubuntu 20.04 and got the same error while trying to get my simulation set up. I updated my cmake version as noted in #1 and setup the git submodule with the info from #2.

Please let me know if you have any ideas of how to deal with this error.

yepw commented 2 years ago

I was having the same error. Rolling cargo back to version 1.58.1 solved the problem.

calebescobedo commented 2 years ago

Thanks @yepw that work for me.

I followed this pose for anyone looking to change their cargo version: https://stackoverflow.com/questions/69234898/downgrade-version-of-cargo

dashuaip commented 5 months ago

It is not useful now.