Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load map + Wgs84Transformer not initialized + NETWORK ERROR #747

Open
robodyne-robotics opened this issue Nov 20, 2021 · 3 comments

Comments

@robodyne-robotics
Copy link

robodyne-robotics commented Nov 20, 2021

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.4485/17.9240) 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>
@danthony06
Copy link
Contributor

I notice the local_xy_origin param is called local_xy_origins. Could that be the problem?

@robodyne-robotics
Copy link
Author

Thank you for your answer and support! How should I change it in order to fix the issue?
I don't think I have changed it.

@danthony06
Copy link
Contributor

I suspect you might be running into something similar to this: #712 (comment). Can you echo /local_xy_origin to see if you the origin is getting published?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants