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

Navigating Using GPS Localization - MapViz error #87

Open
mattiadutto opened this issue Mar 21, 2024 · 1 comment
Open

Navigating Using GPS Localization - MapViz error #87

mattiadutto opened this issue Mar 21, 2024 · 1 comment

Comments

@mattiadutto
Copy link

mattiadutto commented Mar 21, 2024

Hi, I tried using the code of the Navigating Using GPS Localization and unfortunately, out of the box, it doesn't work (of course I added the bing-api key). I'm not able to see a bing map on the MapViz window. Searching on the web for a solution I saw that by replacing the MapViz configuration with this one (taken here) it works:

capture_directory: ~
fixed_frame: map
target_frame: map
fix_orientation: false
rotate_90: false
enable_antialiasing: true
show_displays: true
show_status_bar: true
show_capture_tools: true
window_width: 1000
window_height: 804
view_scale: 1
offset_x: 0
offset_y: 0
use_latest_transforms: true
background: "#a0a0a4"
displays:
  - type: mapviz_plugins/tile_map
    name: new display
    config:
      visible: true
      collapsed: false
      custom_sources:
        []
      bing_api_key: ""
      source: Stamen (terrain)
  - type: mapviz_plugins/point_click_publisher
    name: new display
    config:
      visible: true
      collapsed: false
      topic: clicked_point
      output_frame: wgs84
  - type: mapviz_plugins/tf_frame
    name: new display
    config:
      visible: true
      collapsed: false
      frame: base_link
      color: "#00ff00"
      draw_style: arrows
      position_tolerance: 0
      buffer_size: 1
      static_arrow_sizes: true
      arrow_size: 53
  - type: mapviz_plugins/navsat
    name: new display
    config:
      visible: true
      collapsed: false
      topic: /gps/fix
      color: "#55aaff"
      draw_style: points
      position_tolerance: 0
      buffer_size: 1

Could you please update the gps configuration file?
Thanks.

System configuration: Ubuntu 22.04.4 LTS + ROS2 Humble + Navigation2 1.1.13

@SteveMacenski
Copy link
Member

Please submit a PR!

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