LCAS / spqrel_navigation

A light-weight navigation framework tailored for the Pepper Robot
MIT License
28 stars 19 forks source link

Core generated when executing "pepper_localizer" #8

Open raulperula opened 6 years ago

raulperula commented 6 years ago

Hello,

I have installed the release v1.2 following the steps in the wiki but when I try to execute any of the executables generated I always get an error.

For the next executables (dijkstra_test, pepper_localizer, pepper_planner, pepper_planner_gui), this is the error:

loading image from file: terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
Abortado (`core' generado)

However, for the "distance_map_test" executable, I get next different error even when the opencv steps have been followed:

OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows,
GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then
re-run cmake or configure script) in cvNamedWindow, file opencv-2.4.9/modules/highgui/src/window.cpp, line 483
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/raul/Descargas/opencv-2.4.9/modules/highgui/src/window.cpp:483: error: (-2) The
  function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are
  on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in
  function cvNamedWindow
Abortado (`core' generado)

Any help would be appreciated.

Best regards, Raúl

raulperula commented 6 years ago

Ok, reviewing closed issues I found a solution for the "localizer" and "planner" executables.

Same error for the other.

mtlazaro commented 6 years ago

Dear Raúl,

For the first error, I've seen you checked the related issue.

For the second, are you trying to run the code in the Pepper or from an external Linux machine? Visualization tools from OpenCV cannot be used when running the code in the Pepper (cross-compiled).

Best, Mayte

raulperula commented 6 years ago

Hi @mtlazaro , I am running all executables in an external Linux machine until now.