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

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

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

ish45 gravatar image

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

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 image Bhargav  ( 2014-08-19 13:09:51 -0600 )edit
3

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

dornhege gravatar image dornhege  ( 2014-08-19 13:18:49 -0600 )edit
3

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

dornhege gravatar image dornhege  ( 2014-08-19 13:19:56 -0600 )edit

gedit package.xml

Mehdi. gravatar image Mehdi.  ( 2014-08-20 04:04:17 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
3

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

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 -0600

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 image Moda  ( 2014-08-20 06:23:02 -0600 )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 image tfoote  ( 2014-08-20 11:41:46 -0600 )edit
1

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

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 image l0g1x  ( 2014-08-19 13:34:12 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 6,211 times

Last updated: Aug 20 '14