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

TF error #21

Closed ZyHuang97 closed 2 years ago

ZyHuang97 commented 3 years ago

Thanks for your code. I tried to reimplement it, but the robot didn't move at all. It seems like a tf problem. Could you give me any advice?

Timed out waiting for transform from base_link to map to become available before running costmap, tf error: canTransform: target_frame map does not exist. canTransform: source_frame base_link does not exist.. canTransform returned after 98.075 timeout was 0.1.

Thanks and regards.

Geonhee-LEE commented 3 years ago

HI, @ZyHuang97. Thanks for interesting this package. Did you install map_server of ros?

aakashs0ni commented 3 years ago

Hi, @Geonhee-LEE. I have a similar issue. I have installed map_server. Furthermore, I have robot model error in Rviz. It says No transform from [base_link, body_link, lidar_link...] to [map].

Geonhee-LEE commented 3 years ago

@ZyHuang97 @aakashs0ni Hello, Did you install the robot_state_publisher also? Otherwise, let me know the detailed situation such as launch name, error logs, etc.

wangpeihu commented 3 years ago

@Geonhee-LEE Hello,Thank you for the code.I have run the code ,but broke into some trouble.I have installed map_server and robot_state_publisher,but still can't make it,the robot didn't move.Could you please give me some advice?Thanks

wangpeihu commented 3 years ago

mpc_tf mpc_rqt_graph log_error_1 log_error_2 rviz_err_1 rviz_errpr_2

Geonhee-LEE commented 3 years ago

Hi @aakashs0ni where is the odom tf and odom topic? If you want to run, the odom tf and odom topic are necessary.

gft-ai commented 2 years ago

Hi, I am facing the same issue. How and where do you publish those topics from? Do I need to write a separate script for them?

gft-ai commented 2 years ago

Hi, I am facing the same issue. How and where do you publish those topics from? Do I need to write a separate script for them?

Found the problem. I was missing

ros-melodic-gazebo-plugins