Skip to content

Conversation

@kevincwells
Copy link
Contributor

@kevincwells kevincwells commented Nov 2, 2016

Add additional nodelet layer to mirror the node implementation. This allows the Slam GMapping library to be run as a nodelet instead. This would allow you to, for example, run it under the same nodelet manager as the nodelet producing the /scan output for greater efficiency.

Note that this was done in conjunction with a forthcoming change to the turtlebot_navigation package (pull request: turtlebot/turtlebot_apps#158), which serves as an example of the two nodelets running together under the same nodelet manager. Initial testing showed a ~11% reduction in overall memory usage and ~20% CPU usage running the slam_gmapping nodelet and depthimage_to_laserscan nodelet together, as compared to running slam_gmapping in a separate node.

Add additional nodelet layer to mirror the node
implementation. This allows the Slam GMapping
library to be run as a nodelet instead. This
would allow you to, for example, run it under
the same nodelet manager as the nodelet producing
the /scan output for greater efficiency.
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

other than a small nitpick, lgtm

class SlamGMappingNodelet : public nodelet::Nodelet
{
public:
SlamGMappingNodelet() {};
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: no ; required here (also below)

Removed superfluous semicolons and
mildly clarified info stream output.
@kevincwells
Copy link
Contributor Author

Hi @wjwwood -- thanks for catching those. I've submitted a new commit that removes them. Please use GitHub's new-ish squash on merge feature, or I'd be happy to squash them myself and force-push if you'd prefer.

@wjwwood wjwwood merged commit d1cda26 into ros-perception:hydro-devel Nov 4, 2016
@wjwwood
Copy link
Member

wjwwood commented Nov 4, 2016

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants