cleanup old functions in frontend
This commit is contained in:
@@ -3,7 +3,6 @@ import { computed } from 'vue'
|
||||
import { connectionStatus } from './stores/connection-status'
|
||||
import { ros } from './ts/ros_client'
|
||||
import { rosBackend } from './ts/robot_bridge'
|
||||
import { ROS2TFClient, Transform } from 'roslib'
|
||||
|
||||
const store = connectionStatus()
|
||||
const connected = computed(() => {
|
||||
|
||||
@@ -8,7 +8,7 @@ class BackendBridge {
|
||||
|
||||
private reconnectAttempts = 0
|
||||
private readonly maxAttempts = 10
|
||||
private readonly baseDelay = 100
|
||||
private readonly baseDelay = 500 // 0.5 seconds
|
||||
|
||||
private constructor() {
|
||||
this.connect()
|
||||
|
||||
@@ -13,7 +13,7 @@ class Ros {
|
||||
|
||||
private reconnectAttempts = 0
|
||||
private readonly maxAttempts = 10
|
||||
private readonly baseDelay = 100 // 1 second
|
||||
private readonly baseDelay = 500 // 0.5 second
|
||||
|
||||
private constructor() {
|
||||
this.connect()
|
||||
@@ -26,10 +26,6 @@ class Ros {
|
||||
return Ros.instance
|
||||
}
|
||||
|
||||
public reconnect() {
|
||||
this.ros.connect(this.url)
|
||||
}
|
||||
|
||||
public manualConnect() {
|
||||
if (this.timeout) clearTimeout(this.timeout)
|
||||
this.connect()
|
||||
|
||||
Reference in New Issue
Block a user