-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Error] I got some trouble when I loaded PCD file in pcl1.9.1 #5325
Comments
|
############################ set output path ################################# ############################# include directories ################################# include_directories(${PROTOBUF_INCLUDE_DIRS} BEFORE) INCLUDE_DIRECTORIES(.) ######################### generate .so library ######################################## file(GLOB_RECURSE OpenCV_LIBRARIES /home/xxx/InstallPackage/Opencv-4.5.1/lib/x86_64-linux-gnu/.so) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) ############################ Specify src code directory ################################# file(GLOB_RECURSE SRC_PRJ_VIS ${PROJECT_SOURCE_DIR}/src/visualization/*.cpp) file(GLOB_RECURSE SRC_PRJ_RADAR_PERCEPTION ${PROJECT_SOURCE_DIR}/src/radar_perception/.cpp file(GLOB_RECURSE SRC_PRJ_TRACK ${PROJECT_SOURCE_DIR}/src/track/cpu/.cpp file(GLOB_RECURSE SRC_PRJ_UTILS ${PROJECT_SOURCE_DIR}/src/utils/*.cpp) file(GLOB_RECURSE SRC_PRJ_PUBLISH ${PROJECT_SOURCE_DIR}/src/publish_data/*.pb.cc) file(GLOB_RECURSE SRC_PRJ_FILES ${SRC_PRJ_APP} ${SRC_PRJ_BASE} ${SRC_PRJ_COMMON} ${SRC_PRJ_PUBLISH} ${SRC_PRJ_VIS} set(DEPEND_LIBRARIES ${PROTOBUF_LIBRARIES} ${OpenCV_LIBRARIES} ${VTK_LIBRARIES} ${PCL_LIBRARIES} ${BOOST_LIBRARIES} add_library(XLZAMultiPerception SHARED ${SRC_PRJ_FILES}) file(GLOB_RECURSE SRC_PRJ_MAIN main/main.cpp) |
The |
It's work! But I'm sorry that I have another problem. When I use pcl::PointCloudpcl::PointXYZRGB::Ptr in functions, it reports "double free or corruption(out)" on return. |
I have solved this problem |
When I use pcl::io::loadPCDFile to load my data, I have encountered the following problem. Debug reports an error when the ide stays on this page
![image](https://user-images.githubusercontent.com/39193066/178720832-1c4f8619-2cf0-4d4e-b69c-1ca752bd29b2.png)
When I use gdb to trace the problem, show this
![image](https://user-images.githubusercontent.com/39193066/178720663-17e26408-b55e-4b4b-886a-7aaa5833a6f7.png)
and this is the code for how I load the data
![image](https://user-images.githubusercontent.com/39193066/178721481-d7c7db7e-7f63-483f-8fd0-d766be670ee9.png)
The text was updated successfully, but these errors were encountered: