Ask Your Question

how to kill brown driver from a node

asked 2012-09-05 07:05:00 -0500

searchrescue gravatar image

Hi, I am implementing an algorithm on icreate and i am using brown driver for this. I have an issue that when my node finishes its task, i want brown driver binary to stop as well. Otherwise, the robot keeps going although i kill the node. How can i kill the brown driver from a node? Any help is appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-05 08:11:32 -0500

jbohren gravatar image

Generally speaking, robot control through the starting and stopping of processes is sloppy and hard to control. Is it not possible for you to just send some sort of "stop" command, instead?

edit flag offensive delete link more


Thanks firstly. i just wanted to somehow integrate into the launch file. It might be the driver's buffer issue as well. However, i do not have much control over the the brown driver. I was wondering how to trigger a system call from the node.

searchrescue gravatar image searchrescue  ( 2012-09-05 10:38:47 -0500 )edit

You really shouldn't be doing this. What are you trying to do exactly?

jbohren gravatar image jbohren  ( 2012-09-06 16:16:28 -0500 )edit

Actually, the robot is doing coverage for some cells according to the algorithm and the robot does not stop somehow ! So i wanted to stop brown driver which will cause the stopping for sure. There might be some sync. issue as well.

searchrescue gravatar image searchrescue  ( 2012-09-10 05:07:45 -0500 )edit

I'm doing some work with odometry, and I reboot the driver each time I start (to zero the wheel odometry). In all of the code I wrote, I have a shutdown command that kills all of my nodes triggered by the end-of-experiment condition, but I still need to ctrl-c kill the driver.

benabruzzo gravatar image benabruzzo  ( 2014-04-08 09:17:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-09-05 07:05:00 -0500

Seen: 126 times

Last updated: Sep 05 '12