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

When build from source Iron + Garden, ros_gz_sim/create trying to use libgz-transport13 istead of 12 #557

Closed
drfenixion opened this issue Jun 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@drfenixion
Copy link

drfenixion commented Jun 1, 2024

Environment

Ubuntu 22.04.4
Build from source ros_gz with binary Iron + Garden

Description

  • Expected behavior:
    ros_gz_sim/create must use libgz-transport12 that present in Garden
  • Actual behavior:
    [create-5] /home/ubuntu/ros2/ws/install/ros_gz_sim/lib/ros_gz_sim/create: error while loading shared libraries: libgz-transport13.so.13: cannot open shared object file: No such file or directory

Steps to reproduce

Build from source ros_gz with binary Iron + Garden

in launch do some like these (it is not a full list of my launch):


    # Gazebo Sim.
    pkg_ros_gz_sim = get_package_share_directory('ros_gz_sim')
    gazebo = IncludeLaunchDescription(
        PythonLaunchDescriptionSource(
            os.path.join(pkg_ros_gz_sim, 'launch', 'gz_sim.launch.py')
        ),
        launch_arguments=launch_arguments,
        )

    # Spawn
    spawn = Node(
            package='ros_gz_sim',
            executable='create',
            arguments=[
                '-name', 'Robot',
                '-x', '1.2',
                '-z', '2.3',
                '-Y', '3.4',
                '-topic', '/robot_description'
                ],
            output='screen',
    )

    return LaunchDescription([
        gazebo,
        spawn,
    ])

Output

[INFO] [joint_state_publisher_gui-1]: process started with pid [100445]
[INFO] [robot_state_publisher-2]: process started with pid [100447]
[INFO] [rviz2-3]: process started with pid [100449]
[INFO] [ruby $(which gz) sim-4]: process started with pid [100451]
[INFO] [create-5]: process started with pid [100457]
[create-5] /home/ubuntu/ros2/ws/install/ros_gz_sim/lib/ros_gz_sim/create: error while loading shared libraries: libgz-transport13.so.13: cannot open shared object file: No such file or directory
[ERROR] [create-5]: process has died [pid 100457, exit code 127, cmd '/home/ubuntu/ros2/ws/install/ros_gz_sim/lib/ros_gz_sim/create -name Robot -x 1.2 -z 2.3 -Y 3.4 -topic /robot_description --ros-args']

@drfenixion drfenixion added the bug Something isn't working label Jun 1, 2024
@drfenixion
Copy link
Author

Look was not builded from source. After compile works fine.

@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant