BerkeleyAutomation/perception

Problem wenn use realsense

kaixin-bai opened this issue · 1 comments

in realsense_sensor.py file, wenn i try to use realsense camera to get depth image, i got this Problem.

policy.py", line 174, in
sensor.start()
perception/realsense_sensor.py", line 177, in start
self._config_pipe()
perception/realsense_sensor.py", line 95, in _config_pipe
self._cfg.enable_device(self.id)
TypeError: enable_device(): incompatible function arguments. The following argument types are supported:
1. (self: pyrealsense2.pyrealsense2.config, serial: unicode) -> None

Invoked with: <pyrealsense2.pyrealsense2.config object at 0x7feb7591a260>, 817632870962
INFO:rospy.core:signal_shutdown [atexit]

IntelRealSense/librealsense#1735
there's an example here:
config_1.enable_device('013102060174')
so enable_device() should work with 'string'

perception/realsense_sensor.py 95
we can change it to : self._cfg.enable_device(str(self.id))
it works.