Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lockup Issue When Switching Multiple Streams in RealSense-ROS #3141

Closed
wataru-okumura opened this issue Jun 25, 2024 · 3 comments
Closed

Lockup Issue When Switching Multiple Streams in RealSense-ROS #3141

wataru-okumura opened this issue Jun 25, 2024 · 3 comments
Labels

Comments

@wataru-okumura
Copy link

wataru-okumura commented Jun 25, 2024


Required Info
Camera Model D435i
Firmware Version 5.12.5
Operating System & Version Linux (Ubuntu 20.04.6LTS)
Kernel Version (Linux Only) 5.15.0-107-generic
Platform PC
Librealsense SDK Version 2.55.1
Language python
Segment Robot
ROS Distro Humble
RealSense ROS Wrapper Version 4.55.1

Issue Description

Thanks again.
When I try to switch between multiple streams enable as in the code I gave you (stream.py)
There is no response from realsenes-ros and it locks up.
Is this a limitation of the device? Is it a software glitch?

By the way, if I send one parameter at a time like stream_one.py, it works fine.
stream.zip

terminal1

 ros2 launch realsense2_camera rs_launch.py

terminal2

pyhon stream.py
@MartyG-RealSense
Copy link
Collaborator

Hi @wataru-okumura It appears that the key difference between stream.py and stream_one.py is that stream.py (the multiple stream toggle script) is applying rclpy.spin_until_future_complete a single time for all streams, whilst stream_one ply applies it for each individual stream.

I have not seen this particular method used with the RealSense ROS wrapper before. However, given how these stream enable parameters are usually set individually in launch file or launch command, I would expect the same to be the case for rclpy. And stream.py does not seem to be a bad way of implementing it.

@MartyG-RealSense
Copy link
Collaborator

Hi @wataru-okumura Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants