Basilisk is an open-source astrodynamics simulation framework widely used for spacecraft guidance, navigation, and control (GN&C) research and development. Despite its flexibility and computational capabilities, configuring Basilisk consistently across heterogeneous development environments presents practical challenges due to dependency management, operating system compatibility, and software configuration requirements. This paper presents a Docker-based containerization workflow for Basilisk that encapsulates the complete build environment, dependencies, and simulation infrastructure within a portable container image. The workflow is demonstrated through a progression of simulation scenarios of increasing complexity, from standalone orbital dynamics scripts to BSKSim-based attitude dynamics and control simulations with Monte Carlo analysis. The BSKSim class hierarchy, dynamics model architecture, flight software implementation, and scenario execution patterns are described in detail. The presented workflow provides a self-contained implementation reference for GN&C engineers and researchers seeking reproducible and portable Basilisk simulation environments. This work expands upon a workshop presentation delivered at the 46th Rocky Mountain AAS GN&C Conference, February 2024, available at https://doi.org/10.5281/zenodo.15008785.
翻译:Basilisk是一个广泛用于航天器制导、导航与控制(GN&C)研究与开发的开源天体动力学仿真框架。尽管其具有灵活性和计算能力,但由于依赖管理、操作系统兼容性和软件配置要求等问题,在不同异构开发环境中一致配置Basilisk存在实际挑战。本文提出一种基于Docker的Basilisk容器化工作流,将完整的构建环境、依赖项及仿真基础设施封装于便携式容器镜像中。该工作流通过从独立轨道动力学脚本到基于BSKSim的姿态动力学与控制仿真(含蒙特卡洛分析)的复杂度递增仿真场景进行演示。文中详细描述了BSKSim类层次结构、动力学模型架构、飞行软件实现及场景执行模式。所提出的工作流为寻求可复现且便携式Basilisk仿真环境的GN&C工程师和研究人员提供了自包含的实现参考。本文基于2024年2月在第46届落基山AAS GN&C会议上的研讨报告(DOI: 10.5281/zenodo.15008785)扩展而成。