TF and map problem with amcl and move_base

3,369 views
Skip to first unread message

dingo erz'rt

unread,
Dec 19, 2018, 4:32:08 PM12/19/18
to LINOROBOT
Warning: Invalid argument "/map" passed to canTransform argument target_frame in tf2 frame_ids cannot start with a '/' like: 
         at line 134 in /tmp/binarydeb/ros-kinetic-tf2-0.5.19/src/buffer_core.cpp

when running navigate.launch

i remove them "/" in global_costmap_params.yaml
this file


global_costmap:
  global_frame: map
  robot_base_frame: base_footprint

i changed them in local_costmap aswell

the next error i get is (with or without / in local_costmap_params)
[ WARN] [1545254468.852913370]: Timed out waiting for transform from base_footprint to map to become available before running costmap, tf error: canTransform: target_frame map does not exist.. canTransform returned after 0.100723 timeout was 0.1.

i can see the map i made earlier in rviz
and i can seet the robot TF
depending on what global frame i set

no tf from map to the rest ofcourse

i changed the static transforms to also not include /
    <node pkg="tf2_ros" type="static_transform_publisher" name="base_footprint_to_base_link" args="0 0 0.03125 0 0 0  base_footprint base_link"/>
same "Timed out waiting for transform" error

in rqt topic monitor, nothing is published (unknown), everywhere else is ok
rqt even crashes when monitoring the /map topic.


the only difference i have with the tutorials is only running ros_serial and rplidar launch files on robot, all the rest runs on a laptop
(maybe i can try and run everything on the robot and only rviz /rqt on the master - laptop)
some google-fu says to run crony for time sync issues (not sure this is a time sync issue)

and i could try and redo the map making, maybe there is an issue there

otherwise i'm without ideas :(

so would appreciate some pointers, thx


dingo erz'rt

unread,
Dec 22, 2018, 10:42:24 AM12/22/18
to LINOROBOT
used the ubuntu image from ubiquity robots
followed your tutorial
works perfect now


Reply all
Reply to author
Forward
0 new messages