Skip to content

Simply creating a GeneralizedIterativeClosestPoint6D (gicp) object causes segmentation fault #2013

Closed
@jasjuang

Description

@jasjuang

Your Environment

  • Operating System and version: Ubuntu 16.04
  • Compiler: GCC 5.4
  • PCL Version: Latest

Minimal code to Reproduce

CMakeLists

cmake_minimum_required(VERSION 3.7)
project(Example)

set(PROJECT_SRCS ${PROJECT_SOURCE_DIR}/main.cpp )

find_package( PCL REQUIRED )

add_executable(${PROJECT_NAME} ${PROJECT_SRCS})

target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC                          
 ${PCL_INCLUDE_DIRS})

target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES})

main.cpp

#include "pcl/registration/gicp6d.h"

int main(){
  pcl::GeneralizedIterativeClosestPoint6D gicp;

  return 0;
}

Current Behavior

ubuntu@XXX.XXX.XX.XX:~/test/build$ ./Example 
Segmentation fault (core dumped)

Expected Behavior

ubuntu@XXX.XXX.XX.XX:~/test/build$ ./Example 
ubuntu@XXX.XXX.XX.XX:~/test/build$

Context

This problem is preventing me from using the GICP function, which I would like to improve my result by replacing the traditional ICP with GICP.

@MichaelKorn Thank you for adding GICP into PCL, could you help me solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions