Open lukeopteran opened 3 years ago
@lukeopteran the error happens within rpg_quadrotor_control when computing the polynomial trajectory. So I would suggest you check this out and see if you might need to adapt anything for the more recent Eigen version. That project as well as Flightmare are optimized for Ubuntu 18.04 and Eigen 3.3.4.
Hi I am getting an assertion every time I run the racing.launch example. This only occurs running on Ubuntu 20.04LTS and ROS Noetic. It runs fine on Ubuntu 18.04 ROS Melodic. All using the default / example trajectory.
Here is the gdb backtrace:
[UnityBridge] Initializing ZMQ connection! [UnityBridge] Initializing ZMQ connections done! racing: /usr/local/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h:180: Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType Eigen::DenseCoeffsBase<Derived, 0>::operator()(Eigen::Index) const [with Derived = Eigen::Matrix<double, -1, 1>; Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType = const double&; Eigen::Index = long int]: Assertion `index >= 0 && index < size()' failed.
Thread 1 "racing" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt
0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
1 0x00007ffff7691859 in __GI_abort () at abort.c:79
2 0x00007ffff7691729 in __assert_fail_base (fmt=0x7ffff7827588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7ffff7ef338c "index >= 0 && index < size()",
3 0x00007ffff76a2f36 in __GI___assert_fail (assertion=0x7ffff7ef338c "index >= 0 && index < size()",
4 0x00007ffff7ecec4d in polynomial_trajectories::minimum_snap_trajectories::implementation::generateFVector(polynomial_trajectories::PolynomialTrajectorySettings const&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, int) () from /home/luke/catkin_ws/devel/lib/libpolynomial_trajectories.so
5 0x00007ffff7ed1ecf in polynomial_trajectories::minimum_snap_trajectories::generateMinimumSnapRingTrajectory(Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, polynomial_trajectories::PolynomialTrajectorySettings const&) () from /home/luke/catkin_ws/devel/lib/libpolynomial_trajectories.so
6 0x00007ffff7ed6cd5 in polynomial_trajectories::minimum_snap_trajectories::generateMinimumSnapRingTrajectory(Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, polynomial_trajectories::PolynomialTrajectorySettings const&, double, double, double) () from /home/luke/catkin_ws/devel/lib/libpolynomial_trajectories.so
7 0x000055555556c4a3 in main ()
I cannot get gdb to give me information from the Eigen matrices so will have to print it out...
I have tried multiple different libraries:
Any help (how to debug?) much appreciated, the Unity / graphics runs best in Ubuntu 20.04 so would prefer not to downgrade.
Thanks