ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can I Run a nodelet as a regular C++ class

asked 2014-02-03 02:34:44 -0500

Woodrow Douglass gravatar image

If i load up a nodelet, from a reguler c++ program, call it's init function, and then call ros::spin(), will it function as a regular node?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-02-03 02:47:06 -0500

dornhege gravatar image

Yes, you can make a node out of a nodelet. In fact that's somehow what the nodelet manager does. This might be a very good idea if you have code that might be used/combined somewhere as a nodelet, but also can provide standalone functionality easily.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-03 02:34:44 -0500

Seen: 383 times

Last updated: Feb 03 '14