[General] GPU Accelerated Trajectory Optimization with External Transcription
维护者通常 1 天内回复
@ocots 已经在做这个了。
开始于 2025年11月15日。
评估
这个 Issue 还没有评估数据。
描述
@jbcaillau and @ocots,
I am trying to figure out the best way to implement optimal control problems for trajectory optimization in Julia to be solved with GPUs, making the best use of existing packages.
After chatting with @amontoison, I believe that OptimalControl.jl can be a useful framework to communicate with the appropriate modeling tools (e.g., Examodels) and solvers (e.g., those in MadSuit), besides handling the integrator part.
Unfortunately, I haven’t been able to completely derive the dynamics of my quadruped robot from scratch, which I believe is necessary for OptimalControl.jl.
Taking inspiration from TORA.jl (cc @ferrolho), I thought of using RigidBodyDynamics.jl (RBD) to derive them from a URDF file. In TORA.jl, this approach calls the RBD dynamics inference API compatible with AD to calculate both the Jacobian and Hessian. From my chat with @amontoison, I believe this could be made compatible with OptimalControl.jl by using the NLPModels Manual API: https://jso.dev/tutorials/create-a-manual-model/. The issue here is that this approach would require me to extend and ensure that RigidBodyDynamics.jl can perform dynamics inference on the GPU, as far as I know (AFAIK).
A while back, I also tried to rewrite RigidBodyDynamics.jl to directly create the appropriate constraints in a given JuMP model instead of solving the dynamics (https://github.com/andrewrosemberg/RigidBodyDynamics.jl/pull/1). However, it seems that my naive implementation produces extremely large expressions, causing JuMP to stall when trying to check if they belong to the model. I now believe the rewrite would need to be much more intricate, ensuring that the expressions are created cleverly, avoiding redundancy, and being appropriately compatible with how the GPU kernels should be created for good performance.
Sorry for the long post, but I wanted to see what you and others from the community think. :)
- 主要语言
- Julia
- 星标
- 135
- 派生
- 11
- 平均合并
- 7 小时 49 分钟
- 30 天内合并 PR
- 23
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
control-toolbox/OptimalControl.jl 的其他 Issue
-
[Doc] A pull request without the preview label announces a deployment that never happens可能已有人在做 @ocots 于 1 天前认领。 未关闭documentation
control-toolbox/OptimalControl.jl#1042 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Doc] User guide to the duals: every kind, constraint ↔ dual, direct ↔ indirect可能已有人在做 @ocots 于 7 天前认领。 未关闭
control-toolbox/OptimalControl.jl#1035 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Tests of the duals: every kind of constraint, direct vs indirect, pinned algorithms可能已有人在做 @ocots 于 7 天前认领。 未关闭
control-toolbox/OptimalControl.jl#1034 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Doc] Examples for the sign convention of duals and costate (min/max, writing of constraints, direct vs indirect)可能已有人在做 @ocots 于 15 天前认领。 未关闭
control-toolbox/OptimalControl.jl#1016 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Documentation: sign conventions (min/max, p⁰, constraints, duals) and how they appear in a solution可能已有人在做 @ocots 于 18 天前认领。 未关闭documentation
control-toolbox/OptimalControl.jl#1015 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 control-toolbox/OptimalControl.jl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
lux
难度 2/5 1-3 小时 新手友好度 76/100
JuliaGraphs/GraphNeuralNetworks.jl#732 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
erfinv(::Float16) and erfcinv(::Float16) are wrong for abs(x) <= 0.75 (erfinv(Float16(0)) == 0.2201)未关闭
难度 2/5 1-3 小时 新手友好度 82/100
JuliaMath/SpecialFunctions.jl#571 ·