-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server only receive first transform #161
Comments
Hi Terajnol, Thanks for reporting the bug. Best, |
…device name, device type, header version, message ID or meta information is reset. Update of other message attributes will not set the m_IsBodyPacked flag to false. User is encouraged to call the InitPack() function to reset the flag.
Great ! |
Currently Only the following function will reset the m_IsBodyPacked flag: Best, |
Sorry for not following this up. I'm not sure if it's a good idea to call InitPack() in SetMatrix(), because it would be confusing if the class resets the header whenever we set values in the content. Instead, I would just set the m_IsBodyPackedFlag to NULL whenever a new value is set in the content, which will trigger the packing process when Pack() is called. |
…ullfilled the needs by setting the flag to false. See issue openigtlink#161
…ullfilled the needs by setting the flag to false. Tests are also added regarding this new feature. See issue openigtlink#161
@tokjun , please review the pull request. m_IsBodyPackedFlag is set to false when data is modified. Tests are also added |
@leochan2009 Thanks for fixing it quickly. They are looking good. |
Hi all,
I am simply running the TrackerClient and ReceiveServer examples as described in the tutorial.
Port is set to 18944 and server to "localhost" (I run server and client on the same machine).
If I send X TransformMessage (or PositionMessage) from TrackerClient, I receive X messages to ReceiveServer but their values are all the same (value of the first message sent from TrackerClient). In the provided examples, TrackerClient is supposed to send a different transform matrix for each pack but ReceiveServer only gets the same matrix for each pack.
Sorry if this is really obvious, but I cannot figure out why I am always sending the same pack.
Thanks
The text was updated successfully, but these errors were encountered: