DRCL-USC / Hector_Simulation

Simulation Software (ROS/MATLAB) for HECTOR Humanoid Robot Locomotion Control/Bipedal Locomotion Control/Force-and-moment-based MPC
https://youtu.be/NcW-NFwjMh0
Other
370 stars 115 forks source link

ROS platform install unscuessfull , eigen problem #5

Closed wei1224hf closed 10 months ago

wei1224hf commented 10 months ago

我安装的是从官网下载的最新的 eigen 3.4 , 编译, 安装的 这是编译时产生的日志:

` catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release Base path: /home/ubuntu/catkin_ws Source space: /home/ubuntu/catkin_ws/src Build space: /home/ubuntu/catkin_ws/build Devel space: /home/ubuntu/catkin_ws/devel Install space: /home/ubuntu/catkin_ws/install

Running command: "cmake /home/ubuntu/catkin_ws/src -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release -DCATKIN_DEVEL_PREFIX=/home/ubuntu/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/ubuntu/catkin_ws/install -G Unix Makefiles" in "/home/ubuntu/catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/ubuntu/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/noetic -- This workspace overlays: /opt/ros/noetic -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/ubuntu/catkin_ws/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- 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/python3 (found version "3.8.10") -- Using Python nosetests: /usr/bin/nosetests3 -- catkin 0.8.10 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 6 packages in topological order: -- ~~ - hector_description -- ~~ - unitree_legged_msgs -- ~~ - unitree_legged_control -- ~~ - hector_control -- ~~ - unitree_controller -- ~~ - unitree_gazebo -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'hector_description' -- ==> add_subdirectory(hector_description) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- +++ processing catkin package: 'unitree_legged_msgs' -- ==> add_subdirectory(unitree_ros/unitree_legged_msgs) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- unitree_legged_msgs: 11 messages, 0 services -- +++ processing catkin package: 'unitree_legged_control' -- ==> add_subdirectory(unitree_ros/unitree_legged_control) -- +++ processing catkin package: 'hector_control' -- ==> add_subdirectory(hector_control) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy CMake Error at /usr/share/dart/cmake/DARTFindEigen3.cmake:14 (message): Eigen3 is found but >= 3.2.92 (3.3~beta1) is required Call Stack (most recent call first): /usr/share/dart/cmake/dart_dartComponent.cmake:6 (include) /usr/share/dart/cmake/DARTConfig.cmake:63 (include) /usr/share/dart/cmake/DARTConfig.cmake:123 (dart_traverse_components) /usr/share/dart/cmake/DARTConfig.cmake:171 (dart_package_init) /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:166 (find_package) hector_control/CMakeLists.txt:23 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeError.log". `

wei1224hf commented 10 months ago

我修改了 catkin_ws/src 里 CMakeList.txt 里的内容, 来打印当前的 eigen 版本:

find_package(Eigen3 REQUIRED) message("Eigen version: ${Eigen3_VERSION}")

然后它的版本输出:

Eigen version: 3.4.90

所以我的 eigen 版本要求是匹配的

wei1224hf commented 10 months ago

修改 /usr/share/dart/cmake/DARTFindEigen3.cmake 14 , 将 EIGEN3_VERSION_STRING 改为 Eigen3_VERSION 即可