Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robot_state_publisher stops working until the /clock topic is equal to the last timestep before the reset #88

Open
ghost opened this issue May 28, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented May 28, 2018

Hello.
There is a delay when I perform a reset_simulation for /clock topic.

Below is my code:

def resetSimulation(self):
    rospy.wait_for_service('/gazebo/reset_simulation')
    try:
        self.reset_proxy()
    except rospy.ServiceException as e:
        print ("/gazebo/reset_simulation service call failed")
    while tfData is None:
      try:
          tfData = rospy.wait_for_message('/ground_truth/state', Odometry, timeout=5)
      except:
          rospy.loginfo("Current drone pose not ready yet, retrying to get robot pose")

The reset is successful but it takes a lot of time for the simulation to start again. The robot_state_publisher stops working until the clock is equal to the last timestep before the reset.

@sloretz
Copy link
Contributor

sloretz commented May 29, 2018

Hi @JaxDraxler, thanks for reporting the issue. Would you mind posting the launch file used to start robot_state_publisher?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant