muskie82 / MonoGS

[CVPR'24 Highlight & Best Demo Award] Gaussian Splatting SLAM
https://rmurai.co.uk/projects/GaussianSplattingSLAM/
Other
1.4k stars 129 forks source link

Live demo with Realsense #116

Open Tanfuchy opened 4 months ago

Tanfuchy commented 4 months ago

(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

harshal-14 commented 3 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.

MikeAiJF commented 2 months ago

image How should this error be resolved

lordMutimir commented 1 month ago

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.