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

rplankenhorn's profile - activity

2016-11-08 23:57:02 -0500 received badge  Famous Question (source)
2016-09-21 22:37:09 -0500 received badge  Notable Question (source)
2016-09-21 02:56:21 -0500 received badge  Popular Question (source)
2016-09-20 08:50:55 -0500 asked a question Using gmapping with multiple laser scanners and odometry

I am working with a robot that has multiple laser scanners near it's base (front, left, and right) and I was looking into using the Gmapping package to map or a room. Is it possible to use this package with multiple laser scanners? Also, once I map out the room, what is the best way to get the coordinate position of the robot in the map?

2012-09-03 00:36:36 -0500 received badge  Popular Question (source)
2012-09-03 00:36:36 -0500 received badge  Notable Question (source)
2012-09-03 00:36:36 -0500 received badge  Famous Question (source)
2012-08-27 02:51:12 -0500 received badge  Famous Question (source)
2012-08-27 02:51:12 -0500 received badge  Notable Question (source)
2012-08-15 09:51:33 -0500 received badge  Famous Question (source)
2012-08-15 09:51:33 -0500 received badge  Popular Question (source)
2012-08-15 09:51:33 -0500 received badge  Notable Question (source)
2012-07-03 21:18:38 -0500 received badge  Popular Question (source)
2012-02-27 02:32:40 -0500 commented answer Sick LMS100 Scan to Scan object filtering

Would this work for really small objects? I kind of want to filter really small objects out and only react to bigger objects. (Objects less than 2cm wide.)

2012-02-24 09:51:33 -0500 received badge  Good Question (source)
2012-02-24 09:50:01 -0500 received badge  Nice Question (source)
2012-02-24 09:24:25 -0500 asked a question Sick LMS100 Scan to Scan object filtering

Has anyone ever done scan to scan object filtering/comparing? I want to use it to eliminate false positives.

2012-02-23 09:53:21 -0500 received badge  Scholar (source)
2012-02-23 08:57:11 -0500 commented answer Sick LMS100 small object filters

Thanks again. If the fromMsg is deprecated, how do I convert the pcl::PointCloud back to a PointCloud2?

2012-02-23 03:58:34 -0500 received badge  Supporter (source)
2012-02-23 03:58:29 -0500 commented answer Sick LMS100 small object filters

This looks like it could work. How do you suggest I implement it? I looked at the PCL page for ROS and the functions to convert from an ROS PointCloud to a PCL PointCloud and back are deprecated. Am I missing something?

2012-02-23 02:23:29 -0500 commented answer Sick LMS100 small object filters

I know that if the grass isn't cut it will look like a wall. I am talking about if the area has been freshly mowed and also on a windy day, the grass clippings are flying around in front of the laser. They appear as random small objects.

2012-02-22 13:16:49 -0500 asked a question Sick LMS100 small object filters

I am interfacing with a Sick LMS100 laser scanner and I am having problems filtering small objects (such as grass clippings). Are there any tools built into ROS that I could use to filter these objects out easily? If not, what would be the best method for filtering the objects out of the scans?

2012-02-09 01:42:04 -0500 answered a question ros::ok() within pthread

Alright I figured it out. I had GDB enabled for the module and it for some reason wasn't killing the threads. As soon as I disabled it in my launch file, the threads get killed when I Ctrl-C the program. Thanks for the suggestions.

2012-02-09 01:04:48 -0500 commented answer ros::ok() within pthread
I do this in the main thread. I launch individual threads and then drop into a while(ros::ok()) loop that exits fine when I do Ctrl-C.
2012-02-09 01:03:57 -0500 commented answer ros::ok() within pthread
See my sample code above.
2012-02-09 01:02:54 -0500 received badge  Editor (source)
2012-02-08 07:01:34 -0500 received badge  Student (source)
2012-02-08 05:14:57 -0500 asked a question ros::ok() within pthread

I am have a couple of threads that run in a node. The threads have a while(ros::ok()) infinite loop inside. The problem is that when I Ctrl-C my program, it has to escalate to a SIGTERM because the ros::ok() variable never goes false. I also tried the ros::isShuttingDown() variable and this never goes true.

How should I handle the pthreads so that they exit when the rest of the program exits?

I launch threads with:

pthread_t thread1
pthread_create(&thread1,NULL,thread1Function,NULL);

My thread function looks something like this:

void *thread1Function(void *obj)
{
ros::Rate loop_rate(1);

while(ros::ok())
{
//Do stuff
loop_rate.sleep();
ros::spinOnce();
}

pthread_exit(NULL);
}

The loop never exits.