Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3545 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Mar 14, 2005, 11:50:27 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: minor changes in PNode debug output

Location:
orxonox/trunk/src/lib/coord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/null_parent.cc

    r3544 r3545  
    7474void NullParent::update (float timeStamp)
    7575{
     76
     77  printf ("NullParent::update - (%f, %f, %f)\n", this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    7678  this->absCoordinate = this->relCoordinate;
    7779  this->absDirection = parent->getAbsDir () * this->relDirection;
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3544 r3545  
    4242  this->bAbsDirChanged = false;
    4343  this->parent = NULL;
    44 
    45   printf("PNode::PNode() - constructor, now adding\n");
     44  this->objectName = NULL;
     45
    4646  NullParent* np = NullParent::getInstance();
    4747  np->addChild(this);
    48   printf("PNode::PNode() - finished adding\n");
    4948}
    5049
     
    6665  this->bAbsDirChanged = false;
    6766  this->parent = parent;
     67  this->objectName = NULL;
    6868
    6969  parent->addChild (this);
     
    8686PNode::PNode(char* name)
    8787{
    88   printf("PNode::PNode(char*) - start\n");
    8988  this->children = new tList<PNode>();
    9089  this->bRelCoorChanged = true;
     
    9392  this->bAbsDirChanged = false;
    9493  this->parent = NULL;
    95   printf("PNode::PNode(char*) - end\n");
     94  this->objectName = NULL;
    9695}
    9796
     
    355354
    356355  */
    357 
     356  //pNode->remove();
    358357  this->children->remove (pNode);
    359358  pNode->parent = NULL;
     
    442441void PNode::update (float timeStamp)
    443442{
    444   //printf ("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
     443  printf ("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    445444  // printf("%s", this->objectName);
    446445
     
    449448          if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/)
    450449            {
    451               printf("PNode::update () - this->bAbsCoorChanged = true\n");
    452450              /* if you have set the absolute coordinates this overrides all other changes */
    453451              this->relCoordinate = this->absCoordinate - parent->getAbsCoor ();
     
    483481          if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/)
    484482            {
    485               printf("PNode::update () - this->bAbsCoorChanged = true\n");
    486483              /* if you have set the absolute coordinates this overrides all other changes */
    487484              this->relCoordinate = this->absCoordinate - parent->getAbsCoor ();
Note: See TracChangeset for help on using the changeset viewer.