Ask Your Question

Show basic URDF model in Rviz2

asked 2020-04-09 22:41:08 -0600

mclzc gravatar image

I'm trying to follow the URDF tutorial on ROS2. To begin I've launched Rviz2 like this:

ros2 run rviz2 rviz2

But I'm not able to see my model.

  • I've selected the Description File to be my .urdf model, which I'm adding below.

  • I've selected the "Fixed Frame" to be "base_link" and that solves an error, but is not enough to see the model.

This configuration can be seen here:

I'm also getting a warning that says "No tf data. Actual Error: Frame [base_link] does not exist."

What am I missing?

My system is:

  • Linux Desktop 5.3.0-46-generic #38~18.04.1-Ubuntu

  • ROS2 Dashing

    <robot name="myfirst"> <link name="base_link"> <visual> <geometry> <cylinder length="0.6" radius="0.2"/> </geometry> </visual> </link> </robot>

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-11 01:26:18 -0600

mclzc gravatar image

Answering my own question.

The solution is in this thread:

Doing the following solves the problem of not being able to see the model:

export LC_NUMERIC="en_US.UTF-8"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-04-09 22:41:08 -0600

Seen: 516 times

Last updated: Apr 11 '20