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

robot doesnt appear on ubuntu20.04 foxy #44

Open
Jixyuxn opened this issue Jul 1, 2024 · 3 comments
Open

robot doesnt appear on ubuntu20.04 foxy #44

Jixyuxn opened this issue Jul 1, 2024 · 3 comments

Comments

@Jixyuxn
Copy link

Jixyuxn commented Jul 1, 2024

Screenshot from 2024-07-01 16-00-17

robot doesnt appear.
i already do rebuild and any solution on this repo(issue) anyone can help me?

@AkshayLaddha943
Copy link

I had the same issue in Ubuntu 20.04, I changed the launch file and added static_transform_publisher from robot frame to map, then the robot appeared fully.

The following lines inside the launch file -

    static_transform_publishers = [
    Node(
        package='tf2_ros',
        executable='static_transform_publisher',
        name='static_tf_pub',
        arguments=['0', '0', '0', '0', '0', '0', 'map', 'ego_racecar/base_link']
    ),
        Node(
            package='tf2_ros',
            executable='static_transform_publisher',
            name='static_tf_pub_base_to_front_left_wheel',
            arguments=['-0.5', '0.5', '0', '0', '0', '0', 'map', 'ego_racecar/front_left_wheel']
        ),
        Node(
            package='tf2_ros',
            executable='static_transform_publisher',
            name='static_tf_pub_base_to_front_right_wheel',
            arguments=['-0.5', '-0.5', '0', '0', '0', '0', 'map', 'ego_racecar/front_right_wheel']
        ),
    ]

@seominseok00
Copy link

Thankyou for helping @AkshayLaddha943, you mean just add that lines in launch file above # finalize ?
I follow your lines and add "ld.add_action(static_transform_publishers)", but it appears attributeerror. or is there any other things you did?

@derekhanbaliq
Copy link

derekhanbaliq commented Dec 8, 2024

The issue is because ros2 foxy is eol and rviz update brings the incompatibility to the software applications, leading the map - ego transformation messed up. The solution is, just use >= ros 2 humble.

Not sure if adding static transformation can still fix the issue if the ego vehicle moves.

Besides, without software update, no one can guaruntee there won't be more and more bugs coming out.

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

4 participants