I built the open-dis python from the start, but haven't worked with it much. Feel free to use it. The EntityStatePdu is in https://github.com/open-dis/open-dis-python/blob/master/src/main/python/distributed_interactive_simulation/dis7.py Look for EntityStatePdu. I don't recall, but offhand I don't recall wether the update process updates the count itself. It was a hurried implementation. If you've got an improvement, I'd be happy to pack it in.The parse thing is below--the numberOfVariableParameters...
BTW, I'm trying to move to github, and doing some work on a DIS wiki. That's available, but a long way from being finished. https://github.com/open-dis/DISTutorial/wiki with a link to "wiki" in a small, faint text near the top. [https://avatars2.githubusercontent.com/u/16751953?s=400&v=4]https://github.com/open-dis/DISTutorial/wiki Home · open-dis/DISTutorial Wiki · GitHubhttps://github.com/open-dis/DISTutorial/wiki github.com DISTutorial - DIS: The Missing Handbook. An introduction to the concepts...
In a horrible, complex way. (Two screen caps in reversed order for some reason.) From the ieee-1278.1 standard: [cid:232c92cc-d3b8-49a1-8d86-3ec6dc663ece] [cid:a85afc8f-df4f-402e-8c49-eda962d851fc] From: robert spriggs spriggsy@users.sourceforge.net Sent: Wednesday, February 7, 2018 11:49:29 AM To: [open-dis:discussion] Subject: [open-dis:discussion] Python set entity Orientation OK, think ive solved it. the angles are in radians. pdu.entityOrientation.psi = (pi * 90 / 180) sets the heading of my...
BTW, I'm trying to move to github, at http://github.com/open-dis, with separate repos for each programming language and a very incomplete DIS wiki. It makes it easier for users to submit fixes as well. The text should be a first character that specifies a text type and then 0-11 characters of text. You'll have to get the characters individually and stuff them into a string. Was that the underlying problem? Make sure the ESPDU is able to be decoded by Wireshark and that's displayed if you're creating...
Yes, the original source code was created from an XML description of the classes and attributes. That made it easy to generate implementations for other languages (C++, Javascript, a few others) that works reasonably well, but it's not really practical to regenerate code libraries by applying Unix-style patches when a lot of people don't run Unix and are thus unable to fix it. The update process for cross-platform dev environments is just too annoying and complex, though it would be nice to have...
I’m just picking up the git habits myself; I was used to the older svn habits. https://yangsu.github.io/pull-request-tutorial/ Basically, have your own branch, and ask us to commit it. It’s easy for us to bring it in, and we can discuss it and commit. In addition I’ll see if you can be a C# committer. I’m trying to turn open-dis into more of a multiple-people-commit project, particularly on an eventual DIS Tutorial thingie. Not quite sure what the format of that should be. Basically a document that...
OK, added to code base at sourceforge and github. Thanks! On Sep 7, 2017, at 9:58 PM, Richard Murphy fixedpin@users.sf.net<mailto:fixedpin@users.sf.net> wrote: Here is some MS C# that implements DisTime using simple static calls utilizing System.Globalization. Tested fairly thoroughly and works as expected with rollover, etc. Tested using VS 2010 and .Net 4.5
Not a C++ guy, but I think the string code is part of the standard library. / strncpy example / include <stdio.h> include <string.h> On Sep 7, 2017, at 8:32 AM, noreply@in.sf.netnoreply@in.sf.net wrote: Hi Same problem here. How did you fixed it? Including cstring had no effect. (I included it in FastEntityPdu.cpp) [bugs:#24]https://sourceforge.net/p/open-dis/bugs/24/ C++ compilation problem : 'strncpy not declared in this scope' Status: open Group: v1.0_(example) Created: Thu Nov 14, 2013 06:38...