robotsthatdream / cafer

cafer framework for the DREAM project
5 stars 1 forks source link

Refactoring with Abstract Client #9

Closed LeniLeGoff closed 8 years ago

LeniLeGoff commented 8 years ago

Create a AbstractClient to make Client for Component : class AbstractClient{ public : AbstractClient(){connect_to_ros();} virtual ~AbstractClient(){disconnect_from_ros();}

virtual void update() = 0;
virtual void connect_to_ros(){}
virtual void disconnect_from_ros(){}
virtual bool is_initialized(){return is_init;}

protected: bool is_init = false; };

LeniLeGoff commented 8 years ago

That's arlready done in data_manager branch

LeniLeGoff commented 8 years ago

The abstractClient is implemented now in component.hpp. cafer_core.hpp is just the main header now.