![]() |
MAK Data Logger API Documentation for DIS
|
DIS Entity Publisher. More...
Inheritance diagram for MAKLogger::DtLgrDisEntityPublisher:
Collaboration diagram for MAKLogger::DtLgrDisEntityPublisher:Public Member Functions | |
| DT_VIRTUAL_CTR (DtLgrDisEntityPublisher,(const DtEntityStatePdu &pdu, DtLgrDisSimulationManager &simManager)) virtual ~DtLgrDisEntityPublisher() | |
| Main constructor. More... | |
| virtual void | update (const DtPdu &pdu, const DtAbsoluteTime &updateTime, bool isTimeFromPast, bool isStateUpdate, double scaling, bool isStatic, bool sendFlag) |
| Process a state msg. More... | |
| virtual void | sendUpdateAtScaleChangePoint (double oldScale, double newScale, bool wasStatic, bool isStatic) |
| Fills out 'toSend' with a potentially scaled version of the potentially dead-reckoned 'lastRead' (using the time and scale at the exact moment of switching to PAUSE), and sends using sendPdu. More... | |
| virtual bool | timeoutNow () |
| Returns 'true' if the logger should time out this entity. More... | |
| virtual void | tick (double scale, bool isStatic) |
| Called periodically to give control to the entity. More... | |
| virtual const DtEntityIdentifier & | id () |
| Returns the entity's id. More... | |
| virtual void | processDIGuyPdu (const DtDIGuyCustomPdu &pdu) |
Public Member Functions inherited from MAKLogger::DtLgrPublisherInterface | |
| DtLgrPublisherInterface (DtLgrDisSimulationManager &simMgr) | |
| virtual | ~DtLgrPublisherInterface () |
| DTOR. More... | |
| virtual DtPacket * | createUpdatePacket (const DtAbsoluteTime &time) |
| Create an update packet with the given time from the publisher's encoded state data. More... | |
| virtual void | setExerciseId (unsigned char exerciseId) |
| Set the exercise id. More... | |
| virtual unsigned char | exerciseId () const |
| Get the associated exercise id. More... | |
Protected Member Functions | |
| DtLgrDisEntityPublisher (const DtLgrDisEntityPublisher &src) | |
| Copy constructor (not implemented) More... | |
| DtLgrDisEntityPublisher & | operator= (const DtLgrDisEntityPublisher &src) |
| Assignment operator (not implemented) More... | |
| virtual const DtStateMsg & | lastState () const |
| Return the last state update handled by the publisher. More... | |
| virtual void | doDDR (DtTime tm, double timescale) |
| virtual bool | sendNow () |
| Returns 'true' if we need to send a pdu update right now, where the decision is based on either a heartbeat, or a forced "send" generated by time scale change. More... | |
| virtual void | sendScaled (double timescale, bool isStatic, bool doSend) |
| Fills out 'toSend' with a potentially scaled version of 'lastRead', and sends using sendPdu. More... | |
| virtual void | sendCurrent (double timescale, bool isStatic) |
| Fills out 'toSend' with a current data, and sends using sendPdu. More... | |
| virtual void | sendPdu () |
| Sends 'toSend' to the network and sets myLastRealTime to current time. More... | |
| virtual bool | getArtPartParamsFromPdu () |
| Extracts the current sets of articulated-part parameters and attached parts and (as stored in the 'lastRead' pdu) and copies them, respectively, in the 'myArtPartRecvList' object and the auxiliary buffer 'myDynBfr'. More... | |
| virtual bool | setArtPartParamsToPdu () |
| Copies the current set of articulated-part parameters and attached parts (as stored in the 'myArtPartSendList' object and the auxiliary buffer 'myDynBfr' respectively) to the 'toSend' pdu. More... | |
| virtual bool | scaleArtPartRateParams (double ts) |
| Scales the rate parameters in the articulated parts (if any) using 'ts' as time-scale. More... | |
| virtual bool | drArtPartParamsToScaleChangePoint (DtTime dt) |
| Scales the rate parameters in the articulated parts (if any) using 'ts' as time-scale. More... | |
| virtual void | scaleVecs (double ts) |
| Scales 'scaledVel' and 'scaledRotVel' by 'ts', and 'scaledAcc' by the square of 'ts'. More... | |
| virtual void | scaleVelocity (double ts) |
| Sets 'myScaledVel', to 'myExtrapVel' scaled by 'ts'. More... | |
Protected Member Functions inherited from MAKLogger::DtLgrPublisherInterface | |
| virtual void | adjustConnectionExerciseId () |
| virtual void | resetConnectionExerciseId () |
| virtual void | adjustProtocolVersionToSend () |
| virtual void | resetProtocolVersionToSend () |
| virtual void | setInitialDISVersion (int version) |
Protected Attributes | |
| DtEntityStatePdu | lastRead |
| DtEntityStatePdu | toSend |
| DtTime | myLastRealTime |
| DtClock * | myClock |
| DtTaitBryan | myExtrapEuler |
| DtVector | myExtrapPos |
| DtVector32 | myExtrapVel |
| DtVector32 | myScaledVel |
| DtVector32 | myScaledAcc |
| DtVector32 | myScaledRotVel |
| DtLgrArtPartList * | myArtPartRecvList |
| DtLgrArtPartList * | myArtPartSendList |
| int | myNumAttParts |
| char * | myPartBuffer |
| int | myPartBufferSize |
| double | myLastTimeScale |
| bool | myFrozenBeforePause |
| DtDeadReckoner * | myOldDeadReckoner |
| DtDeadReckonTypes | myOldDRType |
| bool | myDRTypeChanged |
| DtEntityStateRepository * | myEsr |
Protected Attributes inherited from MAKLogger::DtLgrPublisherInterface | |
| DtTime | myLastUpdateTime |
| DtLgrDisSimulationManager & | mySimMgr |
| unsigned char | myExConnExerciseId |
| unsigned char | myExerciseId |
| int | myInitialDISVersion |
| int | myDefaultDISVersion |
DIS Entity Publisher.
|
protected |
Copy constructor (not implemented)
|
protectedvirtual |
|
protectedvirtual |
Scales the rate parameters in the articulated parts (if any) using 'ts' as time-scale.
| MAKLogger::DtLgrDisEntityPublisher::DT_VIRTUAL_CTR | ( | DtLgrDisEntityPublisher | , |
| (const DtEntityStatePdu &pdu, DtLgrDisSimulationManager &simManager) | |||
| ) |
Main constructor.
Destructor
|
protectedvirtual |
Extracts the current sets of articulated-part parameters and attached parts and (as stored in the 'lastRead' pdu) and copies them, respectively, in the 'myArtPartRecvList' object and the auxiliary buffer 'myDynBfr'.
|
virtual |
Returns the entity's id.
|
protectedvirtual |
Return the last state update handled by the publisher.
Implements MAKLogger::DtLgrPublisherInterface.
|
protected |
Assignment operator (not implemented)
|
virtual |
|
protectedvirtual |
Scales the rate parameters in the articulated parts (if any) using 'ts' as time-scale.
|
protectedvirtual |
Scales 'scaledVel' and 'scaledRotVel' by 'ts', and 'scaledAcc' by the square of 'ts'.
|
protectedvirtual |
Sets 'myScaledVel', to 'myExtrapVel' scaled by 'ts'.
|
protectedvirtual |
Fills out 'toSend' with a current data, and sends using sendPdu.
|
protectedvirtual |
Returns 'true' if we need to send a pdu update right now, where the decision is based on either a heartbeat, or a forced "send" generated by time scale change.
If no update is necessary (at present), the method returns 'false'.
|
protectedvirtual |
Sends 'toSend' to the network and sets myLastRealTime to current time.
|
protectedvirtual |
Fills out 'toSend' with a potentially scaled version of 'lastRead', and sends using sendPdu.
|
virtual |
Fills out 'toSend' with a potentially scaled version of the potentially dead-reckoned 'lastRead' (using the time and scale at the exact moment of switching to PAUSE), and sends using sendPdu.
Implements MAKLogger::DtLgrPublisherInterface.
|
protectedvirtual |
Copies the current set of articulated-part parameters and attached parts (as stored in the 'myArtPartSendList' object and the auxiliary buffer 'myDynBfr' respectively) to the 'toSend' pdu.
|
virtual |
Called periodically to give control to the entity.
As implemented, we send any interim "heartbeat" PDUs
Implements MAKLogger::DtLgrPublisherInterface.
|
virtual |
Returns 'true' if the logger should time out this entity.
|
virtual |
Process a state msg.
Send (a potentially scaled version) only if sendFlag is 'true'.
Implements MAKLogger::DtLgrPublisherInterface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |