PCL: Creating a real-time visualization from kinect point clouds - c++

Im trying to follow this tutorial: http://pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber but I'm not being able to complete it. The tutorial seems simple enough, but nothing seems to be working.
When I try to compile it I get the following error: point_cloud_geometry_handlers.h:48:29: fatal error: vtkSmartPointer.h: No such file or directory compilation terminated.
I've tried to find out what this vtkSmartPointer.h is about but with no luck, probably it has something to do with that ConstPtr type?
Thanks in advance

Related

Media playback error : Could not initialize Xv output

I found a simple media player on github : https://github.com/wxWidgets/wxWidgets/blob/master/samples/mediaplayer/mediaplayer.cpp
I copied it in a new project and ran it. It seemed to go well until I tried to open a .mp3 file. I got this error: "Media Playback error. Could not initialize Xv output".
I work on Ubuntu in a virtual machine so I thought that maybe I'm missing something. I opened Rhythmbox and tried to play the same file and I got the same error. I searched on google and found this:
https://askubuntu.com/questions/750418/my-rhythmbox-not-playing-mp3
I installed gstreamer plugins-ugly and plugins-bad, ubuntu-restricted-extra. Also, I installed libxv-dev because I thought it may have something to do with all of this. It didn't work. I reinstalled Rhythmbox and it works just fine now. I thought I had solved the problem I had with the code (mediaplayer) as well but I didn't. I still get the same error.
How can i make it work? And why do I get this error in the first place?
I forgot to mention. I'm also getting these messages :

How do I run a simple C++ program in the Cloud9 IDE?

I am working on a translation application in my high school Computer Science Advanced Studies class. MY school's computers have a CodeBlocks IDE, but no compiler installed. So, I decided to try and find one online that I can use, and Cloud9 seemed like a good prospect. However, when I try to run my program, I get errors such as the following:
g++: error: /home/ubuntu/workspace/English-Spanish: No such file or directory
g++: fatal error: no input files
compilation terminated.
chmod: cannot access ‘/home/ubuntu/workspace/runme’: No such file ordirectory
sh: 1: /home/ubuntu/workspace/runme: not found
I'm not sure where the problem is or how to fix it. Any tips? I'm new to the online IDE scene.
Looks like you didn't add any source code to your project.
I figured out what was wrong. It was a simple mistake, really. My project's filename was "English-Spanish Translator," but spaces are not acceptable for filenames. I renamed it "eng-esp_translate.cpp," and it ran just fine.

fatal error: 'libpq++' file not found

I would love to use libpq++ library in my C++ project but I am unable to get it working.
So far, I have installed libpqxx-dev libpqxx-4.0 packages on my Ubuntu 14.04 and provided -llibpq++ to clang++.
However, no matter what I do, I still get following error:
src/serverdata.h:4:10: fatal error: 'libpq++' file not found
It seems that I didn't install libpq++ properly but I don't really see any problem.
Any help would be highly appreciated.
Seems to me, your src/serverdata.h has 4th line like:
#include "libpq++"
If so, change it to something like:
#include <pqxx/basic_connection.hxx>
PS. Files in dev packet are listed here

C++ Addon example unable to find the created module

Hey all I am trying to do the addon example located here http://nodejs.org/api/addons.html (Hello World). Everything seems to run fine until the final step. I recieve the error in the picuture I attached. [For this shot I even put everything hello.js and hello.node in same folder with no sucess). I point to the location of my hello.node, but I keep getting this error anyone have success with this example or more their own c++ add on??
Thanks in advance.

pcl::MovingLeastSquares doesn't work

I'm new to PCL and I'm trying to do this tutorialhere. The problem is that I can compile it, but when I run this, it give me an error: *exception at 0x000007fefd27940d in pcl_VFHexperiment.exe: Microsoft C++ exception: pcl::IOException at memory location 0x001cf0e0*
I guess the problem is that mls. process function doesn't work correctly and the operation of file saving provides an error.
Could be the input file the problem? I use ism_test_cat.pcd file found here. I don't know where the file suggested in the tutorial is. How should the input file be?
Anyway I can see ism_test_cat.pcd file in the viewer following the other tutorial.
How to solve? Please help me.
I use VS2010, PCL 1.6, all 64bit
Thanks in advance a lots
"You should be able to find the input file at pcl/test/bun0.pcd." It says in the tutorial.