0
$\begingroup$

Rosanswers logo

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?


Originally posted by devesh on ROS Answers with karma: 104 on 2013-11-21

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by buckbaskin with karma: 16 on 2016-03-30

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by Procópio on 2016-04-27:
just a couple of years =), I am marking your answer as correct and closing the question, as it seems quite valid to me... cheers

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.