This minor PR sets ROS_HOSTNAME and ROS_MASTER_URI in the kubernetes mavros arm64 deploy.
When running hostNetwork:true the ROS_HOSTNAME defaults to the hostname of the machine (e.g. clover-4419) rather than the container or localhost. When mavros on ROS1 attempts to connect to master, it complains it cannot contact its own server at https://clover-4419:39347.
This is solved by explicitly setting ROS_HOSTNAME to localhost for ROS1. This is only necessary for running the container on a drone with hosNetwork enabled.
This minor PR sets ROS_HOSTNAME and ROS_MASTER_URI in the kubernetes mavros arm64 deploy. When running
hostNetwork:true
the ROS_HOSTNAME defaults to the hostname of the machine (e.g. clover-4419) rather than the container or localhost. When mavros on ROS1 attempts to connect to master, it complains it cannot contact its own server at https://clover-4419:39347.This is solved by explicitly setting ROS_HOSTNAME to localhost for ROS1. This is only necessary for running the container on a drone with hosNetwork enabled.