0
$\begingroup$

Rosanswers logo

Hello,

I followed the ROS PCL tutorial. (How to use a PCL tutorial in ROS) I could build the package successfully with rosmake.

I enter

rosrun my_pcl_tutorial example input:=/narrow_stereo_textured/points2 

Nothing is happening. I do not get an error message. I tried both of the tutorials. I know that program is running (as I add a rosinfo, I can see the message) but cant I display the view in anywhere. I mean, won't I see something like the video in the referred PCL tutorial page?

Btw I changed the input:=/narrow_stereo_textured/points2 with the topic in rviz.I had no clue what that is before. Thanks :)

Edit: Now I do not have any problem left, everything is working in tutorial. The only question is: in the ros pcl tutorial page, links to pcl tutorial of the same codes are given. Those tutorials have their videos which show the point cloud view, you should have once you run the code. So, when I run the code in Ros, message is sent. Everything is working but I expect to see a point cloud view. All in all, what this code is really supposed to do is applying a filter, not just send messages, right? So my question is, is there a way to view what the code we run is actually doing?


Originally posted by mary on ROS Answers with karma: 43 on 2013-08-06

Post score: 1


Original comments

Comment by joq on 2013-08-06:
rostopic list will show what topics are actually being advertised, and rostopic hz /narrow_stereo_textured/points2 will tell you if anything is being published on that topic.

Comment by Loufis on 2013-08-07:
So everything with the ros pcl tutorial is working fine? That's good to hear.

I don't understand what your question is, if the problem is that you are seeing a black box in the space where there is supposed to be a video the you probably need to update your flash player or something as they should be working fine. If that doesn't work, try a different browser or if your using ubuntu in a virtual machine then try using a browser outside virtual machine.

Comment by mary on 2013-08-08:
My question is, is not this code supposed to do something more than showing me black terminal? I mean it sends message and stuff. That is all good. It is working. But I mean I expected to see the point cloud view since its aim is running a filter in ros? Wont I see a point cloud, when it runs?

Comment by mary on 2013-08-09:
Thanks alot =)

Comment by Loufis on 2013-08-09:
If you are doing the Point Clouds 2 part of the tutorial where you are applying a voxel grid filter then yes, it does publish data that you can view through rviz, just add a new Point Clouds 2 and set the topic to /output

Comment by catroscoder on 2013-08-20:
I am having the same issue. I'm just trying to follow the tutorial on ros-groovy, rosbuild. I run roscore and then run that line and then nothing. The code seems to run, I don't get an error or a new cursor entry. I went so far as to follow the exact path Loufis stated and still nothing

Comment by App on 2013-09-26:
When I run the tutorial I add a camera and a PointCloud2 in rviz and I see something but I don't know if the images that i see are correct because in one PointCloud2 I see the image but I don't know if it have the VoxelGrid Filter of this tutorial.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Hi, what exactly do u mean it's not working, does it give you a specific error? does it have no output?

Here are a few common errors people do while using this tutorial:

  • Forgetting to run roscore (very common mistake for beginners).

  • Did not source their files (making ros unable to recognize it as a stack/package)

  • Use input:=/narrow_stereo_textured/points2 even though that input is specific to a certain type of camera which might not be yours. What kind of camera are you using? If it's a kinect for example then you would want to use input:=/camera/depth_registered/points

  • Are you trying the tutorial one for Point Clouds or Point Clouds 2? The one for Point Clouds does not publish images you can view, while the one for Point Clouds 2 publishes a message of type Point Clouds 2 (if you are trying to view it in rviz make sure that's the type you have chosen to view it).

If none of these are your problem then please give us some more information so that we may be able to understand your problem better.


Originally posted by Loufis with karma: 28 on 2013-08-06

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by Loufis on 2013-08-06:
For future problems, a very helpful way of debugging in ros is using rqt_graph, it helps you understand what exactly is happening in the background (is the program subscribed correctly to all the inputs? does it publish everything correctly? if using a series of nodes, where do they stop working? etc...)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.