Skip to content
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# get PoseFrame data #4418

Closed
Tychus opened this issue Jul 12, 2019 · 2 comments
Closed

C# get PoseFrame data #4418

Tychus opened this issue Jul 12, 2019 · 2 comments

Comments

@Tychus
Copy link

Tychus commented Jul 12, 2019

Required Info
Camera Model D435i
Firmware Version 05.11.06.250
Operating System & Version Win 10
Platform PC
SDK Version 2.22.0
Language C#
Segment others

Issue Description

Getting the PoseFrame in C# not working. object always null. is there any good sample or documentation on how to do this ?

config.EnableStream(Stream.Gyro, Format.MotionXyz32f);
config.EnableStream(Stream.Accel, Format.MotionXyz32f);
using (var frames = pipe.WaitForFrames())
{
                    PoseFrame poseFrame = frames.PoseFrame;
                    Console.WriteLine($"Rotation data: {poseFrame.PoseData.rotation.x} {poseFrame.PoseData.rotation.y} {poseFrame.PoseData.rotation.z} {poseFrame.PoseData.rotation.w}");
                    Console.WriteLine($"Angular velocity {poseFrame.PoseData.angular_velocity.x} {poseFrame.PoseData.angular_velocity.y} {poseFrame.PoseData.angular_velocity.z}");
                    Console.WriteLine($"Angular acceleration {poseFrame.PoseData.angular_acceleration.x} {poseFrame.PoseData.angular_acceleration.y} {poseFrame.PoseData.angular_acceleration.z}");
                    Console.WriteLine($"Acceleration {poseFrame.PoseData.acceleration.x} {poseFrame.PoseData.acceleration.y} {poseFrame.PoseData.acceleration.z}");
}
@ev-mp
Copy link
Collaborator

ev-mp commented Jul 12, 2019

@Tychus hello,
Pose frame is available exclusively for T265 device, D435i provides IMU data only. (Documentation)
Duplicate of #3101

@Tychus
Copy link
Author

Tychus commented Jul 18, 2019

@ev-mp any C# example / documentation available ? there is no MotionFrame included in what WaitForFrames returns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants