ROS2 controller plugin using python

I have already built an MPC(model predictive controller) using Casadi in Python. It works independently and I want to integrate it with the ROS2 navigation stack. How can I generate code from Python? How can I integrate it with the ros2 navigation stack ?

Hello @Lijdawit,

I am afraid that at the moment there is no direct way to implement a controller plugin for Nav2 using python. If porting your code to C++ is viable to you, then I can recommend the following tutorial:

Hope this helps,


1 Like

This topic was automatically closed after 22 hours. New replies are no longer allowed.