Giter Club home page Giter Club logo

Comments (3)

garaemon avatar garaemon commented on June 12, 2024

speed up to 11 min.

./generate-all-msg-srv.sh --all  468.30s user 140.09s system 92% cpu 11:01.10 total
diff --git a/roseus/scripts/generate-all-msg-srv.sh b/roseus/scripts/generate-all-msg-srv.sh
index f07b774..87eb1dd 100755
--- a/roseus/scripts/generate-all-msg-srv.sh
+++ b/roseus/scripts/generate-all-msg-srv.sh
@@ -93,18 +93,21 @@ for pkg_i in $(seq 0 $((${#pkg_list[@]} - 1))); do
     echo -e "\e[1;31mgenerating... $pkg_i/${#pkg_list[@]}\e[m"
     pkg_name=`basename $pkg`
     if [ -e $pkg/msg/ ] ; then
-       for file in `find $pkg/msg -type f -name "*.msg"`; do
-           echo -e "\e[1;32mgenerating msg... ${file}\e[m"
-           `rospack find geneus`/scripts/genmsg_eus $file;
-           check-error
-       done
+        find $pkg/msg -type f -name "*.msg" | xargs `rospack find geneus`/scripts/genmsg_eus
+       # for file in `find $pkg/msg -type f -name "*.msg"`; do
+       #     echo -e "\e[1;32mgenerating msg... ${file}\e[m"
+       #     `rospack find geneus`/scripts/genmsg_eus $file;
+       #     check-error
+       # done
+
     fi
     if [ -e $pkg/srv/ ] ; then
-       for file in `find $pkg/srv -type f -name "*.srv"`; do
-           echo -e "\e[1;32mgenerating srv... ${file}\e[m"
-           `rospack find geneus`/scripts/gensrv_eus $file;
-           check-error
-       done
+        find $pkg/srv -type f -name "*.srv" | xargs `rospack find geneus`/scripts/gensrv_eus
+       # for file in `find $pkg/srv -type f -name "*.srv"`; do
+       #     echo -e "\e[1;32mgenerating srv... ${file}\e[m"
+       #     `rospack find geneus`/scripts/gensrv_eus $file;
+       #     check-error
+#done
     fi
     rospack depends $pkg_name > /dev/null || (check-warn) ; ## just for check depends error
     echo -e "\e[1;32mgenerating manifest... ${pkg_name}\e[m"
@@ -133,5 +136,3 @@ if [ $((${#err_list[@]})) -gt 0 ] ; then
     done
     exit 1
 fi

from jsk_roseus.

garaemon avatar garaemon commented on June 12, 2024

上のだとちょっとおかしいですね。geneusに渡す引数の順番がおかしい

from jsk_roseus.

garaemon avatar garaemon commented on June 12, 2024

ファイルごとにeusを立ち上げるのではなく、パッケージごとにeusを立ち上げるように

#151

from jsk_roseus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.