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

Are these features possible with ROS/Stage?

asked 2012-06-06 14:56:45 -0500

breakspirit gravatar image

I am interested in implementing the following features into my ROS/Stage project and I would like feedback as far as how feasible these ideas are. I would appreciate any feedback I can get regarding general information on what I would need to do to accomplish these goals:

  1. The ability to select a robot in the Stage simulator with the mouse and perform actions on that robot via ROS commands. I would need to be able to dynamically choose which robot is the robot on which I am doing certain actions via mouse clicks in Stage.

  2. The ability to add/remove robots from the Stage simulation dynamically while running ROS.

  3. The ability to add/remove obstacles in the Stage simulation dynamically. This may simple mean loading a new world file while a simulation is in progress.

Again, I would like to know how feasible these ideas are and/or what general steps might be required to accomplish these goals. Thank you very much for any information you can provide.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2012-06-22 13:36:39 -0500

Brian Gerkey gravatar image

All of those feature should be implementable, with enough work. You would start by deconstructing the code for stageros and augmenting it with the features that you want. Basically, you'd end up writing your own ROS wrapper for libstage, with the extra functionality that you want. I expect that the toughest part will be the graphical selection of robots and execution of ROS code, because that may require modifying libstage's GUI hooks.

Fair warning: you'll be coding in a space that is not well exercised by other people, and so you'll likely end up diving into the libstage code itself to understand what's going on.

Sorry that I can't provide more guidance than that; if I were doing this, I would start by reading the libstage headers to see what's possible.

edit flag offensive delete link more
0

answered 2012-11-08 02:45:42 -0500

SL Remy gravatar image

updated 2012-11-08 02:54:46 -0500

Well I'm not sure about the first item, but the second and third may have been possible for a while (at least 3 years).

Not sure why it didn't make it mainstream, but the code to add/remove models appears in stageros.cpp?rev=28208.

I have not tested this code, but will try to do so soon and update this answer with the progress.

edit flag offensive delete link more

Comments

I know it's a long shot but, @brian-gerkey do you know if there was an issue with the code? I ask because you were one of the people cc'd in the https://code.ros.org/trac/ros-pkg/ticket/3879.

SL Remy gravatar image SL Remy  ( 2012-11-08 02:56:10 -0500 )edit

Question Tools

4 followers

Stats

Asked: 2012-06-06 14:56:45 -0500

Seen: 743 times

Last updated: Nov 08 '12