Open jeychandar opened 1 year ago
@Tream733 I didn't found any package related to ws_msgs. Could you help me out with this issue. Thanks in advance.
CMake Error at CMakeLists.txt:23 (find_package): By not providing "Findws_msgs.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ws_msgs", but CMake did not find one.
Could not find a package configuration file provided by "ws_msgs" with any of the following names:
ws_msgsConfig.cmake ws_msgs-config.cmake
Add the installation prefix of "ws_msgs" to CMAKE_PREFIX_PATH or set "ws_msgs_DIR" to a directory containing one of the above files. If "ws_msgs" provides a separate development package or SDK, be sure it has been installed.
ok ,i will send you.This is a ros2 custom message package. and You can use this tool(https://github.com/Tream733/livox_data_loader) and livox datasets to test the project
@Tream733 I tried as you said but livox_data_loader also throws the same error.
@Tream733 I tried as you said but livox_data_loader also throws the same error.
I'll fix it as soon as I can.
@Tream733 I tried as you said but livox_data_loader also throws the same error.
I'll fix it as soon as I can.
ws_msgs here https://github.com/Tream733/ws_msgs and data_loader add gt_msg. This project also needs to be updated
@Tream733 Thanks for updating the package. I will work around and check it out :)
@Tream733 While doing colcon build centerpoint_livox is giving error
1 error detected in the compilation of "/home/praveen/livox_centerpoint/src/centerpoint-livox/src/postprocess.cu". CMake Error at centerpoint_generated_postprocess.cu.o.Debug.cmake:280 (message): Error generating file /home/praveen/livox_centerpoint/build/centerpoint/CMakeFiles/centerpoint.dir/src/./centerpoint_generated_postprocess.cu.o
but livox_data_loader sucessfully build
@Tream733 While doing colcon build centerpoint_livox is giving error
1 error detected in the compilation of "/home/praveen/livox_centerpoint/src/centerpoint-livox/src/postprocess.cu". CMake Error at centerpoint_generated_postprocess.cu.o.Debug.cmake:280 (message): Error generating file /home/praveen/livox_centerpoint/build/centerpoint/CMakeFiles/centerpoint.dir/src/./centerpoint_generated_postprocess.cu.o
but livox_data_loader sucessfully build
could you show me your cmakelist file?
Ohh sorry got it. In cmake i didn't give absolute path for tensorRT.
@Tream733 I have made changes in cmakelist but still encountering this error.
cmake_minimum_required(VERSION 3.5) project(centerpoint)
if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif()
find_package(ament_cmake REQUIRED) find_package(rclcpp REQUIRED) find_package(sensor_msgs REQUIRED) find_package(CUDA REQUIRED) find_package(tf2_geometry_msgs REQUIRED) find_package(tf2_eigen REQUIRED) find_package(pcl_conversions REQUIRED) find_package(PCL REQUIRED) find_package(visualization_msgs REQUIRED) find_package(ws_msgs REQUIRED) find_package(geometry_msgs REQUIRED) find_package(yaml-cpp REQUIRED)
if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "aarch64") set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc) set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++) set(CUDA_INSTALL_TARGET_DIR targets/aarch64-linux) elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") set(CMAKE_C_COMPILER /usr/bin/gcc) set(CMAKE_CXX_COMPILER /usr/bin/g++) set(CUDA_INSTALL_TARGET_DIR targets/x86_64-linux) endif()
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda) set(CUDA_INCLUDE_DIRS ${CUDA_TOOLKIT_ROOT_DIR}/${CUDA_INSTALL_TARGET_DIR}/include)
set(CMAKE_BUILD_TYPE "Release") set(CMAKE_CXX_FLAGS_RELEASE "-Wno-deprecated-declarations -O2") add_compile_options(-W) add_compile_options(-std=c++11)
set( SMS 30 32 35 37 50 52 53 60 61 62 70 72 75 87) foreach(sm ${SMS}) set(GENCODE ${GENCODE} -gencode arch=compute${sm},code=sm${sm}) endforeach() set(HIGHESTSM 87) set(GENCODE ${GENCODE} -gencode arch=compute${HIGHESTSM},code=compute${HIGHEST_SM})
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -ccbin ${CMAKE_CXX_COMPILER} -Xcompiler -DWIN_INTERFACE_CUSTOM -Xcompiler -I/usr/aarch64-linux-gnu/include/ -Xlinker -lsocket -Xlinker -rpath=/usr/lib/aarch64-linux-gnu/ -Xlinker -rpath=/usr/aarch64-linux-gnu/lib/ -Xlinker -L/usr/lib/aarch64-linux-gnu/ -Xlinker -L/usr/aarch64-linux-gnu/lib/ )
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") message("Using Debug Mode") set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -g -G --ptxas-options=-v) endif()
set(TENSORRT_INCLUDE_DIRS /home/praveen/TensorRT-8.4.2.4/targets/x86_64-linux-gnu/include) set(TENSORRT_LIBRARY_DIRS /home/praveen/TensorRT-8.4.2.4/targets/x86_64-linux-gnu/lib)
include_directories( include ${PROJECT_SOURCE_DIR}/include ${PCL_INCLUDE_DIRS} ${rclcpp_INCLUDE_DIRS} ${CUDA_INCLUDE_DIRS} ${TENSORRT_INCLUDE_DIRS} ${YAML_CPP_INCLUDE_DIRS} ${ws_msgs_INCLUDE_DIRS} )
link_directories( ${TENSORRT_LIBRARY_DIRS} /usr/lib/aarch64-linux-gnu /usr/aarch64-linux-gnu/lib/ )
file(GLOB_RECURSE SOURCE_FILES src/.cu src/plugin/.cu src/.cpp src/plugin/.cpp )
cuda_add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES}) target_link_libraries(${PROJECT_NAME} nvinfer nvonnxparser yaml-cpp)
add_executable(${PROJECT_NAME}_node src/app/detection.cpp src/app/main.cpp)
target_link_libraries(${PROJECT_NAME}_node ${PROJECT_NAME} ${PCL_LIBRARIES} yaml-cpp )
ament_target_dependencies(${PROJECT_NAME}_node
rclcpp
sensor_msgs
std_msgs
geometry_msgs
tf2_ros
ws_msgs
CUDA
yaml-cpp
)
install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
install(TARGETS ${PROJECT_NAME}_node DESTINATION lib/${PROJECT_NAME} )
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME} )
SET(CMAKE_BUILD_TYPE Debug)
ament_package()
I have this version dpkg -l | grep tensorrt ii nv-tensorrt-local-repo-ubuntu2004-8.6.1-cuda-11.8 1.0-1 amd64 nv-tensorrt-local repository configuration files ii tensorrt 8.6.1.6-1+cuda12.0 amd64 Meta package for TensorRT
I changed to /home/praveen/TensorRT-8.6.1.6/targets/x86_64-linux-gnu/include but still same error
@Tream733 I have made changes in cmakelist but still encountering this error.
cmake_minimum_required(VERSION 3.5) project(centerpoint)
Default to C++14
if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif()if (not cmake_cxx_standard) set (CMAKE_CXX_STANDARD) endif ()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif()
find dependencies
find_package(ament_cmake REQUIRED) find_package(rclcpp REQUIRED) find_package(sensor_msgs REQUIRED) find_package(CUDA REQUIRED) find_package(tf2_geometry_msgs REQUIRED) find_package(tf2_eigen REQUIRED) find_package(pcl_conversions REQUIRED) find_package(PCL REQUIRED) find_package(visualization_msgs REQUIRED) find_package(ws_msgs REQUIRED) find_package(geometry_msgs REQUIRED) find_package(yaml-cpp REQUIRED)
if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "aarch64") set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc) set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++) set(CUDA_INSTALL_TARGET_DIR targets/aarch64-linux) elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") set(CMAKE_C_COMPILER /usr/bin/gcc) set(CMAKE_CXX_COMPILER /usr/bin/g++) set(CUDA_INSTALL_TARGET_DIR targets/x86_64-linux) endif()if (${cmake_host_system_processor}} is "aarch64" set (CMAKE_C_COMPILER/usr/bin/aarch64-linux-gnu-gcc) set (CMAKE_CXX_COMPILER/usr/bin/aarch64-linux-gnu-g ++) Set (CUDA_INSTALL_TARGET_DIR targets/aarch64-linux) elseif (${cmake_host_system_processor} strequal "x86_64") set (CMAKE_C_COMPILER/usr/bin/gcc) set (CMAKE_CXX_COMPILER/usr/bin/g ++) set (CUDA_INSTALL_TARGET_DIR targets/x86_64-linux) endif ()
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda) set(CUDA_INCLUDE_DIRS ${CUDA_TOOLKIT_ROOT_DIR}/${CUDA_INSTALL_TARGET_DIR}/include)
set(CMAKE_BUILD_TYPE "Release") set(CMAKE_CXX_FLAGS_RELEASE "-Wno-deprecated-declarations -O2") add_compile_options(-W) add_compile_options(-std=c++11)
set( SMS 30 32 35 37 50 52 53 60 61 62 70 72 75 87) foreach(sm ${SMS}) set(GENCODE ${GENCODE} -gencode arch=compute${sm},code=sm${sm}) endforeach() set(HIGHESTSM 87) set(GENCODE ${GENCODE} -gencode arch=compute${HIGHESTSM},code=compute${HIGHEST_SM})
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -ccbin ${CMAKE_CXX_COMPILER} -Xcompiler -DWIN_INTERFACE_CUSTOM -Xcompiler -I/usr/aarch64-linux-gnu/include/ -Xlinker -lsocket -Xlinker -rpath=/usr/lib/aarch64-linux-gnu/ -Xlinker -rpath=/usr/aarch64-linux-gnu/lib/ -Xlinker -L/usr/lib/aarch64-linux-gnu/ -Xlinker -L/usr/aarch64-linux-gnu/lib/ )
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") message("Using Debug Mode") set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -g -G --ptxas-options=-v) endif()
set(TENSORRT_INCLUDE_DIRS /home/praveen/TensorRT-8.4.2.4/targets/x86_64-linux-gnu/include) set(TENSORRT_LIBRARY_DIRS /home/praveen/TensorRT-8.4.2.4/targets/x86_64-linux-gnu/lib)
include_directories( include ${PROJECT_SOURCE_DIR}/include ${PCL_INCLUDE_DIRS} ${rclcpp_INCLUDE_DIRS} ${CUDA_INCLUDE_DIRS} ${TENSORRT_INCLUDE_DIRS} ${YAML_CPP_INCLUDE_DIRS} ${ws_msgs_INCLUDE_DIRS} )
link_directories( ${TENSORRT_LIBRARY_DIRS} /usr/lib/aarch64-linux-gnu /usr/aarch64-linux-gnu/lib/ )
file(GLOB_RECURSE SOURCEFILES src/.cu src/plugin/.cu src/.cpp src/plugin/_.cpp )
cuda_add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES}) target_link_libraries(${PROJECT_NAME} nvinfer nvonnxparser yaml-cpp)
add_executable(${PROJECT_NAME}_node src/app/detection.cpp src/app/main.cpp)
target_link_libraries(${PROJECT_NAME}_node ${PROJECT_NAME} ${PCL_LIBRARIES} yaml-cpp )
ament_target_dependencies(${PROJECT_NAME}_node rclcpp sensor_msgs std_msgs geometry_msgs tf2_ros ws_msgs CUDA yaml-cpp )
install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
install(TARGETS ${PROJECT_NAME}_node DESTINATION lib/${PROJECT_NAME} )
Install launch files.
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME} )
SET(CMAKE_BUILD_TYPE Debug)
ament_package()
I have this version dpkg -l | grep tensorrt ii nv-tensorrt-local-repo-ubuntu2004-8.6.1-cuda-11.8 1.0-1 amd64 nv-tensorrt-local repository configuration files ii tensorrt 8.6.1.6-1+cuda12.0 amd64 Meta package for TensorRT
I changed to /home/praveen/TensorRT-8.6.1.6/targets/x86_64-linux-gnu/include but still same error
could you show me your terminal output?
@Tream733 I have made changes in cmakelist but still encountering this error.
cmake_minimum_required(VERSION 3.5) project(centerpoint)
Default to C++14
if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif()if (not cmake_cxx_standard) set (CMAKE_CXX_STANDARD) endif ()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif()
find dependencies
find_package(ament_cmake REQUIRED) find_package(rclcpp REQUIRED) find_package(sensor_msgs REQUIRED) find_package(CUDA REQUIRED) find_package(tf2_geometry_msgs REQUIRED) find_package(tf2_eigen REQUIRED) find_package(pcl_conversions REQUIRED) find_package(PCL REQUIRED) find_package(visualization_msgs REQUIRED) find_package(ws_msgs REQUIRED) find_package(geometry_msgs REQUIRED) find_package(yaml-cpp REQUIRED)
if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "aarch64") set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc) set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++) set(CUDA_INSTALL_TARGET_DIR targets/aarch64-linux) elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") set(CMAKE_C_COMPILER /usr/bin/gcc) set(CMAKE_CXX_COMPILER /usr/bin/g++) set(CUDA_INSTALL_TARGET_DIR targets/x86_64-linux) endif()if (${cmake_host_system_processor}} is "aarch64" set (CMAKE_C_COMPILER/usr/bin/aarch64-linux-gnu-gcc) set (CMAKE_CXX_COMPILER/usr/bin/aarch64-linux-gnu-g ++) Set (CUDA_INSTALL_TARGET_DIR targets/aarch64-linux) elseif (${cmake_host_system_processor} strequal "x86_64") set (CMAKE_C_COMPILER/usr/bin/gcc) set (CMAKE_CXX_COMPILER/usr/bin/g ++) set (CUDA_INSTALL_TARGET_DIR targets/x86_64-linux) endif ()
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda) set(CUDA_INCLUDE_DIRS ${CUDA_TOOLKIT_ROOT_DIR}/${CUDA_INSTALL_TARGET_DIR}/include)
set(CMAKE_BUILD_TYPE "Release") set(CMAKE_CXX_FLAGS_RELEASE "-Wno-deprecated-declarations -O2") add_compile_options(-W) add_compile_options(-std=c++11)
set( SMS 30 32 35 37 50 52 53 60 61 62 70 72 75 87) foreach(sm ${SMS}) set(GENCODE ${GENCODE} -gencode arch=compute${sm},code=sm${sm}) endforeach() set(HIGHESTSM 87) set(GENCODE ${GENCODE} -gencode arch=compute${HIGHESTSM},code=compute${HIGHEST_SM})
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -ccbin ${CMAKE_CXX_COMPILER} -Xcompiler -DWIN_INTERFACE_CUSTOM -Xcompiler -I/usr/aarch64-linux-gnu/include/ -Xlinker -lsocket -Xlinker -rpath=/usr/lib/aarch64-linux-gnu/ -Xlinker -rpath=/usr/aarch64-linux-gnu/lib/ -Xlinker -L/usr/lib/aarch64-linux-gnu/ -Xlinker -L/usr/aarch64-linux-gnu/lib/ )
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") message("Using Debug Mode") set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -g -G --ptxas-options=-v) endif()
set(TENSORRT_INCLUDE_DIRS /home/praveen/TensorRT-8.4.2.4/targets/x86_64-linux-gnu/include) set(TENSORRT_LIBRARY_DIRS /home/praveen/TensorRT-8.4.2.4/targets/x86_64-linux-gnu/lib)
include_directories( include ${PROJECT_SOURCE_DIR}/include ${PCL_INCLUDE_DIRS} ${rclcpp_INCLUDE_DIRS} ${CUDA_INCLUDE_DIRS} ${TENSORRT_INCLUDE_DIRS} ${YAML_CPP_INCLUDE_DIRS} ${ws_msgs_INCLUDE_DIRS} )
link_directories( ${TENSORRT_LIBRARY_DIRS} /usr/lib/aarch64-linux-gnu /usr/aarch64-linux-gnu/lib/ )
file(GLOB_RECURSE SOURCEFILES src/.cu src/plugin/.cu src/.cpp src/plugin/_.cpp )
cuda_add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES}) target_link_libraries(${PROJECT_NAME} nvinfer nvonnxparser yaml-cpp)
add_executable(${PROJECT_NAME}_node src/app/detection.cpp src/app/main.cpp)
target_link_libraries(${PROJECT_NAME}_node ${PROJECT_NAME} ${PCL_LIBRARIES} yaml-cpp )
ament_target_dependencies(${PROJECT_NAME}_node rclcpp sensor_msgs std_msgs geometry_msgs tf2_ros ws_msgs CUDA yaml-cpp )
install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
install(TARGETS ${PROJECT_NAME}_node DESTINATION lib/${PROJECT_NAME} )
Install launch files.
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME} )
SET(CMAKE_BUILD_TYPE Debug)
ament_package()
I have this version dpkg -l | grep tensorrt ii nv-tensorrt-local-repo-ubuntu2004-8.6.1-cuda-11.8 1.0-1 amd64 nv-tensorrt-local repository configuration files ii tensorrt 8.6.1.6-1+cuda12.0 amd64 Meta package for TensorRT
I changed to /home/praveen/TensorRT-8.6.1.6/targets/x86_64-linux-gnu/include but still same error
could you show me your terminal output?
My terminal output
My terminal output There is something wrong with your cuda, you need to check it
@Tream733 I have checked with my cuda. The error /usr/local/cuda/targets/x86_64-linux/include/cub/agent/../block/block_merge_sort.cuh(169): error: expected a "," or ">" it is producing not in the cuba. PyTorch defines NUM_THREADS as a macro, and cub uses NUM_THREADS as a template identifier, and preprocessor messes things up. Could you know how to solve this?
I will try, but I have not encountered this problem with orin or other pc.
For your reference. I saw from this https://github.com/NVIDIA/cub/issues/396
I can't even find block_merge_sort.cuh file on my cuda11.4. I found the block_merge_sort.cuh file on cuda11.7, I straightened my cuda to 11.7 and the program works fine. Can you tell me your cuda version?
@Tream733 Can I know which version of Ros2 you are using. I am using foxy
foxy
---- Replied Message ---- | From | @.> | | Date | 08/15/2023 12:54 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [Tream733/centerpoint-livox] ws_msgs package not found (Issue #1) |
@Tream733 Can I know which version of Ros2 you are using. I am using foxy
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
@Tream733 Build sucessfully but it asks for launch file.
CMake Error at cmake_install.cmake:89 (file): file INSTALL cannot find "/home/praveen/livox_centerpoint/src/centerpoint-livox/launch": No such file or directory.
Could you please provide launch file or is it same as livox_data_loader
@jeychandar You can create a launch folder, or delete the following content in cmaklist
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME} ) My configuration files are all implemented through yaml files, without writing additional launch files, you can also add a launch file. It can be run with the following command: ros2 run centerpoint centerpoint_node
@jeychandar fixed a bug about nms. If you want to reproduce this project, you need to pull it again.
@Tream733 Okey sir. I will check it out
@Tream733 Hi sir. I pulled again the repo but I didn't get bbox array or pointcloud_front.
@jeychandar Do you use the data_loader module or other data, and then all modules are running?
No Sir I have used only centerpoint-livox and ws_msgs. when I first tried this repo it asked for ws_msgs only. so I did ws_msgs and this repo.
@Tream733 Hi sir when I launch the data_loader.py it gave error [data_loader_node-1] [ERROR] [1692154822.289198032] [data_loader_node]: File path not found. [ERROR] [data_loader_node-1]: process has died [pid 52148, exit code -11, cmd '/home/praveen/livox_centerpoint/install/data_loader/lib/data_loader/data_loader_node --ros-args -r node:=data_loader_node -r node:=data_loader_node --params-file /tmp/launch_params_spfydifm'].
even though I changed everywhere to absolute path
@jeychandar What I played back was not bag data. The point cloud of livox’s bag data is their custom msg. What I played back directly were pcd, jpg and txt files. You can refer to the address below: data_path: /media/txy/EXTERNAL_USB/data/livox_dataset_v1.0/data/data101_2020_05_14/ label_path: /media/txy/EXTERNAL_USB/data/livox_dataset_v1.0/label/data101_2020_05_14/
@Tream733 Can you give link and access to this data to test sir
@Tream733 I didn't found any package related to ws_msgs. Could you help me out with this issue. Thanks in advance.
CMake Error at CMakeLists.txt:23 (find_package): By not providing "Findws_msgs.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ws_msgs", but CMake did not find one.
Could not find a package configuration file provided by "ws_msgs" with any of the following names:
Add the installation prefix of "ws_msgs" to CMAKE_PREFIX_PATH or set "ws_msgs_DIR" to a directory containing one of the above files. If "ws_msgs" provides a separate development package or SDK, be sure it has been installed.