set_websocket_ip
Configure the IP and port for WebSocket connections in the ROS MCP Server to enable robotic movement control via precise IP settings.
Instructions
Set the IP and port for the WebSocket connection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| local_ip | Yes | ||
| port | Yes |
Implementation Reference
- utils/websocket_manager.py:291-298 (helper)Helper method in WebSocketManager class that sets the IP address and port used for establishing the WebSocket connection to rosbridge. This implements the core functionality of configuring the websocket endpoint for the 'set_websocket_ip' tool.def set_ip(self, ip: str, port: int): """ Set the IP and port for the WebSocket connection. """ self.ip = ip self.port = port print(f"[WebSocket] IP set to {self.ip}:{self.port}", file=sys.stderr)