Geonhee-LEE / mpc_ros

Differential Wheeled Mobile Robot - Nonlinear Model Predictive Control based on ROS
https://www.youtube.com/watch?v=5IqFGBmDGjU
Apache License 2.0
756 stars 171 forks source link

An error is reported when the package is running, and the path cannot be followed #7

Closed leigetiwen closed 3 years ago

leigetiwen commented 3 years ago

hello ,I ran this package and encountered some errors 。Terminal display this:

cost_cte, etheta, velocity: -nan, -nan, 10000 cost of actuators: -nan cost of gap: -nan ------------ Total Cost(solution): 0------------

Geonhee-LEE commented 3 years ago

@leigetiwen Hi, let me know the exact situation? that error seems like abnormal calculation b/w path and robot

leigetiwen commented 3 years ago

@Geonhee-LEE I just publish a path and then report this error.so I want to know what is required for a fixed path?

Geonhee-LEE commented 3 years ago

@leigetiwen I made the python file python file to create fixed path. please refer to generation_desired_path function

leigetiwen commented 3 years ago

Okay, thank you