Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

C++ RAII interface to ROS?

Is there a supported RAII interface to ROS? i.e. a class that encapsulates the ros connection, with initialization in the constructor and teardown in the destructor, etc?

The tutorials all seem to start with a call to ros::init, for example, and I don't understand why that can't just be done in the NodeHandle constructor.