Closed qcharmoillau closed 3 months ago
It seems like it picks up the default port of the rosbridge_server, which is 9090
To me this looks like a ROS bug. Both rosbridge_server
and foxglove_bridge
launch files have a port
argument with different default ports and apparently something is going wrong when including both of these launch files.
I assume it correctly uses port 8765
if you do remove rosbridge_server
from your launch file? Probably changing the order of the two includes will also affect the assigned ports?
@achim-k, indeed, the default foxglove bridge port is correct when removing the launching of rosbridge_server
. It is also correct when foxglove_bridge
is launched before rosbridge_launch
, that's to say by using
return LaunchDescription([foxglove_bridge_launch, rosbridge_launch, xsarm_moveit_launch, ros2_service_wrapper])
instead of
return LaunchDescription([rosbridge_launch, foxglove_bridge_launch, xsarm_moveit_launch, ros2_service_wrapper])
. Thank you for the idea.
... Yet, this behavior looks abnormal and there is probably a ROS bug as you said.
Feel free to open an issue at https://github.com/ros2/launch. I'm going to close this issue here as the cause for this issue is not foxglove_bridge related.
Description
Steps To Reproduce 1°) On the one hand, by using the command line
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
in the Ubuntu terminal, the address and the port are properly set judging by the terminal's feedback :Therefore I can visualize things as expected in Foxglove Studio in the PC.
2°) On the other hand, I created the following launch file, which include the equivalent launch and other ROS2 functions:
In this way, the default address and port are not met as can be seen in the terminal feedback :
[foxglove_bridge-3] [INFO] [1721824501.660898719] [foxglove_bridge]: [WS] WebSocket server listening at ws://[::1]:9090
It should bews://0.0.0.0:8765
instead ofws://[::1]:9090
), so of course Foxglove Studio cannot get the data :(3°) I can solve this by specifying the address and the port as launch arguments in my launch file:
By doing so I obtain
ws://0.0.0.0:8765
as expected and Foxglove Studio works.Expected Behavior The result obtained at step 3°) should appear at the step 2°), since the port and the address are set by default to "8765" and "0.0.0.0" in
foxglove_bridge_launch.xml
, which is the file called by my launch code. What is the reason for this error?