Update to Bridges

This commit is contained in:
2026-01-01 01:08:30 +00:00
parent 2b01f636fe
commit 4b44c3de91
9 changed files with 578 additions and 324 deletions

View File

@@ -20,7 +20,7 @@ from std_msgs.msg import String
class ROS2SimulatorBridge(Node):
"""Bridges ROS 2 topics to UDP-based simulator."""
DEFAULT_SIMULATOR_HOST = '127.0.0.1'
DEFAULT_SIMULATOR_HOST = '0.0.0.0'
DEFAULT_SIMULATOR_PORT = 5555
SOCKET_TIMEOUT = 0.1
RECEIVE_BUFFER_SIZE = 4096
@@ -171,8 +171,10 @@ Examples:
"""
)
parser.add_argument(
'--host', '-H', type=str, default='127.0.0.1',
help='IP address of the simulator (default: 127.0.0.1)'
'--host', '-H',
type=str,
default='0.0.0.0',
help='Simulator host IP address (default: 0.0.0.0)'
)
parser.add_argument(
'--port', '-p', type=int, default=5555,