cleanup old functions in frontend

This commit is contained in:
2026-03-20 11:28:53 +01:00
parent 2cc91c1d5d
commit c848bb658d
3 changed files with 2 additions and 7 deletions

View File

@@ -3,7 +3,6 @@ import { computed } from 'vue'
import { connectionStatus } from './stores/connection-status' import { connectionStatus } from './stores/connection-status'
import { ros } from './ts/ros_client' import { ros } from './ts/ros_client'
import { rosBackend } from './ts/robot_bridge' import { rosBackend } from './ts/robot_bridge'
import { ROS2TFClient, Transform } from 'roslib'
const store = connectionStatus() const store = connectionStatus()
const connected = computed(() => { const connected = computed(() => {

View File

@@ -8,7 +8,7 @@ class BackendBridge {
private reconnectAttempts = 0 private reconnectAttempts = 0
private readonly maxAttempts = 10 private readonly maxAttempts = 10
private readonly baseDelay = 100 private readonly baseDelay = 500 // 0.5 seconds
private constructor() { private constructor() {
this.connect() this.connect()

View File

@@ -13,7 +13,7 @@ class Ros {
private reconnectAttempts = 0 private reconnectAttempts = 0
private readonly maxAttempts = 10 private readonly maxAttempts = 10
private readonly baseDelay = 100 // 1 second private readonly baseDelay = 500 // 0.5 second
private constructor() { private constructor() {
this.connect() this.connect()
@@ -26,10 +26,6 @@ class Ros {
return Ros.instance return Ros.instance
} }
public reconnect() {
this.ros.connect(this.url)
}
public manualConnect() { public manualConnect() {
if (this.timeout) clearTimeout(this.timeout) if (this.timeout) clearTimeout(this.timeout)
this.connect() this.connect()