Open frieden-ls opened 1 year ago
the same problem
the same problem
the same problem.how to solve it?
I have spent my whole day to fix that, but nothing happened, still the same problem
the same problem.Have you solved it?
mkdir -p ~/ocs2_ws/src && cd ~/ocs2_ws/src
# Clone ocs2
git clone git@github.com:leggedrobotics/ocs2.git
# Clone pinocchio
git clone --recurse-submodules https://github.com/leggedrobotics/pinocchio.git
# Clone hpp-fcl
git clone --recurse-submodules https://github.com/leggedrobotics/hpp-fcl.git
# install dependencies
sudo apt install liburdfdom-dev liboctomap-dev libassimp-dev
sudo apt install libeigen3-dev
# Change ros-version accordingly
sudo apt install -y ros-noetic-pybind11-catkin ros-noetic-grid-map-core ros-noetic-grid-map-msgs libopencv-dev libeigen3-dev libgmp-dev libmpfr-dev libboost-all-dev
git clone https://github.com/leggedrobotics/elevation_mapping_cupy.git
git clone https://github.com/ANYbotics/grid_map.git
cd ~/ocs2_ws
rosdep install --from-path src --ignore-src -ry
catkin build -DCMAKE_BUILD_TYPE=Release
Try running the above install and build instructions and see if it's working
Thank you so much for helping me, after running the code above. I got these error messages:
Errors << grid_map_msgs:cmake /root/ocs2_ws/logs/grid_map_msgs/build.cmake.001.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "std_msgs" with any
of the following names:
std_msgsConfig.cmake
std_msgs-config.cmake
Add the installation prefix of "std_msgs" to CMAKE_PREFIX_PATH or set
"std_msgs_DIR" to a directory containing one of the above files. If
"std_msgs" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)
cd /root/ocs2_ws/build/grid_map_msgs; catkin build --get-env grid_map_msgs | catkin env -si /usr/bin/cmake /root/ocs2_ws/src/grid_map/grid_map_msgs --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/grid_map_msgs -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -
........................................................
Failed << grid_map_msgs:cmake
[ Exited with code 1 ]
Failed <<< grid_map_msgs
[ 7.1 seconds ]
________________________________________________________
Errors << semantic_sensor:cmake /root/ocs2_ws/logs/semantic_sensor/build.cmake.001.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"message_generation" with any of the following names:
message_generationConfig.cmake
message_generation-config.cmake
Add the installation prefix of "message_generation" to CMAKE_PREFIX_PATH or
set "message_generation_DIR" to a directory containing one of the above
files. If "message_generation" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:15 (find_package)
cd /root/ocs2_ws/build/semantic_sensor; catkin build --get-env semantic_sensor | catkin env -si /usr/bin/cmake /root/ocs2_ws/src/elevation_mapping_cupy/sensor_processing/semantic_sensor --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/semantic_sensor -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -
........................................................
Failed << semantic_sensor:cmake
[ Exited with code 1 ]
Failed <<< semantic_sensor
[ 7.3 seconds ]
________________________________________________________
Errors << grid_map_cv:cmake /root/ocs2_ws/logs/grid_map_cv/build.cmake.000.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "cv_bridge" with
any of the following names:
cv_bridgeConfig.cmake
cv_bridge-config.cmake
Add the installation prefix of "cv_bridge" to CMAKE_PREFIX_PATH or set
"cv_bridge_DIR" to a directory containing one of the above files. If
"cv_bridge" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:9 (find_package)
cd /root/ocs2_ws/build/grid_map_cv; catkin build --get-env grid_map_cv | catkin env -si /usr/bin/cmake /root/ocs2_ws/src/grid_map/grid_map_cv --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/grid_map_cv -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -
........................................................
Failed << grid_map_cv:cmake
[ Exited with code 1 ]
Failed <<< grid_map_cv
[ 10.4 seconds ]
________________________________________________________
Errors << grid_map_costmap_2d:cmake /root/ocs2_ws/logs/grid_map_costmap_2d/build.cmake.000.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "costmap_2d" with
any of the following names:
costmap_2dConfig.cmake
costmap_2d-config.cmake
Add the installation prefix of "costmap_2d" to CMAKE_PREFIX_PATH or set
"costmap_2d_DIR" to a directory containing one of the above files. If
"costmap_2d" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:9 (find_package)
cd /root/ocs2_ws/build/grid_map_costmap_2d; catkin build --get-env grid_map_costmap_2d | catkin env -si /usr/bin/cmake /root/ocs2_ws/src/grid_map/grid_map_costmap_2d --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/grid_map_costmap_2d -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -
........................................................
Failed << grid_map_costmap_2d:cmake
[ Exited with code 1 ]
Failed <<< grid_map_costmap_2d
[ 12.5 seconds ]
________________________________________________________
Errors << ocs2_core:cmake /root/ocs2_ws/logs/ocs2_core/build.cmake.000.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "cmake_modules"
with any of the following names:
cmake_modulesConfig.cmake
cmake_modules-config.cmake
Add the installation prefix of "cmake_modules" to CMAKE_PREFIX_PATH or set
"cmake_modules_DIR" to a directory containing one of the above files. If
"cmake_modules" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
It is intersting that these packages are very common, I will keep trying to solve that
Errors << ocs2_anymal_mpc:make /home/k1314/ocs2_ws/logs/ocs2_anymal_mpc/build.make.019.log
/usr/bin/ld: warning: libboost_filesystem.so.1.71.0, needed by /opt/ros/noetic/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.73.0
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_closure_alloc@LIBFFI_CLOSURE_7.0' /usr/bin/ld: /lib/libgdal.so.26: undefined reference to
TIFFReadRGBATileExt@LIBTIFF_4.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_pointer@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to
ffi_prep_closure_loc@LIBFFI_CLOSURE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint8@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to
ffi_prep_cif@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/libgdal.so.26: undefined reference to TIFFReadRGBAStripExt@LIBTIFF_4.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to
ffi_type_uint64@LIBFFI_BASE_7.0'
collect2: error: ld returned 1 exit status
make[2]: [CMakeFiles/ocs2_anymal_mpc_dummy_mrt_node.dir/build.make:225:/home/k1314/ocs2_ws/devel/.private/ocs2_anymal_mpc/lib/ocs2_anymal_mpc/ocs2_anymal_mpc_dummy_mrt_node] 错误 1
make[1]: [CMakeFiles/Makefile2:465:CMakeFiles/ocs2_anymal_mpc_dummy_mrt_node.dir/all] 错误 2
make[1]: 正在等待未完成的任务....
/usr/bin/ld: warning: libboost_filesystem.so.1.71.0, needed by /opt/ros/noetic/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.73.0
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_closure_alloc@LIBFFI_CLOSURE_7.0' /usr/bin/ld: /lib/libgdal.so.26: undefined reference to
TIFFReadRGBATileExt@LIBTIFF_4.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_pointer@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to
ffi_prep_closure_loc@LIBFFI_CLOSURE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint8@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to
ffi_prep_cif@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/libgdal.so.26: undefined reference to TIFFReadRGBAStripExt@LIBTIFF_4.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to
ffi_type_uint64@LIBFFI_BASE_7.0'
collect2: error: ld returned 1 exit status
make[2]: [CMakeFiles/ocs2_anymal_mpc_mpc_node.dir/build.make:225:/home/k1314/ocs2_ws/devel/.private/ocs2_anymal_mpc/lib/ocs2_anymal_mpc/ocs2_anymal_mpc_mpc_node] 错误 1
make[1]: [CMakeFiles/Makefile2:606:CMakeFiles/ocs2_anymal_mpc_mpc_node.dir/all] 错误 2
make: [Makefile:141:all] 错误 2
cd /home/k1314/ocs2_ws/build/ocs2_anymal_mpc; catkin build --get-env ocs2_anymal_mpc | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -
...............................................................................
Failed << ocs2_anymal_mpc:make [ Exited with code 2 ]
Failed <<< ocs2_anymal_mpc [ 3.7 seconds ]
Abandoned <<< ocs2 [ Unrelated job failed ]
Abandoned <<< ocs2_anymal [ Unrelated job failed ]
Abandoned <<< ocs2_doc [ Unrelated job failed ]
Abandoned <<< ocs2_robotic_examples [ Unrelated job failed ]
Abandoned <<< ocs2_anymal_loopshaping_mpc [ Unrelated job failed ]
[build] Summary: 77 of 83 packages succeeded.
[build] Ignored: None.
[build] Warnings: 1 packages succeeded with warnings.
[build] Abandoned: 5 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 27.3 seconds total.
How to solve this problem, thank you!
convex_plane_decompositionConfig.cmake convex_plane_decomposition-config.cmake
this error can be solved by build https://github.com/leggedrobotics/elevation_mapping_cupy
I have solved this problem, you can try to install version 10.0
when i catkin build OCS2,the bug is "CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "convex_plane_decomposition" with any of the following names:
Add the installation prefix of "convex_plane_decomposition" to CMAKE_PREFIX_PATH or set "convex_plane_decomposition_DIR" to a directory containing one of the above files. If "convex_plane_decomposition" provides a separate development package or SDK, be sure it has been installed." CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "grid_map_filters_rsl" with any of the following names:
Add the installation prefix of "grid_map_filters_rsl" to CMAKE_PREFIX_PATH or set "grid_map_filters_rsl_DIR" to a directory containing one of the above files. If "grid_map_filters_rsl" provides a separate development package or SDK, be sure it has been installed.