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

Robot not visible in RViz (Kinetic, Ubuntu 16.04, VMWare Fusion 10.0.1)

asked 2017-10-26 08:05:55 -0500

Alsing gravatar image

updated 2017-10-27 05:18:01 -0500

gvdhoorn gravatar image

Going through a PacktPub book's tutorial on ROS, Effective Robotics Programming with ROS. I'm hoping the community has solutions.

In Chapter 4, I tried running

roslaunch robot1_description display.launch model:="'rospack find robot1_description'/urdf/robot1.urdf"

and managed to get the rviz window up and running, However, there were no robots as described in the .urdf file in the display.launch file.

I have edited the last line as suggested in #q113561, but to no avail.

edit retag flag offensive close merge delete

Comments

Can you please tell us which OS this is, which version, how you installed it, how you installed ROS, and which version of ROS this is?

I've seen similar questions about RViz on certain Ubuntu versions not rendering correctly.

And for the future: please include that sort of information.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-26 10:18:33 -0500 )edit

I am on VMWare Fusion 10.0.1, Ubuntu 16.04, ROS Kinetic.

Installed ROS on the ROS Kinetic Installation page.

Alsing gravatar image Alsing  ( 2017-10-27 04:33:04 -0500 )edit

Btw: can you add a screenshot showing the RViz window, and add the console output you get after running the roslaunch robot1_description .. command?

gvdhoorn gravatar image gvdhoorn  ( 2017-10-27 05:12:07 -0500 )edit

I've changed the title to better reflect the problem, and I've updated the formatting of your question a bit.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-27 05:13:26 -0500 )edit

Console output:

PARAMETERS * /robot_description:

  • /rosdistro: kinetic

  • /rosversion: 1.12.7

  • /use_gui: False

Continued after due to comment length limit

Alsing gravatar image Alsing  ( 2017-10-27 20:42:28 -0500 )edit

NODES /

joint_state_publisher (joint_state_publisher/joint_state_publisher)

robot_state_publisher (robot_state_publisher/state_publisher)

rviz (rviz/rviz)

Alsing gravatar image Alsing  ( 2017-10-27 20:46:50 -0500 )edit

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found

process[joint_state_publisher-1]: started with pid [53550]

process[robot_state_publisher-2]: started with pid [53551]

process[rviz-3]: started with pid [53552]

How do I add a screenshot?

Alsing gravatar image Alsing  ( 2017-10-27 20:49:14 -0500 )edit

Please edit your question, do not use comments. They are too limited and are not meant for this.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-28 07:06:45 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-10-27 05:16:00 -0500

gvdhoorn gravatar image
roslaunch robot1_description display.launch model:="'rospack find robot1_description'/urdf/robot1.urdf"

Is this an actual copy-paste?

I ask because the rospack find robot1_description bit should be between backticks (`), not single quotes.

rospack find .. is a command that bash needs to execute before it lets roslaunch do its thing.

If you don't use backticks, but single quotes, your shell will not execute it and roslaunch is given the following string for the model argument:

'rospack find robot1_description'/urdf/robot1.urdf

which is obviously not correct.

edit flag offensive delete link more

Comments

Yea, I found it odd! It is a direct copy and paste but it might have been an error by the author (not the first). However, I did just cd into the path and did roslaunch robot1_description display.launch model:=./robot1.urdf

Alsing gravatar image Alsing  ( 2017-10-27 20:24:44 -0500 )edit

Try to use absolute paths. Relative paths will not work the way you expect them to. If:

roslaunch robot1_description display.launch model:="`rospack find robot1_description`/urdf/robot1.urdf"

works then I'm pretty sure there's nothing wrong with your setup.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-28 07:07:07 -0500 )edit

Did you get this to work?

gvdhoorn gravatar image gvdhoorn  ( 2017-11-04 06:43:22 -0500 )edit

Yes, I believe it is the VMWare issue.

Alsing gravatar image Alsing  ( 2017-11-05 23:34:49 -0500 )edit

Are you sure? The backticks vs single quotes did not influence the outcome at all?

gvdhoorn gravatar image gvdhoorn  ( 2017-11-06 01:26:15 -0500 )edit

Question Tools

Stats

Asked: 2017-10-26 08:05:55 -0500

Seen: 397 times

Last updated: Oct 27 '17