Skip to content

mapviz ros-foxy not display any map #808

@kyuhyong

Description

@kyuhyong

Hello,
I was able to build the mapviz from source for ros-foxy on ubuntu 20.04.
I git cloned with branch foxy-eol.
When first tried to launch by entering ros2 launch mapviz mapviz.launch.py
No map is displayed
image
And getting this error

[mapviz-1] [WARN] [1703118394.607287593] [swri_transform_util::Transformer]: Wgs84Transformer not initialized

Now I tried with different launch.py setup as below

import launch
import launch.actions
import launch.substitutions
import launch_ros.actions


def generate_launch_description():
    return launch.LaunchDescription([
        launch_ros.actions.Node(
            package="mapviz",
            executable="mapviz",
            name="mapviz",
        ),
        launch_ros.actions.Node(
            package="swri_transform_util",
            executable="initialize_origin.py",
            name="initialize_origin",
            parameters=[
                { "local_xy_frame" : "map"},
                { "local_xy_origin" : "auto"},
                { "local_xy_origins" : """[
                    {"name": "swri",
                        "latitude": 29.45196669,
                        "longitude": -98.61370577,
                        "altitude": 233.719,
                        "heading": 0.0},
                    {"name": "back_40",
                        "latitude": 29.447507,
                        "longitude": -98.629367,
                        "altitude": 200.0,
                        "heading": 0.0}
                ]"""}
            ]
        ),
        launch_ros.actions.Node(
            package="tf2_ros",
            executable="static_transform_publisher",
            name="swri_transform",
            arguments=["0", "0", "0", "0", "0", "0", "/map", "/origin 100"]
        )
    ])

Now the mapviz runs with little jitter and it gives following error

[mapviz-1]          at line 133 in /tmp/binarydeb/ros-foxy-tf2-0.13.14/src/buffer_core.cpp
[mapviz-1] Warning: Invalid frame ID "map__identity" passed to canTransform argument source_frame - frame does not exist

What is wrong with the launch file?
How can I solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions