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

Run Script on Starting rqt_gui Shell Plugin

asked 2013-01-30 07:11:41 -0500

jker gravatar image

updated 2013-01-30 11:36:27 -0500

130s gravatar image

I've been looking to automate a setup for rqt_gui, and I was wondering if there was any way to run a script on startup of an rqt_gui Shell plugin object. I know the shell currently acts normally and sources the .bashrc when started, but I was hoping that I could make a small script that would only be run in this shell (not in any normal shell I might use). I'm not too sure this is actually possible, but I figured it couldn't hurt to ask, if only to find out it can't be done easily.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2013-03-05 23:46:32 -0500

Dorian Scholz gravatar image

updated 2013-03-05 23:47:21 -0500

This is currently not supported, but could be implemented. First as background info, rqt_shell offers three different backends for the actual command shell:

1) one doing a simple single command shell call for each command given

2) one based on the Spyder project's shell

3) one using an actual XTerm instance and just embedding its window into rqt_gui

For 1) the script would have to be executed every time before the command, since the shell used only lives for the execution time of that single command.

For 2) the script has to be run once after the shell is set up.

For 3) the script would have to be passed as command line parameter when starting the XTerm instance.

Please feel free to supply patches implementing any or preferably all of these.

edit flag offensive delete link more
0

answered 2013-03-04 11:29:46 -0500

130s gravatar image

More precisely, you're probably talking about rqt_shell.

I feel interesting usage and worth opening up an enhancement ticket here. As I briefly looked at its source code, I haven't found a way to pass argument to rqt_shell.

It looks like, however, this seems configured to be run-able from commandline standalone, which is not happening on my environment (Quantal, this git source ver).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-30 07:11:41 -0500

Seen: 426 times

Last updated: Mar 05 '13