#!/usr/bin/env node import { HttpServerNodejs } from "@lichtblick/xmlrpc/nodejs"; import { getEnvVar, getHostname, getNetworkInterfaces } from "./platform"; import { RosMaster } from "../RosMaster"; import { RosNode } from "../RosNode"; async function main() { const hostname = RosNode.GetRosHostname(getEnvVar, getHostname, getNetworkInterfaces); const port = 11311; const httpServer = new HttpServerNodejs(); const rosMaster = new RosMaster(httpServer); await rosMaster.start(hostname, port); console.log(`ROS_MASTER_URI=http://${hostname}:${port}/`); } void main();