ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2012-10-09 03:19:23 -0500 | received badge | ● Student (source) |
2012-08-29 04:33:44 -0500 | received badge | ● Popular Question (source) |
2012-08-29 04:33:44 -0500 | received badge | ● Notable Question (source) |
2012-08-29 04:33:44 -0500 | received badge | ● Famous Question (source) |
2011-10-18 18:21:08 -0500 | asked a question | Trying to view a .pcd file through the cloud_view in ROS 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//// 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 |