openigtlink / OpenIGTLink

Free, open-source network communication library for image-guided therapy
http://openigtlink.org
BSD 3-Clause "New" or "Revised" License
102 stars 184 forks source link

EHN: ReceiveClient, added support for SensorMessage, display DeviceName #227

Closed adeguet1 closed 4 years ago

adeguet1 commented 4 years ago

I used the example ReceiveClient quite a bit for debugging purposes. I added a function to display the content of igtl::SensorMessage as well as the DeviceName. The device name is useful when sending multiple types on messages on the same port.

leochan2009 commented 4 years ago

This will be helpful for current (3.1.0) and future versions. i will not apply this commit to previous versions as they are already released. so you will only able to use find_package (OpenIGTLink 3.1) or later versions.