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
727 stars 169 forks source link

Error when sending a goal. #37

Closed RodrigoFBernardo closed 1 year ago

RodrigoFBernardo commented 1 year ago

I'm trying to use the MPC controller, only I'm having some difficulty.

As soon as I am setting a goal, I am getting this: [move_base-3] process has died [pid 373175, exit code -11, cmd /opt/ros/noetic/lib/move_base/move_base /scan:=/scan_front /cmd_vel:=/idmind_motors/twist __name:=move_base __log:=/home/euroage/.ros/log/980f7870-a6e8-11ed-a1f9-e0d55e204096/move_base-3.log].


!! MPC Obj parameters updated !! 

===== Parameters =====
debug_info: 0
delay_mode: 1
frequency: 1
mpc_steps: 10
mpc_ref_vel: 1
mpc_w_cte: 1000
mpc_w_etheta: 10
max_vel_theta: 1.5
[move_base-3] process has died [pid 373175, exit code -11, cmd /opt/ros/noetic/lib/move_base/move_base /scan:=/scan_front /cmd_vel:=/idmind_motors/twist __name:=move_base __log:=/home/euroage/.ros/log/980f7870-a6e8-11ed-a1f9-e0d55e204096/move_base-3.log].
log file: /home/euroage/.ros/log/980f7870-a6e8-11ed-a1f9-e0d55e204096/move_base-3*.log

Thanks for help

RodrigoFBernardo commented 1 year ago

I solved the problem above, the "return true;" was missing in the setPlan function

But the controller is not working, for example I give it a completely valid goal and it says it can't find the plan.

I get this message:

!! MPC Obj parameters updated !! 

===== Parameters =====
debug_info: 0
delay_mode: 1
frequency: 0.1
mpc_steps: 20
mpc_ref_vel: 1
mpc_w_cte: 1000
mpc_w_etheta: 1000
mpc_max_angvel: 1
[ WARN] [1675784797.460906538]: MPC Planner failed to produce path.