realsense-processing icon indicating copy to clipboard operation
realsense-processing copied to clipboard

Support for T265?

Open fig8studio opened this issue 4 years ago • 10 comments

Would it be possible to make this available for tracking with Intel T265?

fig8studio avatar Mar 29 '20 02:03 fig8studio

Yes, but for that we would first have to adapt the base java library to support pose frames. Would be great if you could add it and create a pull request.

I do not own such a camera, so it is not easy for me to develop and test it.

cansik avatar Mar 29 '20 17:03 cansik

Since I do not have a camera, it would make sense that you try out the following code and give me feedback if it works (should show the x rotation in the center of the screen): PoseStreamTest.java

cansik avatar Jan 19 '21 13:01 cansik

I can download and try it on my machine.

TheBricktop avatar Sep 11 '21 13:09 TheBricktop

Got an error when ported Your code to processing 4b1 edit : same error is on last processin3

obraz

@cansik also after further investigation and when Ive changed code to bare minimum :

`import ch.bildspur.realsense.; import ch.bildspur.realsense.type.; import org.intel.rs.device.Device; import org.intel.rs.types.Pose;

RealSenseCamera camera = new RealSenseCamera(this);

void setup() { size(640, 480); println("Cameras: " + RealSenseCamera.getDeviceCount()); camera.enablePoseStream(); camera.start(); }

void draw() { background(0); // read frames camera.readFrames(); Pose pose = camera.getPose(); println("Current position is "); println(pose.getTranslation()); }`

and after while of running : Cameras: 1 RealSenseException: No device connected

So realsense has confirmed that t265 is connected but failed to start it

TheBricktop avatar Sep 18 '21 11:09 TheBricktop

Ok thanks for reporting...I guess I need a camera to test it out further. It's hard to develop for hardware that you can not test on, sorry.

cansik avatar Sep 19 '21 14:09 cansik

If id set up a pc rigged with t265 and allowed You to controll it remotely using anydesk would that help?

TheBricktop avatar Sep 20 '21 07:09 TheBricktop

If you have a spare one, I could give it a try. But I can't guarantee success :)

cansik avatar Sep 20 '21 15:09 cansik

I can set it up today and send You computer adress

Also there seem to be a specific format for pose stream for t265 because it has 6dof pose definition of stream has two parameters,

rs2::pipeline pipe; // Create a configuration for configuring the pipeline with a non default profile rs2::config cfg; // Add pose stream cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF); // Start pipeline with chosen configuration pipe.start(cfg);

https://dev.intelrealsense.com/docs/rs-pose

TheBricktop avatar Sep 21 '21 09:09 TheBricktop

Yes, if you look at the method implementation, I am using the same configuration.

public void enablePoseStream() {
    // this does not work like the video streams (only uses type and format)
    poseStream.init(Stream.Pose, Format.SixDOF);
    config.enableStream(Stream.Pose, Format.SixDOF);
}

cansik avatar Sep 21 '21 10:09 cansik

dangit. Camera is found allright, it only throws error when camera.start() is called, wonder what is causing it.

TheBricktop avatar Sep 21 '21 13:09 TheBricktop