stereolabs / zed-ros-wrapper

ROS wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros/
MIT License
447 stars 391 forks source link

start_remote_stream with multiple zed cameras not working #862

Open ninoweg opened 1 year ago

ninoweg commented 1 year ago

There seems to be an issue regarding the ROS srv definition of start_remote_stream. In start_remote_stream.srv all parameters are assigned with values, causing ROS to interpret them as constants. Therefor the ROS start_remote_stream service cannot be called with parameters. When starting the remote stream for a single zed there isn't any issue as the assigned default values work just fine but it is not possible to open another stream on another port as it cannot be changed when calling the service.

Without assigning default values in start_remote_stream.srv the service can be called with those parameters. This way more than one RTP streams can be opened on different ports (30002, 30004, 30006 and 40000) simultaneously. I would suggest changing this or including another service for multi remote streams.