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

Microsecond simulation time step for stageros [closed]

asked 2013-11-21 05:35:43 -0600

devesh gravatar image

Looking into some sample .world files, I can see that interval_sim value can be set in milliseconds. It seems to be working fine for 100 ms. But when I make it 0.1 ms, it doesn't seem to be running that fast. I am publishing strings via ros topics (by changing code in stageros.cpp) to test how fast it can publish. Either ros publishing or stageros cannot seem to cross the millisec boundary.

Any suggestions, experiences, fixes regarding running stageros simulation (without gui) in the microseconds range?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Procópio
close date 2016-04-27 07:18:52.410082

1 Answer

Sort by » oldest newest most voted
0

answered 2016-03-30 16:09:35 -0600

buckbaskin gravatar image

I know this is pretty late, but it's worth a shot. Stageros interval time is the rate at which it simulates physics and sensors in the simulation. The ROS nodes running generally think that simulated ROS time is true time, so they see everything as if it is acting full speed. On the other hand, the simulation will run very slowly in real time because it is taking the computer a long time to calculate everything it needs to for each .1 millisecond. If you are looking for the simulation to run closer to real time as you see it, I found that 1 ms is about as fast as I can go on my machine.

edit flag offensive delete link more

Comments

just a couple of years =), I am marking your answer as correct and closing the question, as it seems quite valid to me... cheers

Procópio gravatar image Procópio  ( 2016-04-27 07:18:40 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-11-21 05:35:43 -0600

Seen: 499 times

Last updated: Nov 21 '13