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

Preserving changes to standard ROS packages

asked 2011-07-12 11:08:21 -0600

DavidS gravatar image

updated 2014-01-28 17:10:02 -0600

ngrennan gravatar image

Archlinux, kernel 2.6.39-ARCH
gcc version 4.6.1

In order to compile some packages, I need to patch certain source codes and make changes to CMakeList.txt...

How do I preserve these changes so that when I update ROS by:

$ rosinstall ~/ros

... I don't have to re-make the changes again.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2011-07-12 12:39:58 -0600

arebgun gravatar image

updated 2011-07-12 12:42:35 -0600

When you update your source based ROS installation it won't overwrite your changes, at worst you would have to merge the changed files manually if there are any conflicts (see rosinstall documentation). But things like CMakeList doesn't change very often. Another thing to do is submit patches to package maintainers, so that your changes can be integrated and whenever next version is released it will just work out of the box.

edit flag offensive delete link more
0

answered 2011-07-13 10:42:30 -0600

DavidS gravatar image

Hmm... I just did a rosinstall update. My changes seems to be intact so far.
I thought my changes are erased, because my changes to setup.sh were gone after an update. The documentation does indicate that setup.sh is re-generated...

Most of the changes I am making are to make ROS packages compile with gcc-4.6. I have submitted patches to https://code.ros.org/trac/ros-pkg/, though nothing seems to be happening with them.

Other changes I had to make are due to locations of header files, which are system specific, so I doubt the package maintainers would want them.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-12 11:08:21 -0600

Seen: 257 times

Last updated: Jul 13 '11