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

URDFSpawner does not preserve link names, messing the TF tree when using the ros2_webots_driver with robot_state_publisher #209

Open
PymZoR opened this issue Dec 13, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@PymZoR
Copy link
Member

PymZoR commented Dec 13, 2022

Describe the Bug
All links are converted into Solids which have names "Solid[N]" instead of their original name in the URDF file.

Steps to Reproduce
Consider the following urdf :

<?xml version="1.0"?>
<robot name="myrobot"
    xmlns:xacro="http://ros.org/wiki/xacro">

    <!-- BASE LINK -->
    <link name="base_link">
        <visual>
            <origin xyz="0 0 0.075" />
            <geometry>
                <box size="0.3 0.3 0.15" />
            </geometry>
        </visual>
        <collision>
            <origin xyz="0 0 0.075" />
            <geometry>
                <box size="0.3 0.3 0.15" />
            </geometry>
        </collision>
    </link>

    <joint name="laser_link_joint" type="fixed">
        <parent link="base_link" />
        <child link="laser_link" />
        <origin xyz="0 0 1" />
    </joint>

    <!-- LINK2 -->
    <link name="laser_link">
        <visual>
            <origin xyz="0 0 0.075" />
            <geometry>
                <box size="0.3 0.3 0.15" />
            </geometry>
        </visual>
        <collision>
            <origin xyz="0 0 0.075" />
            <geometry>
                <box size="0.3 0.3 0.15" />
            </geometry>
        </collision>
    </link>
</robot>

The link laser_link is turned into Solid0 (cf screenshot).
The workaround is to set the parameter "set_robot_state_publisher": False for the webots_ros2_driver ROS node, and populate /robot_description by hand. This is regrettable !

Expected behavior
Original names should be preserved.

Affected Packages
List of affected packages:

  • webots_ros2_driver

Screenshots
image

System

  • Webots Version: R2023a for macOS
  • ROS Version: Humble
  • Operating System: Ubuntu jammy in docker, host macOS Monterey 12.2.1, using local_simulation_server.py
@ygoumaz ygoumaz added the bug Something isn't working label Apr 5, 2023
@ygoumaz ygoumaz self-assigned this Apr 5, 2023
@ygoumaz ygoumaz transferred this issue from cyberbotics/webots_ros2 Jul 26, 2023
@bonnuite
Copy link

The problem is still unresolved and what is more than regrettable, is that on https://github.com/cyberbotics/webots_ros2/wiki/Example-Universal-Robots has nothing mentioned about this serious issue.

System:
Webots Version: R2023b for Ubuntu
ROS Version: ROS2 Humble
Operating System: Ubuntu 22.04.3 LTS in VMware Workstation 16
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants