ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Show basic URDF model in Rviz2

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

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: https://imgur.com/a/J9uHVVq

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
0

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

mclzc gravatar image

Answering my own question.

The solution is in this thread: https://github.com/ros-visualization/...

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

Question Tools

2 followers

Stats

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

Seen: 1,213 times

Last updated: Apr 11 '20