gazebosim / ros_gz

Integration between ROS (1 and 2) and Gazebo simulation
https://gazebosim.org
Apache License 2.0
264 stars 146 forks source link

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

Closed drfenixion closed 6 months ago

drfenixion commented 6 months ago

Environment

Ubuntu 22.04.4 Build from source ros_gz with binary Iron + Garden

Description

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 commented 6 months ago

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