This commit is contained in:
2026-08-13 17:35:15 +09:00
parent 99f0451412
commit f29b44da07
3 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -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) {