NodeJS port of rs-pose
I'm trying to get the example rs-pose.cpp working in nodejs but I'm having problems getting the poseData.
For instance, with the following;
"
const pipeline = new rs2.Pipeline();
const cfg = new rs2.Config();
cfg.enableStream( 'pose',-1, 0, 0, '6dof',0 );
pipeline.start(cfg);
console.log('Getting pose data.');
while (! win.shouldWindowClose()) {
const frameSet = pipeline.waitForFrames();
const pose_fr = frameSet;
const pose_data = new rs2.PoseFrame(pose_fr);
console.log(pose_data.translation.y)
I get this error:
Getting pose data.
/home/ib/src/librealsense/wrappers/nodejs/index.js:1888
let cxxProfile = this.cxxFrame.getStreamProfile();
^
Also filed an issue here. But any pointers on how to access the PoseFrame in node would be appreciated.
-
This topic was last discussed in April 2019. A community member called eljefe40 was willing to post the code for his own version of rs-pose.
Please sign in to leave a comment.
Comments
1 comment