Ask Your Question
2

What are the differences between stage and stageros ?

asked Aug 28 '11

Arkapravo gravatar image Arkapravo flag of India
462 1 5 24
http://www.mobotica.com/

updated Nov 30 '11

When using stage, diamondback has 2 executables at /opt/ros/diamondback/stacks/simulator_stage/stage/bin - stage and stageros. How are these two different, particularly in the usage ? Using these two in simple environments shows no differences.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
3

answered Aug 28 '11

Zack gravatar image Zack
206 3 7

updated Aug 30 '11

hmm good question. There are 2 stage executable files in the stage bin directory. stage and stageros.

stage is the one compiled from the original stage files. It can be used as the original stage simulator if the libraries are linked correctly. (By default the libraries are not linked for stage, the stage library has to be added to ldconfig)

However, stage does not provide the interface to ros. So if you use stage, the simulation data will not be available to ros although it will probably still work with player.

stageros on the other hand makes a portion of the stage interface available to ROS. It published the following topics to the ros interface, so that it would work with nodes written for ROS.

/base_pose_ground_truth

/base_scan

/clock

/cmd_vel

/odom

/tf

So if you want to run simulation in ros, you gotta use the stageros instead of stage; in order for ros to interpret the simulation data.

link delete flag offensive edit

Comments

@Zack : Thank you ! I am not really into gazebo - but do we have a similar situation there too ? gazebo and gazeboros (?) ? Arkapravo (Aug 29 '11)edit
Nope, there's only one excutable for gazebo. stage is useful for 2D simulations. It's easier to setup and is good for simple model. However for more complex models, gazebo would be able to model them more accurately. You can take a look at the provided launch files to get an idea of how to launch Zack (Aug 30 '11)edit
simulations in ros. Zack (Aug 30 '11)edit
@Zack : One more observation to confirm to your answer; stageros needs an instance of roscore, stage can function without roscore. Arkapravo (Oct 03 '11)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Aug 28 '11

Seen: 185 times

Last updated: Nov 30 '11