Hi,
If you just want to read sensor data, you can use the tracking device
classes without the filter classes:
mitk::RandomTrackingDevice::Pointer tracker =
mitk::RandomTrackingDevice::New();
mitk::TrackingTool::Pointer tool = tracker->AddTool("tool1");
tracker->OpenConnection();
tracker->StartTracking();
mitk::Point3D pos;
tool->GetPosition(pos);
std::cout << "Position is " << pos;
Best Regards,
Jochen
Von: Kostas Pachopoulos [mailto:[email protected]]
Gesendet: Mittwoch, 27. Mai 2009 14:13
An: [email protected]
Betreff: [mitk-users] mitkIGT: direct retrieval of sensor data without
theuse of filter
Hi,
the example included for mitkIGT uses filters while retrieving the data
from the sensors. I'd like to read data on-the-fly from the sensor and
output them on the console. How is this possible?
The following:
for (int i = 0; i < source->GetNumberOfOutputs(); i++) {
mitk::NavigationData::Pointer navData= source->GetOutput(i);
navData->GetPosition().GetElement(0); //for example
}
produces errors. Am i supposed to use an "update" method of some kind?
What exactly?
Thanks,
K. Pachopoulos
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users