Open tlpss opened 2 years ago
Did you by any chance solve that problem? I am using a hc10 and a zedm on ubuntu 20.04, python3.8.10, noetic and i am having the same problem.
Apparently the error happens in handeye_solver_default.cpp near line 30x "python_value = PyEval_CallObject(python_func_add_sample, python_args_sample[i]);" (at least that's what my line-by-line-print-debug-attempt gave me ...)
Hi @AexMm I found the same the same line caused the issue. I built all the dependencies from source (https://github.com/crigroup/handeye and https://github.com/crigroup/baldor) and found that the shutdown was caused by a segmentation fault in the BLAS library somehow for me.
the call stack (from the line you quote) at the moment of the segmentation fault is:
Running the operation with the same arguments in my CLI worked just fine, so I was a little clueless about what was going on.
At that point I abandoned my search for now (since I wanted to get it running in ROS2 anyways).
Feel free to let me know if you were able to find the issue.
Hello again @tlpss. my path also led me to the numpy.dot() problem and running the same stuff on the CLI seemed way more cooperative that the handeye_calibration part.
When i removed libopenblas* (0.3.8) from my system to install it manually (0.3.9) like this comment (https://github.com/mlpack/mlpack/issues/2437#issue-628160038) suggested, i found the handeye calibration working again.
So apparently openblas is the troublemaker in this case. I cannot confirm if the update to 0.3.9 really helps, but i can confirm the trace to openblas.
@AexMm , thanks for your update! I'll try this in the next days and will keep you posted.
When i removed libopenblas* (0.3.8) from my system to install it manually (0.3.9) like this comment (https://github.com/mlpack/mlpack/issues/2437#issue-628160038) suggested, i found the handeye calibration working again.
@AexMm, thanks for your fix. Changing the version of libopenblas did the trick for us as well.
Thanks @AexMm for the fix. It also works for me. Here are the steps that I followed to uninstall existing OpenBlas and reinstall it from the source for version 0.3.23:
# uncomment the next line to remove existing openblas. Do this with caution!!
# sudo apt -y remove libopenblas*
# download openblas from official github page
wget https://github.com/xianyi/OpenBLAS/releases/download/v0.3.23/OpenBLAS-0.3.23.tar.gz
tar xf OpenBLAS-0.3.23.tar.gz
cd OpenBLAS-0.3.23/
# Make then install
make
make install
we are trying to use moveit_calibration for eye2hand but RVIZ keeps shutting down as soon as we enter the 5th sample (after which the solver is executed). However there is no logging information to provide a clue on what is going wrong.
This is the trace for RVIZ:
We use a ZED2i camera with the provided ros wrapper. The robot is a UR3e, which is controlled using the Universal Robotics ROS drivers.
Ubuntu 20.04 is used with Noetic. We build moveit_calibration from source after installing moveit using apt.