roslaunch not working with rviz
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
robot1_description`/urdf/robot1.urdf"
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.
Asked by Sriram_M on 2019-02-27 07:26:49 UTC
Answers
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"
Asked by Delb on 2019-02-27 08:27:58 UTC
Comments
Still the problem is not clarified. Again the angular bracket ">" is appearing even after the execution of the above mentioned command.
Asked by Sriram_M on 2019-02-27 09:10:07 UTC
Ok so there is something wrong with your urdf and/or launch file, can you add them in your question please ?
Asked by Delb on 2019-02-27 09:17:04 UTC
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.
Asked by gvdhoorn on 2019-02-27 09:33:23 UTC
And @Delb: the backticks are an alternative notation when embedding shell commands in strings in bash
. They work (almost) like $()
.
Asked by gvdhoorn on 2019-02-27 09:34:33 UTC
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.
Asked by Delb on 2019-02-27 09:49:43 UTC
Comments