Ask Your Question

Barbas's profile - activity

2015-10-01 07:27:32 -0500 received badge  Famous Question (source)
2015-10-01 07:27:32 -0500 received badge  Notable Question (source)
2015-08-21 05:43:34 -0500 received badge  Good Question (source)
2015-07-16 00:36:37 -0500 received badge  Famous Question (source)
2015-02-17 13:37:11 -0500 received badge  Famous Question (source)
2015-01-29 13:47:50 -0500 received badge  Famous Question (source)
2014-05-05 20:43:05 -0500 received badge  Notable Question (source)
2014-01-16 03:12:54 -0500 received badge  Notable Question (source)
2013-12-12 20:07:04 -0500 received badge  Popular Question (source)
2013-11-18 16:47:39 -0500 received badge  Popular Question (source)
2013-11-14 10:47:18 -0500 received badge  Notable Question (source)
2013-10-29 08:38:23 -0500 commented answer Publish unknown number of topics?

Thanks, for the help, got it working now. Here a gist of the code, if anyone wants to take a look: https://gist.github.com/Barbas/7220227

2013-10-29 08:11:41 -0500 commented answer Publish unknown number of topics?

OK what I've tried now is: -Create a vector of publishers inside the callback function. -In a for loop initialize the publishers, using `nodehandle.advertise<sensor_msgs::pointcloud2>()` -Convert the cluster clouds to ros, and publish them. My problem is that apart from the first publisher, all the other publishers do not receive messages. Is there some other way to publish the different clouds in different topics?

2013-10-29 07:31:00 -0500 received badge  Popular Question (source)
2013-10-29 05:51:50 -0500 commented answer Publish unknown number of topics?

But how can I get access to my nodehandler in the callback function, where the Publishers would be dynamically created? Is it possible to pass a reference to it in the callback?

2013-10-29 03:51:23 -0500 received badge  Nice Question (source)
2013-10-29 03:07:57 -0500 received badge  Student (source)
2013-10-29 02:40:09 -0500 received badge  Editor (source)
2013-10-29 02:39:24 -0500 asked a question Publish unknown number of topics?

Hello,

I'm trying to adapt the Euclidean Cluster Extraction tutorial from PCL to work with ROS.

I can get the tutorial working as it should, my question is with handling the detected clusters.

My idea was to publish each cluster in a different topic so I can look at them separately in rviz. My question is how can I do that?

Currently I'm creating one publisher as a global variable, and using nodehandle.advertise<sensor_msgs::PointCloud2>() in main() to create a topic and publish on it. This means that I can only publish only one pointcloud through this.

Is it possible to create a number of publishers, unknown at compile time, since I don't know how many objects will be detected, that each publish on a different topic?

How else would you recommend I use/view the vector of PointClouds that get created by the cluster extraction? The tutorial extracts them to files, but I would rather view them in rviz somehow.

2013-10-10 21:38:55 -0500 received badge  Popular Question (source)
2013-10-06 11:38:21 -0500 commented answer How to determine the min_range and max_range for my RGB-D camera?

By filter out do you mean ignore? Or is there some "soft" way to deal with the out-of-range data?

2013-10-06 09:49:07 -0500 asked a question How to determine the min_range and max_range for my RGB-D camera?

Hello guys,

I'm trying to do some basic depth detection and as described [here] by (http://answers.ros.org/question/10222/openni_camera-depth-image-opencv/?answer=14994#post-id-14994) by @fergs I need to know the min_range and max_range for my camera in order to convert my image. So how do I know that?

I am using a Carmine 1.09 and the website lists 0.35m as a minimum distance and 1.4m as a maximum one. Are these the values I should be using?

2013-10-06 09:12:19 -0500 asked a question How to determine min_range and max_range for my RGB-D camera?

Hello guys,

I'm trying to do some basic depth detection and as described [here] by (http://answers.ros.org/question/10222/openni_camera-depth-image-opencv/?answer=14994#post-id-14994) by @fergs I need to know the min_range and max_range for my camera in order to convert my image. So how do I know that?

I am using a Carmine 1.09 and the website lists 0.35m as a minimum distance and 1.4m as a maximum one. Are these the values I should be using?

2013-09-26 06:54:32 -0500 received badge  Scholar (source)
2013-09-19 22:28:56 -0500 asked a question How do I run commands for a specific amount of time?

Hello people I'm just starting out in ros and what I want to do is a simple movement for a simulated robot.

I'm controlling the robot through a differential drive, so I want to have the robot move forward for a while then change direction etc.

I'm using a subscriber to get the data from the encoders and a publisher to send values to the drive.

I'm currently using a while(ros::ok()){...spinOnce()} loop that makes the callback calls for the subscriber.That means that if I call my move_forward() function here it will just keep getting called until I stop the program.

My question is: how do I run my move_forward(), and turn() functions for specific amounts of time, while still getting the data from my encoders at every tick?

2013-09-18 23:25:50 -0500 received badge  Supporter (source)