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

roslaunch not working with rviz

asked 2019-02-27 06:26:49 -0500

Sriram_M gravatar image

updated 2019-02-27 08:49:38 -0500

Delb gravatar image

I have created an URDF file and launch file for displaying it in RVIZ but I am getting the following as shown below.

This is the command given in teminal:

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

When I press enter after executing this command I am getting simply an angular bracket like this ">" When I press enter again the angular bracket is shown. I need help.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-02-27 07:27:58 -0500

Delb gravatar image

I'm not sure why you have brackets after running the command, are you sure the command you've written in the question is actually the one you try ? I can only reproduce this if I don't put the last ".

Anyways you also have something wrong in your command : rospack find robot1_description. Since you have quotations mark, every thing you type between will be treated as a string so your arg model will be as you typed but not with the actual path of your package. You need to add $ and put rospack find your_package between parentheses to tell the difference with a string.

So this command should be working (provided you have correctly sourced your package so that rospack find gives the correct path):

 roslaunch robot1_description display.launch model:="$(rospack find robot1_description)/urdf/robot1.urdf"
edit flag offensive delete link more


Still the problem is not clarified. Again the angular bracket ">" is appearing even after the execution of the above mentioned command.

Sriram_M gravatar image Sriram_M  ( 2019-02-27 08:10:07 -0500 )edit

Ok so there is something wrong with your urdf and/or launch file, can you add them in your question please ?

Delb gravatar image Delb  ( 2019-02-27 08:17:04 -0500 )edit

There is most likely nothing wrong with the URDF. The "angle bracket" is shown by the shell (most likely bash). roslaunch isn't even being run yet.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-27 08:33:23 -0500 )edit

And @Delb: the backticks are an alternative notation when embedding shell commands in strings in bash. They work (almost) like $().

gvdhoorn gravatar image gvdhoorn  ( 2019-02-27 08:34:33 -0500 )edit

Right, I've actually missed the fact that the command was :

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

because of the preformatted text in the question. I've edited the question to make it clearer.

Delb gravatar image Delb  ( 2019-02-27 08:49:43 -0500 )edit

Question Tools

1 follower


Asked: 2019-02-27 06:26:49 -0500

Seen: 280 times

Last updated: Feb 27 '19