actionlib
actionlib copied to clipboard
SimpleActionClient / SimpleActionServer default constructors
Currently, they cannot be defined as members of classes because they lack default constructors - for lazy initialization as might be needed when they exist as part of another class.
You can define SimpleActionClient and SimpleActionServer as members of classes. You just need to initialize them in the member initializer list of the constructor.
A popular alternative is to put them on the heap, but I would rather recommend boost::optional for optional members.