ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

What command to use to edit a package.xml file in ROS Hydro?

asked 2014-08-19 12:54:40 -0500

ish45 gravatar image

updated 2014-08-20 02:57:32 -0500

tfoote gravatar image

Can anybody tell which command to use to edit a package.xml file in ROS Hydro? Using the command cat package.xml, I can view the package.xml file but I am unable to edit the file. Can anybody help please?

edit retag flag offensive close merge delete

Comments

Which OS are you using? If its ubuntu then use a text editor with sudo command prefixed to it.

sudo gedit .....yourfilename....

Bhargav gravatar imageBhargav ( 2014-08-19 13:09:51 -0500 )edit
3

Do NOT use sudo to edit package.xml files. It is unnecessary and will mess up permissions.

dornhege gravatar imagedornhege ( 2014-08-19 13:18:49 -0500 )edit
3

Please choose a meaningful title that shortly states what the question is about.

dornhege gravatar imagedornhege ( 2014-08-19 13:19:56 -0500 )edit

gedit package.xml

Mehdi. gravatar imageMehdi. ( 2014-08-20 04:04:17 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
3

answered 2014-08-20 02:56:59 -0500

tfoote gravatar image

Any text editor will work. Ubuntu comes with gedit and nano preinstalled.

edit flag offensive delete link more
2

answered 2014-08-20 05:53:00 -0500

ish45 gravatar image

Thanks to all. gedit is working for me now.

edit flag offensive delete link more

Comments

Try to carefully read and follow the tutorial before making something else. And do not change the package.xml, before being sure to know what you are doing

Moda gravatar imageModa ( 2014-08-20 06:23:02 -0500 )edit
1

Please accept an answer using the checkbox at the left of each answer so others know that this question has been solved in the future.

tfoote gravatar imagetfoote ( 2014-08-20 11:41:46 -0500 )edit
1

answered 2014-08-19 13:32:54 -0500

l0g1x gravatar image
vi package.xml

vi or vim works. vim is just extension to vi.

edit flag offensive delete link more

Comments

2

wait are you trying to edit a system ros package.xml file? If so, it is highly recommended you do not do so, unless you REALLY, REALLY, know what your doing.

l0g1x gravatar imagel0g1x ( 2014-08-19 13:34:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-08-19 12:54:40 -0500

Seen: 2,891 times

Last updated: Aug 20 '14