Open Tanfuchy opened 4 months ago
I guess you are missing the pyrealsense library installation. Ensure you have that installed in your environment: https://pypi.org/project/pyrealsense2/
Make sure you import it at the top of the file.
How should this error be resolved
Follow this: https://github.com/IntelRealSense/librealsense/blob/development/doc/distribution_linux.md If you manage to see it using the realsense-viewer you should not get this error.
(MonoGS)$ python slam.py --config configs/live/realsense_rgbd.yaml Traceback (most recent call last): File "slam.py", line 252, in
slam = SLAM(config, save_dir=save_dir)
File "slam.py", line 56, in init
model_params, model_params.source_path, config=config
File "/home/chy/mycode/MonoGS/utils/dataset.py", line 530, in load_dataset
return RealsenseDataset(args, path, config)
File "/home/chy/mycode/MonoGS/utils/dataset.py", line 432, in init
self.pipeline = rs.pipeline()
NameError: name 'rs' is not defined
python slam.py --config configs/live/realsense.yaml Traceback (most recent call last): File "slam.py", line 252, in
slam = SLAM(config, save_dir=save_dir)
File "slam.py", line 56, in init
model_params, model_params.source_path, config=config
File "/home/chy/mycode/MonoGS/utils/dataset.py", line 530, in load_dataset
return RealsenseDataset(args, path, config)
File "/home/chy/mycode/MonoGS/utils/dataset.py", line 432, in init
self.pipeline = rs.pipeline()
NameError: name 'rs' is not defined