I am trying to configure my robot for navigation,My robot is moving around with the help of keyboard teleop,but when launching move_base.launch it is showing the below mentioned error

asked 2019-11-11 05:34:34 -0500

akshayantony gravatar image

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 0.100354 timeout was 0.1. any required file can be uploaded,please ask.

edit retag flag offensive close merge delete

Comments

launch everything up as you did previously then type

rosrun rqt_tf_tree rqt_tf_tree

Upload that image.

bob-ROS gravatar image bob-ROS  ( 2019-11-11 06:34:03 -0500 )edit

try setting a higher timeout value and see if this solves your issue.

Choco93 gravatar image Choco93  ( 2019-11-11 07:18:42 -0500 )edit

https://drive.google.com/file/d/1JolJ... this is the transform tree link

akshayantony gravatar image akshayantony  ( 2019-11-11 07:42:31 -0500 )edit

@bob-ROS THANK you for your reply,i have attached the link of tf tree in the above comment

akshayantony gravatar image akshayantony  ( 2019-11-11 07:44:13 -0500 )edit

you can see from the image that there is no map frame. And no base_link either. What is your current setup? What are you using for publishing odom and map frame?

Choco93 gravatar image Choco93  ( 2019-11-11 07:56:05 -0500 )edit

Like @Choco93 said, there is neither a base_link or a map. Therefore there can't be a transformation between base_link and map. Rename "frame" to "base_link" in your urdf. But you don't have any map, do you plan to run localization (e.g existing map + AMCL) or create your own map using SLAM?

bob-ROS gravatar image bob-ROS  ( 2019-11-11 08:05:30 -0500 )edit

I currently have a map, and to create one my gmapping is running fine.So now i will change frame to base_link now.

akshayantony gravatar image akshayantony  ( 2019-11-11 09:46:51 -0500 )edit

@Choco93@bob-ROShttps://drive.google.com/open?id=1LNg... this is the link to my urdf files,can you help me a little bit more,any questions are welcome

akshayantony gravatar image akshayantony  ( 2019-11-22 13:56:14 -0500 )edit

Can you share your current tf-tree using rosrun rqt_tf_tree rqt_tf_tree

Choco93 gravatar image Choco93  ( 2019-11-22 14:26:34 -0500 )edit

Hm, is it when you run move_base you get problems with the costmap? I assume you have costmap.yaml file, try adding "robot_base_frame: frame" and it will probably resolve the problems with the costmaps. See https://github.com/husky/husky/blob/k... for an example of them tracking base_link.

bob-ROS gravatar image bob-ROS  ( 2019-11-22 15:10:07 -0500 )edit

@bob-ROS i am attaching my whole folder in the link https://drive.google.com/open?id=1o1t... .it is a mobile robot to do autonomous navigation using kinect v2.you previously mentioned about the adding base_link can you please elaborate it.thanks

akshayantony gravatar image akshayantony  ( 2019-11-23 03:35:35 -0500 )edit

@bob-ROS i am using amcl+existing map type.

akshayantony gravatar image akshayantony  ( 2019-11-23 03:37:27 -0500 )edit

You have a "base_link " not a "base_link", the spaces matter. I was a bit unclear, realized that you had code previously that looked for a frame called "frame", e.g the amcl.launch looks for "frame". I would rename base_link back to frame and then try to fix this in config/costmap_common_params.yaml by adding robot_base_frame: frame, see above for example in the husky when they define the robot_base_frame as base_link.

bob-ROS gravatar image bob-ROS  ( 2019-11-23 09:15:17 -0500 )edit

@bob-ROS Timed out waiting for transform from frame to map to become available before running costmap, tf error: canTransform: target_frame map does not exist.. canTransform returned after 0.1 timeout was 0.1. THIS IS THE NEW ERROR WHEN I CHANGED TO robot_base_frame as base_link.

akshayantony gravatar image akshayantony  ( 2019-11-24 06:08:32 -0500 )edit

@bob-ROS@Choco93 i changed the robot base frame to frame and is now working but the nav destination is given thr robot moves randomly and collapses somewhere.this is the rqt graph link https://drive.google.com/open?id=1mwM...

akshayantony gravatar image akshayantony  ( 2019-11-24 13:35:18 -0500 )edit