0
$\begingroup$

I have installed ROS 2 (Humble Hawksbill) on windows 11 and trying to follow URDF tutorial. When I run the folllwing command:

ros2 launch urdf_tutorial display.launch.py model: =`ros2 pkg prefix --share urdf_tutorial`/urdf/01-myfirst.urdf

I get the error below:enter image description here

 C:\dev\ros2_ws>ros2 launch urdf_tutorial display.launch.py model:=`ros2 pkg prefix --share urdf_tutorial`/urdf/01-myfirst.urdf
usage: ros2 [-h] [--use-python-default-buffering]
            Call `ros2 <command> -h` for more detailed usage. ...
ros2: error: unrecognized arguments: --share urdf_tutorial`/urdf/01-myfirst.urdf

I installed the package from here: https://github.com/ros/urdf_tutorial and then copy pasted it in my overlay src folder "C:/dev/ros2_ws/src. Any guidence or leads would be really helpful.

$\endgroup$
3
  • $\begingroup$ Welcome to Robotics Stack Exchange! Three things: 1) Which verison of ROS you are using? 2) Tell us the commands you used for installing the tutorial package. 3) Share the output of following command: ros2 launch urdf_tutorial display.launch.py --show-arguments $\endgroup$
    – ravi
    Commented Oct 29, 2023 at 4:05
  • $\begingroup$ I am using Ros 2 - Humble Hawksbill $\endgroup$
    – Ros wizard
    Commented Oct 29, 2023 at 4:38
  • $\begingroup$ please do not post a picture of text ... copy the text and paste it into your post and format same as the other two snippets $\endgroup$
    – jsotola
    Commented Oct 29, 2023 at 5:00

1 Answer 1

0
$\begingroup$

Remove ros2 pkg prefix --share and type directly:

C:\dev\ros2_ws>ros2 launch urdf_tutorial display.launch.py model:='src/urdf_tutorial`/urdf/01-myfirst.urdf'

Pay attention to use the right path to your file 01-myfirst.urdf And be sure you are using the right quotes ''

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.