0
$\begingroup$

Rosanswers logo

Hello, im tryng to implement nodelets with pcl, can someone help me with a basic example on how to create a nodelet?, i already read about the pluginlib and the nodelet from the wiki ros page, still i have not been able to create a nodelet. Please i would really apreciate some help.


Originally posted by Alekzander on ROS Answers with karma: 21 on 2012-04-08

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I wrote one recently. A separate Convert class does the work, and a minimal node and nodelet instantiate it. For several reasons, I find it convenient to have both.


Originally posted by joq with karma: 25443 on 2012-04-08

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by Alekzander on 2012-04-08:
Thanks a lot that's very illustrative, just one more question, the onInit method is kind of the same as: int main()?

Comment by tfoote on 2012-04-09:
It is not like main. It should return quickly. It will be called when the nodelet has been created to allow you to setup operations.

Comment by joq on 2012-04-09:
@tfoote makes an important point. Don't think of onInit() as main(), it's really just the constructor, which should return immediately.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.