Skip to content
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

Build error for Chapter 4 code (Visualization.cpp) #68

Open
amiltonwong opened this issue Jan 5, 2016 · 1 comment
Open

Build error for Chapter 4 code (Visualization.cpp) #68

amiltonwong opened this issue Jan 5, 2016 · 1 comment

Comments

@amiltonwong
Copy link

Dear all,
I have troubles in building chapter 4 code (Visualization.cpp)

/root/opencv_ws/Chapter4_StructureFromMotion/Visualization.cpp:97:2: error: ‘toROSMsg’ is not a member of ‘pcl’
pcl::toROSMsg(mesh_cld,pm.cloud);
^

The detailed error can be viewed here:
https://gist.github.com/amiltonwong/72745b90a2d5e70a7e47

My system is ubuntu 14.04, CUDA 7.5, opencv 2.4.8, and ROS Indigo installed.

The error seems come from : toROSMsg

Could someone suggest me how to fix it?

THX~
Milton

@fabiopoiesi
Copy link

fabiopoiesi commented Jul 23, 2017

With pcl-1.8, toROSMsg is deprecated, but the library provides functions to handle this.

Just add #include <pcl/ros/conversions.h> to Visualization.cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants