2018-01-01:Writing Point Cloud data to PCD files

897 단어
main.cpp
#include
#include
#include

int main(int argc, char** argv)
{
    pcl::PointCloud<:pointxyz> cloud;
    cloud.width =5;
    cloud.height=1;
    cloud.is_dense=false;
    cloud.points.resize(cloud.width*cloud.height);

    for(size_t i=0; i

CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR)
project(pcd_write)

find_package(PCL 1.2 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_library(pcl01 src/pcl01.cpp)
add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES})

좋은 웹페이지 즐겨찾기