Talk is a simple listen-only VR-Link application which has been extended to take advantage of HLA Evolved Specific functionality.
There is virtually no difference between this and the regular talk example, as the HLA Evolved features are provided automatically by VR-Link. The ListenEvolved example takes advantage of these features to provide more information.
#include <iostream>
int main(int argc, char** argv)
{
try
{
appInit.setFederateType( "Talk Evolved Example" );
appInit.setExecName( "MAK-RPR-2.0" );
appInit.setRprFomVersion( 2.0 );
appInit.setRprFomRevision( 1 );
appInit.parseCmdLine();
double refLongitude =
DtDeg2Rad(-121.326577);
DtTopoView topoView(esr, refLatitude, refLongitude);
while (simTime <= 10.0)
{
topoView.setLocation(position);
topoView.setVelocity(velocity);
position[0] += velocity[0] * dt;
simTime += dt;
}
}
return 0;
}