Troubleshooting
Bridge status is missing
Make sure the bridge starts in a terminal with its environment sourced.
source /opt/ros/jazzy/setup.bash
source ~/ros2_ws/install/setup.bash
ros2 run pylon_bridge udp_bridge --host 127.0.0.1 --port 49010Source the same ROS setup and workspace in other terminals too. /pylon/status exists even when KSP is not running.
If ROS_DISTRO is not jazzy, use a new terminal and source /opt/ros/jazzy/setup.bash; do not reuse a shell that sourced Humble.
Sensor topics are missing
LiDAR and camera topics are dynamic. Check:
- The vessel with the relevant part is in Flight.
- Sensor and UDP are enabled in the Part Action Window.
- KSP
PYLON_TRANSPORT.stateHost/PYLON_TRANSPORT.statePortmatch bridge--host/--port. - Scans or complete camera frames actually reach the bridge.
--topic-timeout-secis longer than the sensor interval.
Topics disappear after about three seconds
Dynamic sensor publishers are removed three seconds after the last data by default. Increase the timeout for slower sensors.
ros2 run pylon_bridge udp_bridge \
--host 127.0.0.1 \
--topic-timeout-sec 10Motors do not move
- Copy the actual joint name from
/ksp_vessel/joint_states.name. - Check
MotorCommand.id, lease, and increasing sequence. - Specify servo positions in rad and linear positions in m.
- Attach
bottomto the parent and moving structure totop. - Check power, engage, and lock in KSP's Part Action Window.
- Match bridge
--command-host/--command-portand sharedPYLON_TRANSPORT.commandPort.
Velocity commands or thrust stop quickly
This is normal failsafe behavior. Send commands faster than their timeout with increasing sequence in the same lease. ros2 topic pub -r with a fixed sequence is rejected as replay; use a controller node such as pylon_vehicle_control for continuous control.
Vessel is missing in RViz
ros2 topic echo --once /ksp_vessel/root_frame
ros2 topic echo --once /ksp_vessel/robot_descriptionAn empty string means the model was cleared or expired. Check shared PYLON_MODEL.enabled, the UDP path, and permissions on both ends for remote use. Use the root_frame topic's value as RViz Fixed Frame.
Camera images are intermittent
Camera frames publish only when all UDP chunks arrive. Start with 160 × 120 or a lower frame rate. Across a network, raw RGB is split into many UDP datagrams and is more sensitive to packet loss.
KSP DLL does not update
KSP cannot reload a new DLL while running. Exit KSP, rerun ./sync.sh, then restart KSP.
Logs
KSP logs begin with [PyLoN]. The bridge logs invalid packets, publisher creation/removal, and UDP transmission failures through its node logger.