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

Deleted src files after catkin_make

asked 2016-02-17 14:11:56 -0500

nwanda gravatar image

updated 2016-02-17 14:29:58 -0500

Is there anyway to recover the source files from a package? After I compiled everything using catkin_make, I accidently removed the "src" folder of the package.

Since it is impossible to recover the files removed with "rm", is there a way to recover the source files using ROS?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-02-17 15:05:54 -0500

updated 2016-02-17 15:06:35 -0500

No, ROS relies uses operating system functionality for file management and has no own facilities that perform backups behind the scenes. You really should be using a version control system and regularly push your changes.

Your best bet is probably googling for how to recover files that have been removed using rm on Linux systems.

edit flag offensive delete link more

answered 2016-02-17 15:05:34 -0500

Depending on your file system. It's not 'impossible' to recover the files. If your volume is not encrypted then you could use a bootable usb stick with some software to scan the hardrive and try and recover the files.

There may be some of the header files in the other folders if you look through them, but I don't know if the C files will still be there.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-02-17 14:11:56 -0500

Seen: 790 times

Last updated: Feb 17 '16