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

rosmake --pre-clean without svn update

asked 2011-09-29 02:44:05 -0500

jrcapriles gravatar image

updated 2011-09-29 03:18:26 -0500

Hi,

I was working with "simulator_gazebo" developers version adding some sensors, now that i'm done and want to integrate my package into my repository, it should be easy but it isn't! The problems is when i do a "make clean" or a "rosmake --pre-clean" (fresh make) the package is pre-configured to download the package from his original repository and after that all my work is lost because it overwrite my code with the original version....

Where is the svn configuration of the package or how can I avoid that the package is svn updated doing make clean or rosmake --pre-clean??

I see several files that specify a SVN_URL, SVN_PACKAGE, SVN_PATCH... but i don't know which or how i should modify it.

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-09-29 03:39:30 -0500

joq gravatar image

ROS gazebo is a third-party library. The ROS package wraps the standard gazebo implementation.

To modify gazebo, itself, it looks like you need to create a patch for your changes (as a diff against the downloaded version), and add that to the patches/ subdirectory.

edit flag offensive delete link more

Comments

Thanks Jack, i made the diff patch and added to the patches/subdirectory. Do you know where i have to specify that the patch is needed to be done?
jrcapriles gravatar image jrcapriles  ( 2011-09-29 20:29:04 -0500 )edit
I found one way to do it, i find and replace in all files the original address with the new address then eliminate all autogenerated files (CMakeCache.txt, CMakeFiles/ src_gen/ srv_gen/ src/gazebo/ and the libs that it found conflict with.. then cmake . and finally make. All work fine.
jrcapriles gravatar image jrcapriles  ( 2011-09-30 01:21:29 -0500 )edit
Since the package is in its final place, and anyone is going to change the code of simulator gazebo for now, i added a ROS_NOBUILD and now when i do rosmake --pre-clean or make clean the file isn't modified. It's a temporary solution while i discover how to integrate the patches to gazebo itself
jrcapriles gravatar image jrcapriles  ( 2011-09-30 01:25:11 -0500 )edit
You can submit your patch to the ROS gazebo package maintainer. Open an enhancement ticket explaining what it does and add your patch as an attachment. Or, it can be submitted to the upstream gazebo developers.
joq gravatar image joq  ( 2011-09-30 02:53:02 -0500 )edit
Ok ok thanks for this advice i will do it! And thanks for your help!
jrcapriles gravatar image jrcapriles  ( 2011-09-30 04:16:26 -0500 )edit

Question Tools

Stats

Asked: 2011-09-29 02:44:05 -0500

Seen: 636 times

Last updated: Sep 29 '11