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

Models inserted before a log starts being recorded are not recorded #2428

Closed
osrf-migration opened this issue Feb 15, 2018 · 10 comments
Closed

Comments

@osrf-migration
Copy link

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


How to reproduce:

  1. Open Gazebo
  2. Insert some models, at least one of them should move, like the double pendulum
  3. Record a log
  4. Close Gazebo
  5. Start Gazebo playing back the log.

The models never show up and messages like these keep being printed:

[Err] [World.cc:2383] Unable to find model[double_pendulum_with_base]
[Err] [World.cc:2383] Unable to find model[unit_box]

This was probably caused by pull request #2608

@osrf-migration
Copy link
Author

Original comment by Deanna Hood (Bitbucket: d_hood).


Confirmed that this was working fine in 8.2 (you probably knew that already but I was wondering if maybe this was actually just never supported).

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


It used to work because we would update the SDF description with the current contents of the world on log start.

this change broke that behavior.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


@chapulina It seems like we can just revert the initialSDF code, and everything will work again. Is there something I'm missing?

@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


I vaguely remember that in some situations models were being duplicated. Commit fabd662 seems to be relevant, but I don't see those changes on the pull request.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


This could also be the same issue as issue #2297.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


@chapulina it looks like you refactored the duplicate model code here (5fb430b).

Locally, I have reverted the initialSdf code, and have failed to reproduce the duplicate model problem as described here.

I'll make a PR with this revert, which should solve both this issue and #2297.

@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Thanks for investigating and solving the issue, I'll review the PR

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Correct, this change won't fix #2297.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Fixed in pull request #2890

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "new" to "resolved"

Resolved in pull request #2890

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