Robotics StackExchange | Archived questions

replaying the log data file with a command line tool?

Hello

I want to use log data option in the window menu, so I started recording my simulation. And I want to reply the file but I do not know how, actually I used this line:

gazebo -p ~/pathtofile/state.log

and I get this error [ERROR] [1381242388.857410953]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying.

then I tried to do the following: roscore and then replaying the file but it keeps waiting with (waitForService: Service [/gazebo/setmodelstate] has not been advertised, waiting...)

I usually start my simulation with roslaunch package_name Launch.file

I am using groovy, gazebo 1.9.1 and gazeborospckages

is there a way to reply the log data file without these errors?

Thanks in advance

Asked by Zahra on 2013-10-08 09:35:24 UTC

Comments

Answers

The error message you see is coming from ROS. You only need to use Gazebo to play a log file. Do not use rosrun or roslaunch.

Asked by nkoenig on 2013-10-10 10:55:47 UTC

Comments