Changeset 451 in flair-src for trunk/tools/VrpnLite
- Timestamp:
- Sep 23, 2021, 6:22:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/VrpnLite/src/VrpnLite.cpp
r450 r451 141 141 } 142 142 143 //do not handle empty connections 144 //todo: remove empty connections 145 if(connections.at(i).vrpnobjects.size()==0) continue; 146 143 147 char datas[connections.at(i).vrpnobjects.size()*(sizeof(position)+sizeof(quaternion))+ sizeof(time)]; 144 148 char *datasPtr=datas; … … 147 151 Quaternion objectQuaternion; 148 152 const VrpnObject* vrpnobject=*it; 149 //printf(" send to %s client %i\n",vrpnobject->ObjectName().c_str(),connections.at(i).srcId);153 //printf("%lld send to %s client %i size %i\n",GetTime()/1000000,vrpnobject->ObjectName().c_str(),connections.at(i).srcId,sizeof(datas)); 150 154 vrpnobject->GetPosition(objectPosition); 151 155 vrpnobject->GetQuaternion(objectQuaternion); … … 171 175 memcpy(datasPtr,&time, sizeof(time));//only one time for all VrpnObject; suppose it is the same! 172 176 dataSocket->SendMessage(datas,sizeof(datas),connections.at(i).srcId); 177 //printf("%lld send client %i size %i\n",GetTime()/1000000,connections.at(i).srcId,sizeof(datas)); 178 173 179 } 174 180 }
Note:
See TracChangeset
for help on using the changeset viewer.