Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
a5b9a919
Commit
a5b9a919
authored
5 years ago
by
brutzman
Browse files
Options
Downloads
Patches
Plain Diff
report when done; TODO note library bug
parent
9c74b426
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/src/OpenDis7Examples/EspduReceiver.java
+4
-0
4 additions, 0 deletions
examples/src/OpenDis7Examples/EspduReceiver.java
with
4 additions
and
0 deletions
examples/src/OpenDis7Examples/EspduReceiver.java
+
4
−
0
View file @
a5b9a919
...
...
@@ -6,6 +6,7 @@ import java.util.*;
import
edu.nps.moves.dis7.*
;
import
edu.nps.moves.dis7.util.*
;
import
edu.nps.moves.disenum.PduType
;
/**
* Receives PDUs from the network in IEEE DIS format.
...
...
@@ -67,6 +68,8 @@ public class EspduReceiver
Vector3Double
position
=
((
EntityStatePdu
)
aPdu
).
getEntityLocation
();
System
.
out
.
println
(
" ID triplet: ["
+
eid
.
getSiteID
()+
", "
+
eid
.
getApplicationID
()+
", "
+
eid
.
getEntityID
()+
"] "
);
System
.
out
.
println
(
" Location in DIS coordinates: ["
+
position
.
getX
()
+
", "
+
position
.
getY
()
+
", "
+
position
.
getZ
()
+
"]"
);
// TODO fix library!
System
.
out
.
println
(
"** TODO error, 'PDU not implemented' is a library bug"
);
}
}
// end iterator loop through PDU bundle
}
// end while
...
...
@@ -76,5 +79,6 @@ public class EspduReceiver
System
.
out
.
println
(
"Problem with DisExamplesOpenDis7.EspduReceiver, see exception trace:"
);
System
.
out
.
println
(
e
);
}
System
.
out
.
println
(
"DisExamplesOpenDis7.EspduReceiver complete."
);
}
// end main
}
// end class
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment