src/experiments/k4/YAPOCClient/YAPOCClient.cpp
void Initialize(){
  //register ports
  outCommandPort.Register("/YAPOCClient/out/command");
  inPositionPort.Register("/YAPOCClient/in/position");
  in_pos.Register("/YAPOCClient/in/target");
  in_leftboxes.Register("/YAPOCClient/in/leftboxes");
  in_rightboxes.Register("/YAPOCClient/in/rightboxes");
  in_attnboxes.Register("/YAPOCClient/in/attnboxes");

  //initialize newpositions and statusbits
  for (int i = 0; i < N_AXIS; i++){
    newpositions[i] = 0;
    statusbits[i] = OFF;
  }
}
/* this function is called by main to register all ports and initialize
   some parameters */
this function is called by main to register all ports and initialize
some parameters
this function is called by main to register all ports and initialize some parameters
void Initialize(){
  outCommandPort.Register("/YAPOCClient/out/command");
  inPositionPort.Register("/YAPOCClient/in/position");
  in_pos.Register("/YAPOCClient/in/target");
  in_leftboxes.Register("/YAPOCClient/in/leftboxes");
  in_rightboxes.Register("/YAPOCClient/in/rightboxes");
  in_attnboxes.Register("/YAPOCClient/in/attnboxes");
  for (int i = 0; i < N_AXIS; i++){
    newpositions[i] = 0;
    statusbits[i] = OFF;
  }
}
void Initialize ( ) { outCommandPort . Register ( " " ) ; inPositionPort . Register ( " " ) ; in_pos . Register ( " " ) ; in_leftboxes . Register ( " " ) ; in_rightboxes . Register ( " " ) ; in_attnboxes . Register ( " " ) ; for ( int i = 0 ; i < N_AXIS ; i ++ ) { newpositions [ i ] = 0 ; statusbits [ i ] = OFF ; } }
this function is called by main to register all ports and initialize
some parameters
this function is called by main to register all ports and initialize some parameters
//register ports //initialize newpositions and statusbits