Ask Your Question
0

Copying STL files to gazebo_worlds

asked 2012-03-24 19:31:16 -0500

anonymous user

Anonymous

Hi all

How do I copy a file into gazebo_worlds, currently I am trying the following command

$ cp table.stl rospack find gazebo_worlds/Media/models/

but I get returned the message

cp: cannot create regular file `/opt/ros/diamondback/stacks/simulator_gazebo/gazebo_worlds/Media/models/table.stl : Permission denied

I understand that I am not able to change the gazebo folders. Is there a way around this? Thanks in advance

edit retag flag offensive close delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-03-24 19:40:35 -0500

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher flag of Germany
6868 62 112 177
http://www.sim.tu-darmsta...

This is because you installed ros from .debs and do not have write permissions for the directories of this installation variant. You could force changes by using "sudo" before your commands or changing permissions, but this is strongly discouraged. For example, you might lose all your changes if a update comes in for a package you modified.

If you want to make your own gazebo worlds or variants of existing ones, you can create a new package and use that. I did exactly that with the hector_gazebo_worlds package, so it's the first one that comes to my mind as an example. You'll probably find a few other examples if you search for them.

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-03-24 19:31:16 -0500

Seen: 85 times

Last updated: Mar 24 '12