[IGSTK-Users] How to generate OUT OF VOLUME message for tracked tools?

Andinet Enquobahrie andinet.enqu at kitware.com
Tue Aug 23 06:12:30 EDT 2011


> I am curious to know something about the TrackerDataLogger example in IGSTK
> examples. When the application is running and tracking the tools, if any
> tool just goes out of volume, then it won't show any transform coordinates
> for the time period the tool was out of volume. Is it possible to stream a
> NaN message for the timestamps the tool was out of volume?

TrackerToolNotAvailableToBeTrackedEvent is thrown when the tracking
tool is out of the volume. You can extend the TrackerDataLogger
example to capture this event and set missing values to NaN.

>
> So I am specifically trying to produce something like this::::
>
> 0.0000     34.270      403.400     223.9     -9.456    2.046      23.752
> 51.245
> 96.457     14.574      403.400     223.9     -9.456    2.046      23.752
> 51.245
> 162.05     1.270      403.400     223.9     -9.456    2.046      23.752
> 51.245
> 262.12     34.270      403.400     223.9     -9.456    2.046      23.752
> 51.245
> 428.98     34.270      403.400     223.9     -9.456    2.046      23.752
> 51.245
> 596.94      NaN            NaN        NaN        NaN     NaN
> NaN         NaN
> 747.13      NaN            NaN        NaN        NaN     NaN
> NaN         NaN
> 846.94      NaN            NaN        NaN        NaN     NaN
> NaN         NaN
> 946.31      NaN            NaN        NaN        NaN     NaN
> NaN         NaN
> 1047.07      NaN            NaN        NaN        NaN     NaN
> NaN         NaN
> 1112.17    NaN            NaN        NaN        NaN     NaN
> NaN         NaN
> 1179.41     34.270      403.400     223.9     -9.456    2.046
> 23.752     51.245
> 1278.08    34.270      403.400     223.9     -9.456    2.046      23.752
> 51.245
>
> Please let me know if this can be achieved and where do I have to change to
> get this working.
>
> Thanks in advance
>
> sincerely
>
> Arefin
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>



-- 
Andinet Enquobahrie, Ph.D.
Technical Lead
Kitware, Inc.

http://www.kitware.com
(919) 969-6990 x311



More information about the IGSTK-Users mailing list