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

mapviz ros-foxy not display any map #808

Open
kyuhyong opened this issue Dec 21, 2023 · 1 comment
Open

mapviz ros-foxy not display any map #808

kyuhyong opened this issue Dec 21, 2023 · 1 comment

Comments

@kyuhyong
Copy link

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?

@josetemero
Copy link

I have the same problem. Did you solve it?

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