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

Error while trying to follow tutorial.

asked 2013-10-08 17:20:14 -0500

gishi gravatar image

updated 2013-11-14 12:06:54 -0500

tfoote gravatar image

Hello everyone, I'm currently learning how to use ROS, but while I was following the tutorials in part 3 of the tutorial, I encountered an error. I was at the part where I try to edit: <description>The beginner_tutorials</description> When I try to change what's inside of the <> I get this error: bash: syntax error near unexpected token `newline' The same thing happens when I try do edit anything in the <> in the next few part of the tutorials.

Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

might help if you can post a short example of your edits

PeterMilani gravatar image PeterMilani  ( 2013-10-08 19:00:18 -0500 )edit

Well in the tutorial it said i could change it to anythine i wanted. So i just changed it to test instead of deacription.

gishi gravatar image gishi  ( 2013-10-09 03:53:21 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2013-10-09 07:34:15 -0500

SaiHV gravatar image

You cannot change the tags in the XML file: i.e., what's inside the <> angle brackets. Rather, you can change what's between the two tags, i.e., you can write

<description> ABCDEF </description> or something else. But the tags themselves are predefined and when this xml file is read, the system looks for what's between the description tags. So changing the tag itself will result in the system not understanding what you are specifying.

edit flag offensive delete link more

Comments

Ah, that makes a lot more sense. Thanks for the solution

gishi gravatar image gishi  ( 2013-10-09 08:25:36 -0500 )edit
2

answered 2014-03-10 13:34:47 -0500

Aaron Y gravatar image

updated 2014-03-10 13:38:17 -0500

Instead of writing < description >The beginner_tutorials package</description> in the command prompt, write

gedit package.xml

A window with the package.xml file will open up. In this new window you can edit the description and everything else. Then click save. Then go back to command prompt and type

cat package.xml

Now you can see your changes.

Good luck!

Aaron

edit flag offensive delete link more

Comments

U'r de real mvp maan

dovulthesloth gravatar image dovulthesloth  ( 2018-09-05 13:20:16 -0500 )edit
0

answered 2013-10-09 09:14:47 -0500

gishi gravatar image

updated 2013-10-09 10:23:07 -0500

actually, I'm still getting the same error. this time I typed in <description>The beginner_tutorials pacakage</description> just as I'm told to do so in the tutorial, however I'm still getting the same error. (bash:syntax error near unexpected token 'newline')

edit flag offensive delete link more

Comments

In that case, your error probably doesn't have to do with that part. Can you try with the exact same code as in the tutorial, and then tell me what changes you have made? Also, please post these as comments rather than other answers, as they don't address the question directly.

SaiHV gravatar image SaiHV  ( 2013-10-09 10:40:16 -0500 )edit

Question Tools

Stats

Asked: 2013-10-08 17:20:14 -0500

Seen: 2,519 times

Last updated: Mar 10 '14