Closed wahaha-1 closed 2 months ago
Can you please provide more details? Send the CMakeLists.txt file and the errors you received when compiling.
Have you successfully installed the package? Installation
I'm not quite sure if I installed it correctly, here is a screenshot of my pycharm. The first installation method I used (
pip install coverage_control), and I have installed all the libraries mentioned below.
Thank you for your reply. I have successfully run the part of LPAC Neural Network. And for the CoverageControl/CMakeLists.txt path, I got this folder after running.(The system is ubuntu22.04)
I tried to understand the overall structure of the file through the description of the file on your website, but I have never been exposed to python+c++ projects before, and I don’t quite understand how to use your project. If possible, I hope you can give me some guidance.
very sorry, this is the error message
I used the reference example:
cmake_minimum_required(VERSION 3.16) project(CoverageControlMain LANGUAGES CXX)
if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif()
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) set(CMAKE_COLOR_DIAGNOSTICS ON)
include(CheckCXXCompilerFlag) include(GNUInstallDirs)
if(NOT DEFINED WITH_TORCH) set(WITH_TORCH OFF) endif() if(WITH_TORCH) find_package(Torch REQUIRED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}") get_filename_component(TORCH_LIBRARY_DIR "${TORCH_LIBRARIES}" DIRECTORY) set(CMAKE_INSTALL_RPATH "${ORIGIN};${CMAKE_INSTALL_LIBDIR};${TORCH_LIBRARY_DIR}") endif()
find_package(CoverageControl REQUIRED)
if(WITH_TORCH) find_package(CoverageControlTorch REQUIRED) endif()
add_library(compiler_flags INTERFACE) target_compile_features(compiler_flags INTERFACE cxx_std_17)
set(gcc_like_cxx "$<COMPILE_LANG_AND_ID:CXX,ARMClang,AppleClang,Clang,GNU,LCC>")
set(msvc_cxx "$<COMPILE_LANG_AND_ID:CXX,MSVC>")
target_compile_options(compiler_flags INTERFACE
"$<${gcc_like_cxx}:$<BUILD_INTERFACE:-Wall;-Wextra;-Wshadow;-Wformat=2;-Wunused;-pedantic>>"
"$<${msvc_cxx}:$
I'm sorry, but I've been trying to learn a little bit about multi-bot area coverage lately, trying to run some projects, but it didn't go well, and I didn't get a reply after asking the author, so I'm probably overly excited when I see your reply, and I hope you ignore my stupid mistakes in running the code
You will need to follow "Installation from source," including "Building the core C++ library." https://kumarrobotics.github.io/CoverageControl/installation.html#installation-from-source
By the way, you can use Python if you are more familiar with it so that you don't have to deal with C++ code. The C++ functions are available in Python.
Thank you very much, I will be going to try it soon
Could you please give me the specific usage process of the project? I still had problems after referring to quick use, and coveragecontrol did not appear after cmake.