You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|---------------------------------|------------------------------------------- |
| Camera Model | D415 |
| Operating System & Version | Linux (Ubuntu 16 |
| Platform | PC |
| Language | python |
When I use wait_for_frame() to play back the recorded bag file, I get a much larger number of frames than I did with rosbag.Careful analysis shows that timestamps and frames repeat a lot. Why?Here's my program
import pyrealsense2 as rs
import numpy as np
import matplotlib.pyplot as plt
import cv2
import argparse
import os.path
import scipy.io as scio
#pointcloud
pc = rs.pointcloud()
points = rs.points()
colorizer = rs.colorizer()
align_to = rs.stream.color
align = rs.align(align_to)
n = 0
m = 0
while (playback.current_status() == rs.playback_status.playing) :
n += 1
print n
frames = pipe.wait_for_frames()
**( means other processing)
The text was updated successfully, but these errors were encountered:
|---------------------------------|------------------------------------------- |
| Camera Model | D415 |
| Operating System & Version | Linux (Ubuntu 16 |
| Platform | PC |
| Language | python |
When I use wait_for_frame() to play back the recorded bag file, I get a much larger number of frames than I did with rosbag.Careful analysis shows that timestamps and frames repeat a lot. Why?Here's my program
import pyrealsense2 as rs
import numpy as np
import matplotlib.pyplot as plt
import cv2
import argparse
import os.path
import scipy.io as scio
pipe = rs.pipeline()
config = rs.config()
config.enable_device_from_file('/plant.bag',repeat_playback=False)
profile = pipe.start(config)
playback = profile.get_device().as_playback()
playback.set_real_time(False)
#pointcloud
pc = rs.pointcloud()
points = rs.points()
colorizer = rs.colorizer()
align_to = rs.stream.color
align = rs.align(align_to)
n = 0
m = 0
while (playback.current_status() == rs.playback_status.playing) :
n += 1
print n
frames = pipe.wait_for_frames()
**( means other processing)
The text was updated successfully, but these errors were encountered: