ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Trying to view a .pcd file through the cloud_view in ROS [closed]

asked 2011-10-18 18:21:08 -0500

kedar gravatar image

updated 2012-02-27 13:29:16 -0500

kwc gravatar image

I am trying to read a .pcd file and view it in the cloud viewer as follows:

int main (int argc, char** argv) { ///code for reading the pcd file////
pcl::PointCloud<pcl::pointxyzrgb>::Ptr cloud (new pcl::PointCloud<pcl::pointxyzrgb>);

if (pcl::io::loadPCDFile<pcl::pointxyzrgb> ("group12_2.pcd", cloud) == -1) // load the file { std::cout<< "Couldn't read file test_pcd.pcd \n"; return (-1); } pcl::visualization::CloudViewer viewer ("Simple Cloud Viewer"); viewer.showCloud (cloud); while (!viewer.wasStopped ()) { }

return (0); }

I got an error that the header file pcl/visualization/cloud_viewer.h was not found. So I searched and installed the missing perception_pcl_addon dependency into the ros stack and added the dependency into the manifest of the package. There is error that the dependency cannot be found when actually it is there. I tried creating a new package with ros-create and specifying the dependency there as well, I get the same error.

My package-path and other variables are set and I can make and compile other codes.

Please let me know Thank you

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by kwc
close date 2012-02-27 13:29:30

1 Answer

Sort by ยป oldest newest most voted

answered 2011-10-19 00:37:57 -0500

Yianni gravatar image

Does it help if you try rosmake?

edit flag offensive delete link more

Question Tools


Asked: 2011-10-18 18:21:08 -0500

Seen: 982 times

Last updated: Oct 19 '11