-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
C# example for pose stream (for T265 device) #8860
Conversation
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("Intel(R) RealSense(TM) SDK C# Wrapper Tutorial-1")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tutorial-5
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("Intel(R) Corporation")] | ||
[assembly: AssemblyProduct("Intel(R) RealSense(TM) SDK C# Wrapper")] | ||
[assembly: AssemblyCopyright("Copyright � 2017, Intel Corporation. All rights reserved")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2021
Pose data = frame.As<PoseFrame>().PoseData; | ||
|
||
// Print the x, y, z values of the translation, relative to initial position | ||
Console.WriteLine("Device Position: {0} {1} {2} (meters)", data.translation.x.ToString("N3"), data.translation.y.ToString("N3"), data.translation.z.ToString("N3")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not override the printed line same as in C++ example?
"\r"
Console.WriteLine("Device Position: {0} {1} {2} (meters)", data.translation.x.ToString("N3"), data.translation.y.ToString("N3"), data.translation.z.ToString("N3")); | ||
} | ||
|
||
Thread.Sleep(100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried running this example,
it keeps exit on an exception from "wait_for_frames()",
The exception is frame did not arrived in 5000 [ms].
It happens for me after ~30 seconds
Do you see it?
It does not happen on the C++ example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed C# example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks goods.
No description provided.