Skip to content

Bridge Options ​

Basic usage ​

bash
ros2 run pylon_bridge udp_bridge --host 127.0.0.1 --port 49010

UDP and node ​

ArgumentDefaultMeaning
--host0.0.0.0KSP → bridge UDP bind host
--port49010KSP → bridge UDP bind port
--command-host127.0.0.1Bridge → KSP command destination host
--command-port49011Bridge → KSP command destination port
--max-datagram-bytes65535Maximum bytes per UDP receive
--node-namepylon_bridgeROS2 node name

For use on one PC, explicitly set --host 127.0.0.1 instead of the default 0.0.0.0 to limit UDP reception to loopback.

Sensors and frames ​

ArgumentDefaultMeaning
--topic-prefix/ksp_vesselVessel sensor topic prefix
--bridge-prefix/pylonBridge status prefix
--frame-prefixpylonSensor frame prefix without a connected model
--topic-timeout-sec3.0Seconds after last data before removing dynamic publishers
--docking-ports-prefix<topic-prefix>/docking_portsDocking port state/command/camera prefix

--topic-timeout-sec accepts only finite positive numbers. Set it above the longest sensor interval you use.

Active vessel model ​

ArgumentDefaultMeaning
--robot-description-topic/ksp_vessel/robot_descriptionURDF Topic
--root-frame-topic/ksp_vessel/root_frameroot frame Topic
--model-tf-rate5.0Dynamic TF update Hz from CoM to proxy root; fixed joints use /tf_static
--allow-remote-modelsDisabledAllow model packets from non-loopback sources

Motor topics ​

ArgumentDefault
--joint-states-topic/ksp_vessel/joint_states
--diagnostics-topic/pylon/diagnostics

Vehicle control and typed actuators ​

ArgumentDefaultMeaning
--body-wrench-command-topic/ksp_vessel/control/wrench_commandLease-bound Wrench input
--control-authority-command-topic/ksp_vessel/control/authority/commandLease and e-stop input
--control-authority-state-topic/ksp_vessel/control/authority/stateKSP authority state
--wrench-feedback-topic/ksp_vessel/control/wrench_feedbackAchieved Wrench state
--vessel-lifecycle-topic/ksp_vessel/lifecycleactive vessel lifecycle
--ground-truth-prefix/ksp_vessel/ground_truthPose / twist / acceleration prefix
--actuators-prefix/ksp_vessel/actuatorsTyped actuator topic prefix by type
--vehicle-command-timeout-sec0.5Default timeout for Body Wrench and typed commands

--vehicle-command-timeout-sec accepts only finite positive numbers. Nonzero timeout_sec in typed wheel, Engine, RCS, and motor commands takes precedence. KSP clamps it to 0.05–10 seconds. Typed commands, including irreversible SeparationCommand, execute only while PyLoN has active_vessel authority. No vessel ID selection is needed.

Example: move everything to a custom namespace ​

bash
ros2 run pylon_bridge udp_bridge \
  --host 127.0.0.1 \
  --topic-prefix /my_rover \
  --bridge-prefix /my_bridge \
  --joint-states-topic /my_rover/joint_states \
  --diagnostics-topic /my_bridge/diagnostics \
  --body-wrench-command-topic /my_rover/control/wrench_command \
  --control-authority-command-topic /my_rover/control/authority/command \
  --control-authority-state-topic /my_rover/control/authority/state \
  --wrench-feedback-topic /my_rover/control/wrench_feedback \
  --vessel-lifecycle-topic /my_rover/lifecycle \
  --ground-truth-prefix /my_rover/ground_truth \
  --actuators-prefix /my_rover/actuators \
  --docking-ports-prefix /my_rover/docking_ports \
  --robot-description-topic /my_rover/robot_description \
  --root-frame-topic /my_rover/root_frame

Check all available options with:

bash
ros2 run pylon_bridge udp_bridge --help

Guides and API references for building ROS2 applications with PyLoN