Ask Your Question

dornhege's profile - activity

2019-09-29 00:29:16 -0500 received badge  Good Answer (source)
2019-09-25 16:14:30 -0500 received badge  Good Answer (source)
2019-08-14 03:08:01 -0500 received badge  Good Answer (source)
2019-08-09 21:55:32 -0500 received badge  Nice Answer (source)
2019-06-24 11:32:43 -0500 received badge  Nice Answer (source)
2019-05-24 02:03:12 -0500 received badge  Nice Answer (source)
2019-02-25 17:06:17 -0500 received badge  Good Answer (source)
2019-02-14 00:14:17 -0500 received badge  Great Answer (source)
2019-01-15 19:35:58 -0500 received badge  Good Answer (source)
2019-01-04 15:09:47 -0500 received badge  Nice Answer (source)
2018-12-18 04:57:15 -0500 received badge  Good Answer (source)
2018-11-28 11:27:37 -0500 received badge  Guru (source)
2018-11-28 11:27:37 -0500 received badge  Great Answer (source)
2018-11-27 11:11:38 -0500 received badge  Necromancer (source)
2018-11-17 21:00:09 -0500 received badge  Good Answer (source)
2018-11-09 14:06:30 -0500 received badge  Good Answer (source)
2018-11-07 10:42:44 -0500 received badge  Great Question (source)
2018-10-29 13:56:09 -0500 received badge  Nice Answer (source)
2018-10-23 07:50:26 -0500 received badge  Nice Answer (source)
2018-10-03 23:04:33 -0500 received badge  Good Answer (source)
2018-10-02 16:19:24 -0500 received badge  Good Answer (source)
2018-09-05 21:25:35 -0500 received badge  Nice Answer (source)
2018-09-05 09:28:47 -0500 received badge  Nice Answer (source)
2018-08-23 03:28:50 -0500 received badge  Nice Answer (source)
2018-07-03 14:48:16 -0500 received badge  Good Answer (source)
2018-06-25 06:25:37 -0500 received badge  Nice Answer (source)
2018-05-22 08:39:03 -0500 received badge  Good Answer (source)
2018-04-20 13:53:40 -0500 received badge  Nice Answer (source)
2018-03-30 12:34:27 -0500 received badge  Good Answer (source)
2018-03-07 08:23:51 -0500 received badge  Good Answer (source)
2018-03-01 10:12:20 -0500 commented question Connecting hokuyo UTM-30LX to linux with serial conneciton

You can check with dmesg before and after plugging the sensor which device it gets and then first manually start the dri

2018-02-07 10:52:07 -0500 received badge  Nice Answer (source)
2018-01-30 13:57:05 -0500 received badge  Good Answer (source)
2018-01-22 09:03:31 -0500 received badge  Nice Answer (source)
2017-11-27 05:33:34 -0500 marked best answer What is the correct way to do stuff before a node is shutdown?

I want to do some shutting down code for my node. It is important that I am still fully connected to ROS while that is happening, so putting stuff just after the main loop is not an option.

Currently I would pass NoSigIntHandler to ros::init, install my own SIGINT handler, do stuff there and then call ros::shutdown.

Is this correct, i.e. the intended way or is there a better solution?

Update: I tested this and it works fine for pressing Ctrl-C even from roslaunch. For me this is OK right now.

The only thing that does not work is what Lorenz hinted at: rosnode kill seems to use another method, I get:

[ WARN] [1329394338.937166789, 61.017000000]: Shutdown request received.
[ WARN] [1329394338.937223749, 61.017000000]: Reason given for shutdown: [user request]

and my SIGINT handler is not called. I could try to work around this by checking ros::isShuttingDown and trying to shutdown my stuff while that is happening, but that doesn't seem safe to me.

2017-11-03 14:53:57 -0500 received badge  Nice Answer (source)
2017-11-02 13:26:21 -0500 received badge  Nice Answer (source)
2017-11-01 14:59:29 -0500 received badge  Nice Answer (source)
2017-10-30 05:45:08 -0500 received badge  Notable Question (source)
2017-10-30 05:45:08 -0500 received badge  Famous Question (source)
2017-10-26 16:58:33 -0500 received badge  Good Answer (source)
2017-09-28 06:54:30 -0500 answered a question How is the distance of an 3d object measured in ROS

RViz has a measure tool that displays distances between objects.

2017-09-26 06:45:59 -0500 commented question poseEigenToMsg is not a member of 'tf'

Did you include the correct header from the package?

2017-09-26 00:32:17 -0500 received badge  Famous Question (source)
2017-09-21 10:45:49 -0500 received badge  Nice Answer (source)
2017-09-20 06:01:50 -0500 received badge  Notable Question (source)
2017-09-18 12:37:09 -0500 received badge  Nice Answer (source)
2017-09-12 02:40:36 -0500 received badge  Good Answer (source)