Update of /cvsroot/playerstage/code/stage/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30000/src

Modified Files:
        p_simulation.cc 
Log Message:
fixed property code in player simulation wrapper

Index: p_simulation.cc
===================================================================
RCS file: /cvsroot/playerstage/code/stage/src/p_simulation.cc,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** p_simulation.cc     25 May 2006 21:35:01 -0000      1.15
--- p_simulation.cc     30 May 2006 20:10:00 -0000      1.16
***************
*** 204,213 ****
    // Is it a request to set a model's pose?
    else if(Message::MatchMessage(hdr, PLAYER_MSGTYPE_REQ, 
!                               PLAYER_SIMULATION_REQ_SET_PROPERTY, 
                                this->addr))
      {
  
!       player_simulation_property_req_t* req = 
!       (player_simulation_property_req_t*)data;
        
        // look up the named model      
--- 204,213 ----
    // Is it a request to set a model's pose?
    else if(Message::MatchMessage(hdr, PLAYER_MSGTYPE_REQ, 
!                               PLAYER_SIMULATION_REQ_SET_PROPERTY_INT, 
                                this->addr))
      {
  
!       player_simulation_property_int_req_t* req = 
!       (player_simulation_property_int_req_t*)data;
        
        // look up the named model      
***************
*** 219,228 ****
          int ack = 
            stg_model_set_property( mod, 
!                                   req->property, 
                                    (void*)req->value );
          
          this->driver->Publish(this->addr, resp_queue,
                                ack==0 ? PLAYER_MSGTYPE_RESP_ACK : 
PLAYER_MSGTYPE_RESP_NACK,
!                               PLAYER_SIMULATION_REQ_SET_PROPERTY);
          return(0);
        }
--- 219,228 ----
          int ack = 
            stg_model_set_property( mod, 
!                                   req->prop, 
                                    (void*)req->value );
          
          this->driver->Publish(this->addr, resp_queue,
                                ack==0 ? PLAYER_MSGTYPE_RESP_ACK : 
PLAYER_MSGTYPE_RESP_NACK,
!                               PLAYER_SIMULATION_REQ_SET_PROPERTY_INT);
          return(0);
        }



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to