You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
finger563
added a commit
to rosmod/actionlib
that referenced
this issue
Apr 3, 2018
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.
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.
The text was updated successfully, but these errors were encountered: