Skip to content
New issue

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

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

Already on GitHub? # to your account

[gazebo_ros] fixes #361 #362

Merged
merged 1 commit into from
Dec 7, 2015

Conversation

guihomework
Copy link
Contributor

Implemented a dictionary of resolved package path in the URDF spawner to speed up the process.
Also not starting all over finding new occurrences of package:// as suggested by @rhaschke

Not starting all over did not improve significantly the time, but the dictionary improved spawning from 15.5 sec down to 2.7 sec on our file and reduced loading time of the bare shadow hand (without 200 tactile elements) by more than 7 seconds.

@@ -28,6 +28,7 @@
#include <signal.h>
#include <errno.h>
#include <iostream>
#include <map>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't need map in the header, you should include it in cpp only.

@rhaschke
Copy link

rospack PR #49 and roslib PR #97 will solve the caching issue deeper in the call chain.

@hsu
Copy link
Collaborator

hsu commented Nov 26, 2015

+1

one more approval and we can merge this. Thanks!

@guihomework
Copy link
Contributor Author

Removed the last commit about caching, as the caching issue is solved in a better fashion lower down the chain in rospack in ros/rospack#49 , and produces very similar results in terms of timing.

The other commit fixing the reading the urdf from start everytime one package has been resolved should still be merged.

@scpeters
Copy link
Member

scpeters commented Dec 7, 2015

+1

scpeters added a commit that referenced this pull request Dec 7, 2015
@scpeters scpeters merged commit 1483856 into ros-simulation:indigo-devel Dec 7, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants