You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello gsilano,
Thanks for you work in creating this wonderful models to work in SITL. I am facing several issues:
I created an MPC controller in matlab to track a helical trajectory and it is working fine. However, when I publish the omega of the rotors in the topic /crazyflie2/gazebo/command/motor_speed , it is not behaving as it should be and model becomes unstable. I played with the rates of the controllers. However, it did not have any affect in the simulation.
Therefore, I decided to use inbuilt position_controller_node.cpp by passing the states coming from my MPC controller in the topic called /crazyflie2/command/trajectory. The position controller node keeps the crazyflie stable, but it is very slow and could not track the trajectory I am publishing. I have kept the trajectory publishing rate fairly low.
Are there any suggestions on how can I make my external controller work ? How to use the inbuilt controllers in this scenario ?
Thanks,
rakesh55ydv
The text was updated successfully, but these errors were encountered:
Hi @rakesh55ydv! I'm glad you found my work interesting.
Have you tried following the guide in the Wiki to connect MATLAB with Gazebo? This guide explains how to establish message exchange between the two. While more advanced solutions for synchronization exist today, the method described in the guide should suffice for initial testing.
If you continue to experience instability issues, the problem might lie in the parameters used for the MPC design not matching those in Gazebo. In this case, I recommend reviewing the following files:
The key point is to ensure consistency between the parameters used in your MPC and Gazebo simulations. If needed, you can modify these files to create a Crazyflie setup tailored to your needs.
Regarding the launch file, if it isn't included in the Wiki guide, I suggest creating an empty Gazebo world containing only the Crazyflie with the appropriate configuration settings. An example is provided in this launch file.
Lastly, when setting up your environment, ensure that the ROS version matches your system's configuration (e.g., Kinetic or Melodic for Ubuntu 18.04, or Noetic for Ubuntu 20.04). You can find a complete list of supported ROS releases in the README.md file.
Hello gsilano,
Thanks for you work in creating this wonderful models to work in SITL. I am facing several issues:
Are there any suggestions on how can I make my external controller work ? How to use the inbuilt controllers in this scenario ?
Thanks,
rakesh55ydv
The text was updated successfully, but these errors were encountered: