You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running an OpenIGTLink Server on an sbRIO-9651 module running real time linux and we are running into a bus error when a point message is sent from 3D Slicer (or other external OpenIGTLink clients).
The server has been able to reliably receive transform data and other IGTLink data types such as String and Status, but point message throws a bus error specifically when the Unpack() method is called in the following code. Is there something I am missing ?
Eigen::Vector3d OpenIGTLink::ReceivePoint(igtl::Socket * socket, igtl::MessageHeader * header) {
// Create a message buffer to receive transform data
igtl::PointMessage::Pointer pointMsg;
pointMsg = igtl::PointMessage::New();
pointMsg->SetMessageHeader(header);
pointMsg->AllocatePack();
socket->Receive(pointMsg->GetPackBodyPointer(), pointMsg->GetPackBodySize());
int c = pointMsg->Unpack(); // This line throws a Bus Error
Eigen::Vector3d pointData(-1, -1, -1);
if (c & igtl::MessageHeader::UNPACK_BODY) {
// Retrieve the point data
igtlFloat32 x, y, z;
igtl::PointElement::Pointer point;
point = igtl::PointElement::New();
pointMsg->GetPointElement(0, point);
point->GetPosition(x, y, z);
pointData(0) = x;
pointData(1) = y;
pointData(2) = z;
}
return pointData;
}
The text was updated successfully, but these errors were encountered:
Hello,
We are running an OpenIGTLink Server on an sbRIO-9651 module running real time linux and we are running into a bus error when a point message is sent from 3D Slicer (or other external OpenIGTLink clients).
The server has been able to reliably receive transform data and other IGTLink data types such as String and Status, but point message throws a bus error specifically when the Unpack() method is called in the following code. Is there something I am missing ?
The text was updated successfully, but these errors were encountered: