HKUST-Aerial-Robotics / EPSILON

MIT License
556 stars 202 forks source link

Missing Dependencies for spatiotemporal_semantic_corridor #2

Open elwaaamr opened 3 years ago

elwaaamr commented 3 years ago

Hi, According to the CMakeLists.txt in ssc_planner, some packages are still missing such as:

Also, while I tried to build the workspace, the following errors appeared:

(base) amr@amr-G5-5587:~/catkin_ws$ catkin_make
Base path: /home/amr/catkin_ws
Source space: /home/amr/catkin_ws/src
Build space: /home/amr/catkin_ws/build
Devel space: /home/amr/catkin_ws/devel
Install space: /home/amr/catkin_ws/install
####
#### Running command: "cmake /home/amr/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/amr/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/amr/catkin_ws/install -G Unix Makefiles" in "/home/amr/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/amr/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/amr/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/amr/catkin_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/amr/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.28
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 11 packages in topological order:
-- ~~  - playgrounds
-- ~~  - common
-- ~~  - vehicle_model
-- ~~  - forward_simulator
-- ~~  - motion_predictor
-- ~~  - vehicle_msgs
-- ~~  - phy_simulator
-- ~~  - semantic_map_manager
-- ~~  - route_planner
-- ~~  - behavior_planner
-- ~~  - ssc_planner
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'playgrounds'
-- ==> add_subdirectory(core/playgrounds)
-- +++ processing catkin package: 'common'
-- ==> add_subdirectory(core/common)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread (found version "3.0.0") 
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  core/common/cmake/FindGlog.cmake:40 (find_package_handle_standard_args)
  core/common/CMakeLists.txt:24 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/amr/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/amr/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
(base) amr@amr-G5-5587:~/catkin_ws$ catkin_make
Base path: /home/amr/catkin_ws
Source space: /home/amr/catkin_ws/src
Build space: /home/amr/catkin_ws/build
Devel space: /home/amr/catkin_ws/devel
Install space: /home/amr/catkin_ws/install
####
#### Running command: "cmake /home/amr/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/amr/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/amr/catkin_ws/install -G Unix Makefiles" in "/home/amr/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/amr/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/amr/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/amr/catkin_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/amr/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.28
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 11 packages in topological order:
-- ~~  - playgrounds
-- ~~  - common
-- ~~  - vehicle_model
-- ~~  - forward_simulator
-- ~~  - motion_predictor
-- ~~  - vehicle_msgs
-- ~~  - phy_simulator
-- ~~  - semantic_map_manager
-- ~~  - route_planner
-- ~~  - behavior_planner
-- ~~  - ssc_planner
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'playgrounds'
-- ==> add_subdirectory(core/playgrounds)
-- +++ processing catkin package: 'common'
-- ==> add_subdirectory(core/common)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  core/common/cmake/FindGlog.cmake:40 (find_package_handle_standard_args)
  core/common/CMakeLists.txt:24 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/amr/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/amr/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
(base) amr@amr-G5-5587:~/catkin_ws$ 
WenchaoDing commented 3 years ago

Behavior planner is included, please carefully check out this repo. The dependency information in the original repo https://github.com/HKUST-Aerial-Robotics/spatiotemporal_semantic_corridor is outdated. Please refer to the ssc_planner in this repo for the latest information. They are identical.

WenchaoDing commented 3 years ago

As for the complile guidance, we are pending a tutorial if you do not know how to complie.. Even without the tutorial, it may be still easy to compile the repo. The error message you provided is actually clear. You may install glog to get rid of thie error.

ShuxuanSheng commented 3 years ago

Hi, I also encounter compilation problems. When I compile, the following errors occur, even if I have installed the "common" package. Can you give me a detailed document on how to compile and use ssc_ planner. Thank you very much.

ssx@ssx-pc:~/ssc_planner_ws$ catkin_make
Base path: /home/ssx/ssc_planner_ws
Source space: /home/ssx/ssc_planner_ws/src
Build space: /home/ssx/ssc_planner_ws/build
Devel space: /home/ssx/ssc_planner_ws/devel
Install space: /home/ssx/ssc_planner_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ssx/ssc_planner_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ssx/ssc_planner_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
-- This workspace overlays: /opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ssx/ssc_planner_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - ssc_planner
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'ssc_planner'
-- ==> add_subdirectory(ssc_planner)
CMake Error at /usr/local/share/common/cmake/commonConfig.cmake:173 (message):
  Project 'ssc_planner' tried to find library 'hkust_pl_common'.  The library
  is neither a target nor built/installed properly.  Did you compile project
  'common'? Did you find_package() it before the subdirectory containing its
  code is included?
Call Stack (most recent call first):
  ssc_planner/CMakeLists.txt:27 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/ssx/ssc_planner_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ssx/ssc_planner_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
ssx@ssx-pc:~/ssc_planner_ws$ 
elwaaamr commented 3 years ago

As for the complile guidance, we are pending a tutorial if you do not know how to complie.. Even without the tutorial, it may be still easy to compile the repo. The error message you provided is actually clear. You may install glog to get rid of thie error.

I am sure a tutorial will be a good option for compiling, and also to run the whole thing in order to get you results as video you attached.

elwaaamr commented 3 years ago

Could you please tell me that you PC/Laptop specification that makes the simulator works with out delaying or hanging out?