11 import pyrealsense2
as rs
18 cfg.enable_stream(rs.stream.pose)
26 frames = pipe.wait_for_frames()
29 pose = frames.get_pose_frame()
32 data = pose.get_pose_data()
33 print(
"Frame #{}".format(pose.frame_number))
34 print(
"Position: {}".format(data.translation))
35 print(
"Velocity: {}".format(data.velocity))
36 print(
"Acceleration: {}\n".format(data.acceleration))
static std::string print(const transformation &tf)