mapviz cannot load map + network error + no transformer

asked 2021-11-20 04:20:13 -0600

Marcus Barnet gravatar image

I'm using ROS Melodic on Ubuntu 18.04 to launch mapviz. I'm not able to load any map (i.e. http://maps.stamen.com/terrain/#12/40...) since as soon as I load the tilemap plugin I get:

[ WARN] [1637403046.945206940]: Wgs84Transformer not initialized
[ERROR] [1637403046.945483290]: Error: No transform between /wgs84 and map
[ WARN] [1637403048.950361959]: Wgs84Transformer not initialized

or sometimes, I get this other error:

[ WARN] [1637403364.657058338]: [transform_manager]: No transformer from '/wgs84' to '/map'. If '/map' is a /tf frame, it may not have been broadcast recently.
[ERROR] [1637403364.657141043]: Error: No transform between /wgs84 and map
[ WARN] [1637403364.727952973]: [transform_manager]: No transformer from '/map' to '/wgs84'. If '/map' is a /tf frame, it may not have been broadcast recently.

How can I fix this problem? This is my launch file:

<launch>

  <node pkg="mapviz" type="mapviz" name="mapviz"></node>

  <node pkg="swri_transform_util" type="initialize_origin.py" name="initialize_origin" >
    <param name="local_xy_frame" value="/map"/>
    <param name="local_xy_origin" value="auto"/>
    <!--<param name="local_xy_origin" value="swri"/>-->
    <rosparam param="local_xy_origins">
      [{ name: swri,
         latitude: 40.5675262,
         longitude: 17.4155641,
         altitude: 133.719,
         heading: 0.0},

       { name: back_40,
         latitude: 40.5675262,
         longitude: 17.4155641,
         altitude: 100.0,
         heading: 0.0}]
    </rosparam>
    <remap from="fix" to="/gnss"/>
  </node>

  <node pkg="tf" type="static_transform_publisher" name="swri_transform" args="0 0 0 0 0 0 /map /origin 100"  />

</launch>
edit retag flag offensive close merge delete