Skip to content

poojakira/CommandX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛰️ CommandX: Advanced Orbital Dynamics & Mission Planning

Version Status License

CommandX is a high-fidelity orbital mechanics platform designed for satellite constellation management, proximity operations, and mission trajectory optimization. It integrates real-world Space-Track TLE data with advanced GNC (Guidance, Navigation, and Control) algorithms to provide a production-grade simulation environment.


⚡ The Problem: Orbital Congestion

As of 2024, there are over 17,000 active satellites and hundreds of thousands of debris particles in Low Earth Orbit (LEO). Legacy mission planning tools often:

  • Ignore Live Traffic: Planning in a vacuum leads to conjunction risks.
  • Simplistic Physics: Failing to account for J2 perturbations or atmospheric drag.
  • Manual Optimization: Relying on human intuition for complex multi-constraint transfers.

🚀 The Solution: CommandX

CommandX addresses these challenges by automating the "Sense-Analyze-Act" loop for orbital assets:

  • Live Traffic Awareness: Automatically parses live 3LE catalogs to map orbital density.
  • Physics-First Optimization: Uses Genetic Algorithms to find fuel-efficient trajectories that avoid radiation belts and high-drag zones.
  • Robust Estimation: Implements an Extended Kalman Filter (EKF) to maintain state awareness even with noisy sensor telemetry.

🎥 System Demonstration

(Placeholder: [Insert high-quality GIF of Dashboard here]) (Placeholder: [Insert 3D Orbit Visualization Screenshot here])

🧠 Technical Highlights

  • EKF for 6-DOF orbit estimation: Real-world noise cancellation using Extended Kalman Filters.
  • GA over N-dim search space: Fuel-optimized Hohmann transfers evading radiation zones.
  • Monte Carlo IV&V with 1,000 randomized scenarios: Production-grade verification proving Mission Assurance.
  • Real-Time Data Pipelines: Asynchronous streaming thread architecture buffering high-frequency telemetry into an ML backend.

⚡ Why This Matters for GPU / Accelerated Computing

While the current prototype utilizes CPU-based Scikit-Learn logic, this architecture is designed to scale directly onto NVIDIA Hardware.

  • Monte Carlo Simulation: The IV&V logic is naturally paralyzable; transitioning to CUDA/CuPy would allow millions of stochastic docking trials in milliseconds instead of seconds.
  • Inference Serving: The BatchInferenceEngine utilizes dynamic batching, structurally identical to NVIDIA Triton Inference Server. Dropping in TensorRT/ONNX models for real-time cyber anomaly detection would exploit GPU memory bandwidth, maintaining the strict 20ms SLA latency over astronomical distributed-telemetry volumes.

🏗️ Project Structure

CommandX/
├── app_dashboard.py      # Streamlit UI & Mission Control Center
├── mission_engine.py      # Orbital Physics (J2, Hohmann, Keplerian)
├── ga_optimizer.py       # Trajectory Planning via Genetic Algorithms
├── gnc_kalman.py         # Guidance & Navigation (Extended Kalman Filter)
├── rl_pilot.py           # Actuator Control & PID Logic
├── system_analytics.py   # Monte Carlo IV&V Simulation Suite
├── data_processor.py      # TLE Parsing & Catalog Management
├── graphics_engine.py    # 3D Plotly Tactical Visuals
├── model_3d.py           # Spacecraft Geometry Models
└── requirements.txt      # Project Dependencies

🔄 Workflow Diagram

graph TD
    A[Space-Track TLE Data] --> B[data_processor.py]
    B --> C{Catalog Mapping}
    C -->|Density Map| D[ga_optimizer.py]
    E[Mission Constraints] --> D
    D -->|Optimal Trajectory| F[app_dashboard.py]
    
    subgraph "Flight Loop"
    G[Sensor Noise] --> H[gnc_kalman.py EKF]
    H -->|Estimated State| I[rl_pilot.py PID]
    I -->|Actuator Command| J[Physics Engine]
    J --> G
    end
    
    F -->|Command Execution| G
Loading

🛠️ Getting Started

Prerequisites

  • Python 3.9+
  • Pip (Python Package Manager)

Installation

  1. Clone the repository:
    git clone https://github.com/poojakira/CommandX.git
    cd CommandX
  2. Install dependencies:
    pip install -r requirements.txt

Running Locally

Launch the Mission Control dashboard natively using Python:

streamlit run app_dashboard.py

🌐 Deployment Pipeline

Deploying with Docker

You can containerize the CommandX pipeline using the provided Dockerfile.

  1. Build the Docker image:
    docker build -t commandx:latest .
  2. Run the container:
    docker run -d -p 8501:8501 --name commandx commandx:latest

Access the application at http://localhost:8501.

Deploying with Kubernetes

We provide Kubernetes manifests in the k8s/ directory.

(Verified Locally on Minikube)

  1. If using Minikube, ensure your local Docker daemon is running and execute:
    minikube start --driver=docker
    # Build the image and load it into minikube
    docker build -t commandx:latest .
    minikube image load commandx:latest
  2. Apply the deployment and service configurations:
    kubectl apply -f k8s/
  3. Retrieve the external IP (or map to localhost via minikube service alias):
    kubectl get svc commandx-service
    # For Minikube users:
    minikube service commandx-service --url

Deploying to Amazon EC2

We provide an ec2-user-data.sh script to auto-provision an EC2 instance.

  1. Launch an EC2 instance (Amazon Linux or Ubuntu) and paste the contents of ec2-user-data.sh into the User Data field under Advanced Details.
  2. Ensure your Security Group allows inbound HTTP traffic on Port 80.
  3. Once provisioned, SSH into the instance and follow the instructions in the script comments to build and run the Docker image.

📊 Verification & Validation (IV&V)

CommandX includes a professional verification suite to ensure flight readiness. You can run a standalone Monte Carlo analysis to verify GNC robustness:

python system_analytics.py

This will execute 1,000 stochastic docking simulations and report 3-sigma accuracy confidence intervals.


📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A flight-ready satellite mission control system built on real orbital physics, autonomous GNC, and AI-driven trajectory optimization. CommandX brings together the tools mission operators need — from live fleet monitoring to hardware stress simulation — inside a single command interface.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors