Skip to content

Captured stderr output: error: name 'shoulder_offset' is not defined when evaluating expression 'shoulder_offset' #1

@louaysahbani

Description

@louaysahbani

when i follow you latest video in "Intégration de la pince Robotiq sur UR5 dans ROS2 – De GitHub à l'installation complète dans Gazebo" i cloned the repo and tried to launch "view_ur5_camera_gripper.launch.py"
but i got this error ,
louaysahbani27@louay:~/yt_ws$ ros2 launch ur_yt_sim view_ur5_camera_gripper.launch.py
[INFO] [launch]: All log files can be found below /home/louaysahbani27/.ros/log/2025-07-28-19-01-21-115620-louay-27573
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): executed command failed. Command: /opt/ros/humble/bin/xacro /home/louaysahbani27/yt_ws/install/ur_yt_sim/share/ur_yt_sim/urdf/ur5_camera_gripper.urdf.xacro safety_limits:=true safety_pos_margin:=0.15 safety_k_position:=20 name:=ur ur_type:=ur5 tf_prefix:=""
Captured stderr output: error: name 'shoulder_offset' is not defined
when evaluating expression 'shoulder_offset'
when instantiating macro: ur_robot (/home/louaysahbani27/yt_ws/install/ur_yt_sim/share/ur_yt_sim/urdf/ur5_macro.xacro)
in file: /home/louaysahbani27/yt_ws/install/ur_yt_sim/share/ur_yt_sim/urdf/ur5_camera_gripper.urdf.xacro
can you fix it in your latest repo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions