patch..
This commit is contained in:
+2
-2
@@ -1237,7 +1237,7 @@ async function collectLocalRosGraph(): Promise<RosGraphSnapshot> {
|
||||
const names = (await runCommandOutput('docker', ['ps', '--format', '{{.Names}}'], undefined, undefined, 8_000))
|
||||
.split('\n').map((line) => line.trim()).filter(Boolean)
|
||||
const containerName = pickRosGraphProbeContainer(names)
|
||||
if (!containerName) return { topics: [], message: '실행 중인 ROS 컨테이너가 없습니다.' }
|
||||
if (!containerName) return { topics: [] }
|
||||
const output = await runCommandOutput('docker', ['exec', containerName, 'bash', '-lc', rosGraphProbeCommand()], undefined, undefined, 12_000)
|
||||
return parseRosGraphSnapshot(output)
|
||||
} catch (error) {
|
||||
@@ -1251,7 +1251,7 @@ async function collectRemoteRosGraph(targetInput: RemoteWorkspaceTarget): Promis
|
||||
const names = (await runSshOutput(target, 'timeout 8s docker ps --format "{{.Names}}" 2>/dev/null || true', 15_000))
|
||||
.split('\n').map((line) => line.trim()).filter(Boolean)
|
||||
const containerName = pickRosGraphProbeContainer(names)
|
||||
if (!containerName) return { topics: [], message: '실행 중인 ROS 컨테이너가 없습니다.' }
|
||||
if (!containerName) return { topics: [] }
|
||||
const output = await runSshOutput(target, `timeout 12s docker exec ${quoteShellSingle(containerName)} bash -lc ${quoteShellSingle(rosGraphProbeCommand())}`, 20_000)
|
||||
return parseRosGraphSnapshot(output)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user