MIT License

项目介绍

MizuhoAOKI/nullspace_mpc 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 278 个 Star、26 次 Fork。

仓库全名
MizuhoAOKI/nullspace_mpc
开源许可证
MIT License
Star 数
278
Fork 数
26
未关闭 Issue
4

README 摘要

Nullspace MPC Nullspace MPC is a novel multi-objective control framework for explicitly handling task priorities. It demonstrates agile and smooth navigation through a narrow environment with a swerve drive vehicle. Setup [Option 1] Native Environment Note: This is the recommended setup for optimal performance. Click here to expand 1. Prerequisites Ubuntu 20.04 ROS Noetic 2. Clone the repository. 3. Install packages…

完整内容见 GitHub 原始 README 或本页 。

常见问题

nullspace_mpc 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 278 个 Star。

nullspace_mpc 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 nullspace_mpc 的源码?

可以直接克隆仓库:git clone https://github.com/MizuhoAOKI/nullspace_mpc.git,默认分支为 main;安装与运行步骤见仓库 README。

nullspace_mpc 最近还在维护吗?

仓库最近一次更新为 2025年12月9日,当前有 4 个未关闭 Issue;Star 数为 278,可作为社区活跃度的参考。

关于

Nullspace MPC: A novel multi-objective control framework for explicitly handling task priorities, implemented in ROS Noetic for a Swerve Drive Robot.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

C++
CMake
Makefile
Python
Shell

贡献者

README

Nullspace MPC

Nullspace MPC is a novel multi-objective control framework for explicitly handling task priorities. It demonstrates agile and smooth navigation through a narrow environment with a swerve drive vehicle.

ROS Distro: Noetic Docker License: MIT

nullspace_mpc_anim_3drviz

Setup

[Option 1] Native Environment

Note: This is the recommended setup for optimal performance.

Click here to expand
  1. Prerequisites

  2. Clone the repository.

    cd <path-to-your-workspace>
    git clone https://github.com/MizuhoAOKI/nullspace_mpc
    
  3. Install packages not handled by rosdep.

    cd <path-to-your-workspace>/nullspace_mpc
    sudo make install_deps
    
  4. Initialize rosdep, update it, and install ROS dependencies.

    cd <path-to-your-workspace>/nullspace_mpc
    sudo rosdep init # Skip if already initialized
    rosdep update --rosdistro noetic
    rosdep install -y --from-paths src --ignore-src --rosdistro noetic
    
  5. Build the project.

    cd <path-to-your-workspace>/nullspace_mpc
    make build
    

[Option 2] Docker Environment

GPU Accelerated Environment
Click here to expand
  1. Prerequisites

    • Docker
      • For Ubuntu users, you can use the convenience script:
        curl -fsSL https://get.docker.com -o get-docker.sh
        sudo sh get-docker.sh
        
    • NVIDIA Container Toolkit
      • This is required to allow Docker containers to access the host’s GPU.
    • NVIDIA GPU & Driver
      • An NVIDIA GPU and a compatible driver for the base image (nvidia/cuda:12.4.1-devel-ubuntu20.04) are required.
  2. Clone the repository.

    cd <path-to-your-workspace>
    git clone https://github.com/MizuhoAOKI/nullspace_mpc
    
  3. Build the Docker image (first-time setup).

    cd <path-to-your-workspace>/nullspace_mpc
    make setup_docker_gpu
    
  4. Run the Docker container and start a bash session inside.

    cd <path-to-your-workspace>/nullspace_mpc
    make run_docker_gpu
    
  5. [Inside the docker container] Build the project.

    cd ~/nullspace_mpc
    make build
    
CPU-Only Environment
Click here to expand

Warning: This setup runs entirely on the CPU. Performance is significantly lower, and on my test system it was not sufficient for stable control. Use GPU or native setup whenever possible.

  1. Prerequisites

    • Docker
      • For Ubuntu users:
        curl -fsSL https://get.docker.com -o get-docker.sh
        sudo sh get-docker.sh
        
  2. Clone the repository.

    cd <path-to-your-workspace>
    git clone https://github.com/MizuhoAOKI/nullspace_mpc
    
  3. Build the Docker image (first-time setup).

    cd <path-to-your-workspace>/nullspace_mpc
    make setup_docker_cpu
    
  4. Run the Docker container and start a bash session inside.

    cd <path-to-your-workspace>/nullspace_mpc
    make run_docker_cpu
    
  5. [Inside the docker container] Build the project.

    cd ~/nullspace_mpc
    make build
    

Usage

This package supports two operation modes:

  1. Manual Goal Mode — you set a 2D Nav Goal in RViz and the robot navigates to it.
  2. Demo (Multi-Goal) Mode — the robot automatically visits a sequence of goals defined in an agenda file.

1) Manual Goal Mode

Set a 2D Nav Goal in RViz, and the robot will navigate to the goal.

  • Nullspace MPC (Proposed)

    cd <path-to-your-workspace>/nullspace_mpc
    make navigation_nullspace_mpc
    

    Try this setting for reduced computational load.

    cd <path-to-your-workspace>/nullspace_mpc
    make navigation_nullspace_mpc_lite
    
  • MPPI (Baseline)

    cd <path-to-your-workspace>/nullspace_mpc
    make navigation_mppi
    

2) Demo (Multi-Goal) Mode

Runs an evaluation script that automatically sends multiple goals in sequence (defined in data/eval_demo/agenda.yaml) and logs results to ./result/.

  • Nullspace MPC (Proposed)

    cd <path-to-your-workspace>/nullspace_mpc
    make eval_demo_nullspace_mpc
    
  • MPPI (Baseline)

    cd <path-to-your-workspace>/nullspace_mpc
    make eval_demo_mppi
    
Note 注意

Due to the asynchronous nature of ROS simulations and the sampling-based algorithm relying on multi-threading computation, the controllers’ performance can vary depending on your system environment.

Citation

If you use this software in your research, please consider citing the following papers.

Nullspace MPC is a core component of my Ph.D. dissertation, which was made publicly available on October 1, 2025. You can access the full paper via the project website.

  @phdthesis{mizuho2025phd,
    author    = {Mizuho Aoki},
    title     = {{Nonlinear Model Predictive Control for Autonomous Vehicles: Enhancement via Simplified Physics-Aware Prediction and Decomposed Optimization}},
    school    = {Nagoya University},
    year      = {2025},
    type      = {Ph.D. Dissertation},
    language  = {English},
    url       = {https://mizuhoaoki.github.io/projects/nullspace_mpc}
  }

The baseline MPPI controller is based on the following work and is available in a dedicated repository: mppi_swerve_drive_ros

@inproceedings{mizuho2024iros,
  author={Aoki, Mizuho and Honda, Kohei and Okuda, Hiroyuki and Suzuki, Tatsuya},
  booktitle={2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)}, 
  title={{Switching Sampling Space of Model Predictive Path-Integral Controller to Balance Efficiency and Safety in 4WIDS Vehicle Navigation}}, 
  year={2024},
  pages={3196-3203},
  doi={10.1109/IROS58592.2024.10802359}
}

License & Acknowledgements

This project is licensed under the MIT License, with the exception of its core QP solving capability, which is provided by QpSolverCollection, located in the src/third_party directory and licensed under the BSD 2-Clause License.

Special thanks to the authors of QpSolverCollection for their excellent work.

评论

暂无评论