Homec4science

Cleaned the initialization logic.

Authored by atuleu on Jan 27 2012, 15:08.

Description

Cleaned the initialization logic.

It make no sense to change the synchronizer during the Oncilla object
life, (especially if the synchronizer is running). Therefore it is
passed as a paremeter of the Oncilla object. Made call to the
registerXXNode of the synchronizer in the initialization. Now a basic
setup will look like :

OncillaSynchronizerPtr s =

OncillaSynchronizerPtr(new OncillaXXXSynchronizer());

Oncilla oncilla(s);

while(true){

//use the robot

s->sync();

}

git-svn-id: https://redmine.amarsi-project.eu/svn/quaddrivers/trunk/liboncilla@53 2746b95a-9d07-46a8-bf26-348e1df0592e

Details

Committed
atuleuJan 27 2012, 15:08
Pushed
tuleuMay 7 2018, 15:22
Parents
R6622:69ecc4969e5c: Used Oncilla::Leg instead of unsigned int
Branches
Unknown
Tags
Unknown