Repository navigation
C# example for pose stream (for T265 device) - #8860
Merged
Merged
Conversation
Nir-Az
reviewed
May 25, 2021
| // 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")] |
Nir-Az
reviewed
May 25, 2021
| [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")] |
Nir-Az
reviewed
May 25, 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")); |
Collaborator
There was a problem hiding this comment.
Why not override the printed line same as in C++ example?
"\r"
Nir-Az
reviewed
May 25, 2021
| 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); |
Collaborator
There was a problem hiding this comment.
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.
Contributor
Author
There was a problem hiding this comment.
I fixed C# example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.