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

Revision history [back]

click to hide/show revision 1
initial version

To add to previous answers: reference

The package tends to use its files itself in launch/urdf/etcetera files, and other packages depending on the package may as well. For editing these dependencies:

find PKG-FOLDER \( -type -d -name .git -prune \) -o -type f \
        -exec sed -i 's/old-pkg-name/new-pkg-name/g' {} +

This should replace all occurences of old-pkg-name in all files of PKG-FOLDER with new-pkg-name. Plus, if your files have names containing old-pkg-name, you may need to update these names too to maintain integrity.

find PKG-FOLDER \( \( -type -d -name .git -prune \) -o -type f \) \
        -iwholename "*old-pkg-name*" \
        -exec rename s/old-pkg-name/new-pkg-name/ '{}' \;

To add to previous answers: reference

The package tends to use its files itself in launch/urdf/etcetera files, and other packages depending on the package may as well. For editing these dependencies:

find PKG-FOLDER \( -type -d d -name .git -prune \) -o -type f \
        -exec sed -i 's/old-pkg-name/new-pkg-name/g' {} +

This should replace all occurences of old-pkg-name in all files of PKG-FOLDER with new-pkg-name. Plus, if your files have names containing old-pkg-name, you may need to update these names too to maintain integrity.

find PKG-FOLDER \( \( -type -d d -name .git -prune \) -o -type f \) \
        -iwholename "*old-pkg-name*" \
        -exec rename s/old-pkg-name/new-pkg-name/ '{}' \;